/* Musgo — landing.css */
/* Estilos exclusivos de la landing page (public-screens.js → renderLandingScreen).
   Podés editar este archivo libremente sin riesgo de romper nada de la app autenticada. */

/* ──────────────── LANDING SCREEN ──────────────── */

  .landing-screen {
    display: flex;
    flex-direction: column;
    gap: 88px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 0 12px;
  }

  .landing-hero {
    display: grid;
    gap: 38px;
    align-items: start;
    padding: 20px 0 0;
  }

  .landing-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
    width: 100%;
  }

  .landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: #eef4ee;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #4e7c63;
  }

  .landing-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #141917;
    font-weight: 700;
  }

  .landing-title span {
    color: #67a57b;
  }

  .landing-subtitle {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #5d6b61;
  }

  .landing-eyebrow-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .landing-copy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .landing-cta {
    width: fit-content;
    flex: 0 0 auto;
    min-width: 152px;
    padding: 16px 28px;
    background: #4f8a67;
    color: #ffffff;
    border-color: #4f8a67;
    box-shadow: 0 12px 30px rgba(79, 138, 103, 0.24);
  }

  .landing-cta:hover {
    background: #44785a;
    color: #ffffff;
    box-shadow: 0 16px 36px rgba(79, 138, 103, 0.28);
  }

  .landing-cta-sec {
    width: fit-content;
    flex: 0 0 auto;
    min-width: 130px;
    padding: 16px 28px;
    background: #ffffff;
    border-color: rgba(52, 93, 76, 0.12);
    color: #1A3D2A;
    box-shadow: 0 12px 28px rgba(31, 52, 37, 0.08);
  }

  .landing-cta-sec:hover {
    background: #f7faf7;
    border-color: rgba(52, 93, 76, 0.18);
    color: #1A3D2A;
    box-shadow: 0 16px 32px rgba(31, 52, 37, 0.1);
    transform: translateY(-1px);
  }

  .landing-hero-media {
    display: block;
    width: 100%;
  }

  .landing-hero-photo {
    width: 100%;
    height: auto;
    max-width: 520px;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 28px;
    display: block;
  }

  .landing-hero-floating-card {
    position: absolute;
    left: -12px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(52, 93, 76, 0.08);
    box-shadow: 0 18px 34px rgba(31, 52, 37, 0.12);
  }

  .landing-hero-floating-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef5ef;
  }

  .landing-hero-floating-label {
    font-size: 0.76rem;
    color: #7b8a80;
    margin-bottom: 2px;
  }

  .landing-hero-floating-card strong {
    font-size: 1rem;
    color: #1f3425;
    letter-spacing: -0.03em;
  }

  .landing-note {
    color: #7b8a80;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .landing-artboard {
    position: relative;
    min-height: 420px;
    border-radius: 34px;
    background:
      radial-gradient(circle at 22% 18%, rgba(198, 235, 212, 0.82), transparent 34%),
      radial-gradient(circle at 82% 20%, rgba(52, 93, 76, 0.08), transparent 28%),
      linear-gradient(180deg, #f7fbf6 0%, #eef6f0 100%);
    border: 1px solid rgba(52, 93, 76, 0.09);
    box-shadow: 0 28px 48px rgba(31, 52, 37, 0.08);
    overflow: hidden;
  }

  .landing-art-photo {
    position: relative;
    width: min(100%, 318px);
    height: 100%;
    min-height: 420px;
    margin-left: auto;
    background:
      linear-gradient(0deg, rgba(255,255,255,0.32), rgba(255,255,255,0.32)),
      radial-gradient(circle at 52% 42%, rgba(255,255,255,0.6), transparent 28%),
      linear-gradient(145deg, #dce9df 0%, #f6fbf7 44%, #d5e7d9 100%);
    border-left: 1px solid rgba(52, 93, 76, 0.08);
    overflow: hidden;
  }

  .landing-art-photo::before {
    position: absolute;
    content: '';
    inset: 40px 26px auto auto;
    width: 220px;
    height: 300px;
    border-radius: 18px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.34)),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='420' viewBox='0 0 320 420'%3E%3Cg fill='none' stroke='%23628d73' stroke-width='8' stroke-linecap='round'%3E%3Cpath d='M170 52c-12 32-8 70 10 110'/%3E%3Cpath d='M148 104c-36-10-62-30-78-60'/%3E%3Cpath d='M190 112c34-18 58-46 72-84'/%3E%3Cpath d='M146 168c-38 0-74-18-98-48'/%3E%3Cpath d='M192 174c38-8 78-30 104-64'/%3E%3Cpath d='M162 226c-34 12-70 36-90 72'/%3E%3Cpath d='M190 236c32 14 66 44 82 86'/%3E%3Cpath d='M160 286c0 46-10 84-28 116'/%3E%3C/g%3E%3Cg fill='%2397c8a6'%3E%3Cellipse cx='112' cy='90' rx='44' ry='22' transform='rotate(-28 112 90)'/%3E%3Cellipse cx='222' cy='72' rx='48' ry='22' transform='rotate(24 222 72)'/%3E%3Cellipse cx='86' cy='156' rx='46' ry='22' transform='rotate(-12 86 156)'/%3E%3Cellipse cx='250' cy='150' rx='50' ry='24' transform='rotate(18 250 150)'/%3E%3Cellipse cx='100' cy='276' rx='54' ry='24' transform='rotate(28 100 276)'/%3E%3Cellipse cx='244' cy='286' rx='56' ry='24' transform='rotate(-24 244 286)'/%3E%3C/g%3E%3C/svg%3E") center/cover no-repeat;
    box-shadow: 0 18px 44px rgba(31, 52, 37, 0.12);
    transform: rotate(-5deg);
  }

  .landing-art-photo::after {
    content: '';
    position: absolute;
    inset: auto auto 26px 28px;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background:
      radial-gradient(circle at 35% 35%, rgba(255,255,255,0.82), transparent 32%),
      linear-gradient(145deg, rgba(255,255,255,0.9), rgba(214, 234, 220, 0.9));
    box-shadow: 0 16px 32px rgba(31, 52, 37, 0.08);
  }

  .landing-art-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #345d4c;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(31, 52, 37, 0.08);
  }

  .landing-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .landing-section.centered {
    text-align: center;
    align-items: center;
  }

  .landing-section-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .landing-section-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(52, 93, 76, 0.72);
  }

  .landing-section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1;
    font-weight: 700;
    color: #191c1c;
    letter-spacing: -0.05em;
  }

  .landing-section-copy {
    color: #5a685e;
    font-size: 1.04rem;
    line-height: 1.6;
    max-width: 56ch;
  }

  .landing-section.centered .landing-section-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .landing-story-list {
    display: flex;
    flex-direction: column;
    gap: 72px;
  }

  .landing-story {
    display: grid;
    gap: 56px;
    align-items: center;
  }

  /* Full-bleed tinted row: escapa el contenedor para que el background
     ocupe el 100% del viewport, pero mantiene el contenido dentro del
     ancho original gracias al padding horizontal simétrico. */
  .landing-story--tinted {
    background: #F3F4F3;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 72px calc(50vw - 50%);
  }

  .landing-story-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 430px;
  }

  .landing-story-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1;
    font-weight: 700;
    color: #191c1c;
    letter-spacing: -0.04em;
  }

  .landing-story-text {
    color: #5d6c60;
    font-size: 1.04rem;
    line-height: 1.6;
    max-width: 42ch;
  }

  .landing-story-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ee;
    box-shadow: inset 0 0 0 1px rgba(52, 93, 76, 0.06);
  }

  .landing-story-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .landing-story-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .landing-benefit-grid,
  .landing-testimonial-grid {
    display: grid;
    gap: 14px;
    width: 100%;
  }

  .landing-benefit-card,
  .landing-testimonial-card {
    padding: 28px 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(52, 93, 76, 0.08);
    box-shadow: 0 16px 26px rgba(31, 52, 37, 0.04);
  }

  .landing-benefit-head {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(198, 235, 212, 0.48);
    color: #345D4C;
    font-size: 1.1rem;
    margin-bottom: 14px;
  }

  .landing-benefit-title,
  .landing-testimonial-name {
    font-size: 1rem;
    font-weight: 800;
    color: #1f3425;
    letter-spacing: -0.03em;
  }

  .landing-benefit-copy,
  .landing-testimonial-copy {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #607064;
  }

  .landing-testimonial-role {
    margin-top: 4px;
    font-size: 0.76rem;
    color: #8a988d;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .landing-cta-band {
    position: relative;
    overflow: hidden;
    padding: 28px 24px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 18% 80%, rgba(255,255,255,0.08), transparent 24%),
      radial-gradient(circle at 82% 18%, rgba(255,255,255,0.12), transparent 22%),
      linear-gradient(135deg, #3d6d57 0%, #4f7f69 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    text-align: center;
  }

  .landing-cta-band::before,
  .landing-cta-band::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
  }

  .landing-cta-band::before {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -90px;
  }

  .landing-cta-band::after {
    width: 220px;
    height: 220px;
    right: -100px;
    top: -120px;
  }

  .landing-cta-icon {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .landing-cta-icon img {
    width: 50px;
    height: 50px;
    display: block;
  }

  .landing-cta-title {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
  }

  .landing-cta-copy {
    position: relative;
    z-index: 1;
    max-width: 42ch;
    font-size: 0.94rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.86);
  }

  .landing-cta-band .btn-primary {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: #345d4c;
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(20, 23, 22, 0.12);
  }

  .landing-footer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
  }

  .landing-footer-bar {
    height: 1px;
    background: rgba(52, 93, 76, 0.08);
  }

  .landing-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    align-items: center;
    justify-content: space-between;
  }

  .landing-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #345d4c;
    font-size: 0.92rem;
    font-weight: 700;
  }

  .landing-footer-brand img {
    width: 18px;
    height: 18px;
    display: block;
  }

  .landing-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: flex-end;
  }

  .landing-legal a {
    color: #58665c;
    font-size: 0.88rem;
    line-height: 1.4;
    text-decoration: none;
  }

/* ──────────────── LANDING RESPONSIVE ──────────────── */

  @media (min-width: 900px) {
    .landing-screen {
      gap: 104px;
    }

    .landing-hero {
      grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
      gap: 56px;
      padding-top: 36px;
    }

    .landing-title {
      font-size: clamp(4.2rem, 5vw, 5.4rem);
    }

    .landing-hero-media {
      display: block;
      min-height: 560px;
      max-height: 680px;
    }

    .landing-hero-photo {
      height: 100%;
      max-width: none;
      margin: 0;
      object-fit: cover;
    }

    .landing-story {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 72px;
    }

    .landing-story .landing-story-copy {
      order: 2;
    }

    .landing-story .landing-story-visual {
      order: 1;
    }

    .landing-benefit-grid,
    .landing-testimonial-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }

    .landing-footer-bottom {
      flex-wrap: nowrap;
    }
  }

/* ──────────────── LANDING — border-radius mobile override ──────────────── */

  .landing-hero,
  .landing-phone-card,
  .landing-mini-card,
  .landing-feature {
    border-radius: 20px;
  }

/* ──────────────── LANDING — shell width overrides ──────────────── */
/* El shell global (.app-frame y .app-main > .screen) está capado a 1120px en
   styles.css para la app autenticada. En la experiencia pública queremos más
   aire, así que ensanchamos y dejamos que el contenido ocupe el ancho completo
   del frame (sin el padding horizontal que usa la app autenticada). */

  @media (min-width: 760px) {
    .app-frame.public-experience {
      width: min(100%, 1344px);
      max-width: 1344px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Navbar full-bleed: el topbar vive dentro del .app-frame (max 1344px)
       pero queremos que ocupe el ancho completo del viewport para que el
       logo y el CTA queden anclados a los bordes de la ventana.
       Funciona porque .app-frame.public-experience NO tiene overflow-x:clip
       (ese clip está scoped a .authenticated-experience). */
    .app-frame.public-experience .mobile-topbar {
      width: 100vw;
      margin-left: calc(50% - 50vw);
      margin-right: calc(50% - 50vw);
    }
  }

  @media (min-width: 1100px) {
    .app-frame.public-experience .app-main {
      padding-left: 0;
      padding-right: 0;
    }

    .app-main > .landing-screen {
      max-width: 1344px;
      margin-left: auto;
      margin-right: auto;
    }
  }

/* ──────────────── LANDING — pure white background ──────────────── */
/* Forzamos blanco puro (#FFFFFF) en toda la experiencia pública. El shell
   global usa #FAFAF8, pero en la landing queremos un blanco neutro sin
   tinte cálido. Scoped a .public-experience para no tocar la app autenticada. */

  body:has(.app-frame.public-experience) {
    background: #ffffff;
  }

  .app-shell:has(.app-frame.public-experience) {
    background: #ffffff;
  }

  .app-frame.public-experience {
    background: #ffffff;
  }
