/* ============================================================
   Dekora — hoja de estilos de la landing
   Tokens del sistema de diseño + componentes.
   ============================================================ */

:root {
  /* Color */
  --marino: #023167;
  --marino-suave: #1d4f8a;
  --cielo: #7ccaf1;
  --cielo-fondo: #c3e5fe;
  --cielo-tenue: #eaf6fe;
  --verde-canal: #0a9e54;
  --verde-canal-oscuro: #077a41;
  --blanco: #ffffff;
  --gris-texto: #5d6b80;
  --gris-tenue: #8190a5;
  --borde: #dbe7f4;

  /* Sombra */
  --sombra-sm: 0 1px 3px rgba(2, 49, 103, 0.08);
  --sombra-md: 0 10px 30px rgba(2, 49, 103, 0.10);
  --sombra-cta: 0 10px 24px rgba(10, 158, 84, 0.30);

  /* Espaciado */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;

  /* Radio */
  --radius-sm: 10px; --radius-md: 18px; --radius-lg: 28px; --radius-pill: 999px;

  /* Tipografía */
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
}

/* Estilos de texto del sistema */
.display-xl { font-size: 44px; line-height: 46px; font-weight: 700; letter-spacing: -0.02em; }
.display-lg { font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.display-md { font-size: 24px; line-height: 30px; font-weight: 600; }
.body-lg    { font-size: 18px; line-height: 28px; font-weight: 400; }
.body       { font-size: 16px; line-height: 26px; font-weight: 400; }
.body-sm    { font-size: 14px; line-height: 22px; font-weight: 400; }
.cta        { font-size: 19px; line-height: 24px; font-weight: 700; letter-spacing: 0.02em; }
.etiqueta   { font-size: 16px; line-height: 22px; font-weight: 600; }
.eyebrow    { font-size: 15px; line-height: 20px; font-weight: 500; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--marino);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
.contenedor { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space-4); }
.centro { text-align: center; }
.solo-escritorio { display: none; }
.oculto-visual {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Marca ---------- */
.marca { display: inline-flex; position: relative; }
.marca__disco { display: block; width: 116px; height: 116px; border-radius: var(--radius-pill); box-shadow: var(--sombra-md); }
.marca__r { position: absolute; top: 2px; right: -22px; font-size: 20px; font-weight: 600; color: var(--marino); }
.marca--lg .marca__disco { width: 168px; height: 168px; }
.marca--sm .marca__disco { width: 56px; height: 56px; }

/* ---------- Botón del canal ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  width: 100%; max-width: 520px;
  min-height: 64px; padding: 0 var(--space-6);
  border: 0; border-radius: var(--radius-pill);
  background: var(--verde-canal); color: var(--blanco);
  font-family: var(--font-sans); text-decoration: none; cursor: pointer;
  box-shadow: var(--sombra-cta);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.boton:hover { background: var(--verde-canal-oscuro); transform: translateY(-1px); }
.boton:active { transform: translateY(0); box-shadow: var(--sombra-sm); }
.boton:focus-visible { outline: 3px solid var(--marino); outline-offset: 3px; }
.boton__icono { width: 30px; height: 30px; flex: none; fill: var(--blanco); }
.boton__flecha { width: 24px; height: 24px; flex: none; stroke: var(--blanco); stroke-width: 2.4; fill: none; }
.boton__texto { text-transform: uppercase; }
.boton__mas { display: none; }
.boton--compacto { min-height: 52px; width: auto; max-width: none; }
.boton-pie { margin-top: var(--space-3); color: var(--gris-texto); }

/* ---------- Categorías ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); align-items: end; }
.cat { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-decoration: none; }
.cat__foto { display: block; width: 100%; height: 88px; object-fit: contain; object-position: bottom center; }
.cat__etiqueta { color: var(--marino); }
.cats--grande .cat__foto { height: 124px; }
.cat--tarjeta {
  background: var(--cielo-tenue); border: 1px solid var(--borde);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-3) var(--space-5);
  transition: box-shadow .18s ease, transform .18s ease;
}
.cat--tarjeta:hover { box-shadow: var(--sombra-md); transform: translateY(-2px); }
.cat--tarjeta:focus-visible { outline: 3px solid var(--marino); outline-offset: 3px; }
.cat--tarjeta .cat__foto { height: 132px; }

/* ---------- Filete con texto ---------- */
.filete { display: flex; align-items: center; gap: var(--space-4); color: var(--gris-tenue); }
.filete::before, .filete::after { content: ""; flex: 1; height: 1px; background: var(--borde); }

/* ---------- Redes ---------- */
.redes { display: flex; justify-content: center; align-items: center; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.redes a { display: block; border-radius: var(--radius-pill); transition: transform .18s ease; }
.redes a:hover { transform: translateY(-2px); }
.redes a:focus-visible { outline: 3px solid var(--marino); outline-offset: 3px; }
.redes__badge { display: block; width: 52px; height: 52px; border-radius: var(--radius-pill); }
.redes__accion { display: grid; place-items: center; width: 56px; height: 56px; }
.redes__accion img { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--blanco); padding: 0 var(--space-4) var(--space-8); text-align: center; }
.hero__foto {
  position: absolute; inset: 0 0 auto 0; height: 46%;
  background-size: cover; background-position: center;
  filter: blur(6px) saturate(.9); transform: scale(1.08); opacity: .8;
}
.hero__velo {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,.78) 22%, var(--blanco) 44%);
}
.hero__arco {
  position: absolute; left: -12%; right: -12%; bottom: 0; height: 196px;
  background: var(--cielo-fondo); border-radius: 50% 50% 0 0 / 112px 112px 0 0;
}
.hero__contenido { position: relative; }
.hero__marca { padding-top: 34px; }
.hero__cats { margin-top: 26px; }
.hero__filete { margin: 30px 8px 20px; }
.hero__titulo { display: block; }
.hero__parrafo { margin-top: 14px; }
.hero__cta { margin-top: 26px; }
.hero__redes { margin-top: 30px; }

/* ---------- Secciones ---------- */
.seccion { padding: var(--space-8) var(--space-4); }
.seccion--tenue { background: var(--cielo-tenue); }
.seccion__titulo { margin-bottom: var(--space-5); }
.catalogo { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.catalogo-filete { margin: var(--space-5) 8px 0; }

/* ---------- Beneficios ---------- */
.beneficios { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.beneficio {
  background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radius-md); padding: var(--space-5); box-shadow: var(--sombra-sm);
}
.beneficio__icono {
  width: 46px; height: 46px; border-radius: var(--radius-pill);
  background: var(--cielo); display: grid; place-items: center; margin-bottom: var(--space-4);
}
.beneficio__icono svg { width: 24px; height: 24px; stroke: var(--blanco); stroke-width: 2.2; fill: none; }
.beneficio h3 { margin-bottom: var(--space-2); }
.beneficio p { color: var(--gris-texto); }

/* ---------- Cierre y pie ---------- */
.cierre {
  background: var(--cielo-fondo); border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-5); text-align: center;
  margin: 0 var(--space-4) var(--space-8);
}
.cierre__parrafo { margin-top: 10px; }
.cierre__contacto { margin-top: var(--space-5); }
.cierre__contacto a { color: var(--marino-suave); text-decoration: none; }
.cierre__contacto a:hover { text-decoration: underline; }
.pie { padding: var(--space-7) var(--space-4) var(--space-6); text-align: center; color: var(--gris-texto); }
.pie__redes { margin-top: var(--space-5); }
.pie__links { display: flex; gap: 18px; justify-content: center; margin-top: var(--space-5); }
.pie__links a { color: var(--gris-texto); text-decoration: none; }
.pie__links a:hover { color: var(--marino-suave); }
.pie__legal { margin-top: var(--space-4); }

/* ============================================================
   Escritorio — 900px y más
   ============================================================ */
@media (min-width: 900px) {
  .solo-escritorio { display: block; }
  .solo-movil { display: none; }

  .display-xl { font-size: 76px; line-height: 76px; }
  .display-lg { font-size: 46px; line-height: 52px; }

  /* Barra superior */
  .nav {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px var(--space-7);
  }
  .nav__links { display: flex; gap: 32px; }
  .nav__links a { text-decoration: none; }
  .nav__links a:hover { color: var(--marino-suave); }

  /* Hero en dos columnas */
  .hero { padding: 0; text-align: left; }
  .hero__arco { height: 150px; }
  .hero__grid {
    position: relative; display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--space-9); align-items: center;
    max-width: 1180px; margin: 0 auto; padding: 30px var(--space-7) 86px;
  }
  .hero__col { max-width: 520px; }
  .hero__marca { display: none; }
  .hero__parrafo { max-width: 470px; margin-top: 18px; }
  .hero__cta { margin-top: 32px; }
  .hero__cta .boton { max-width: 480px; }
  .boton__mas { display: inline; }
  .hero__redes { justify-content: flex-start; margin-top: 34px; }
  .hero__escena {
    position: relative; background: var(--blanco); border-radius: var(--radius-lg);
    box-shadow: var(--sombra-md); padding: var(--space-7) var(--space-6) var(--space-6);
  }
  .hero__escena .filete { margin-top: var(--space-5); }

  /* Secciones */
  .seccion { padding: var(--space-9) var(--space-7); }
  .seccion__titulo { margin-bottom: var(--space-6); }
  .beneficios { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .catalogo { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
  .catalogo-filete { margin-top: var(--space-6); }

  /* Cierre */
  .cierre {
    margin: 0 var(--space-7) var(--space-9);
    display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-7);
    align-items: center; text-align: left; padding: var(--space-9) var(--space-8);
  }
  .cierre h2 { font-size: 38px; line-height: 44px; }
  .cierre .boton { max-width: 420px; }
  .cierre__contacto { margin-top: var(--space-4); }

  /* Pie */
  .pie {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--space-6) var(--space-7); border-top: 1px solid var(--borde); text-align: left;
  }
  .pie__redes, .pie__links, .pie__legal { margin-top: 0; }
}

/* Teléfonos angostos: el botón aprieta su holgura para no partir la etiqueta */
@media (max-width: 420px) {
  .boton { padding: 0 var(--space-4); gap: var(--space-2); }
  .boton__icono { width: 26px; height: 26px; }
  .boton__flecha { width: 20px; height: 20px; }
  .cierre { padding: var(--space-8) var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boton, .cat--tarjeta, .redes a { transition: none; }
}
