/* ===========================================================
   Todo Lindo — hoja de estilos
   Los colores, tipografias, espacios y radios salen del
   sistema de diseño de la marca. Si cambia un color ahi,
   se cambia aca abajo en :root y se actualiza todo el sitio.
   =========================================================== */

:root {
  /* Color */
  --crema: #f7f4eb;
  --crema-200: #efe9db;
  --blanco: #ffffff;
  --tinta: #3b2a20;
  --tinta-suave: #6b5a4e;
  --coral: #ea7861;
  --coral-oscuro: #b34730;
  --turquesa: #6cb1a4;
  --verde-profundo: #185554;
  --amarillo: #edc463;
  --linea: #e2dac9;
  --borde: #8a8073;
  --whatsapp: #25D366;

  /* Tipografia */
  --fuente-titulo: Nunito, "Trebuchet MS", system-ui, sans-serif;
  --fuente-texto: "DM Sans", system-ui, -apple-system, sans-serif;

  /* Espacio */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;

  /* Radios */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 999px;

  /* Sombras */
  --sombra-tarjeta: 0 2px 8px rgba(24, 85, 84, 0.10);
  --sombra-flotante: 0 6px 20px rgba(24, 85, 84, 0.22);

  /* Medidas */
  --ancho-max: 1280px;
  --margen-lateral: 80px;
  --alto-header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Para que al saltar desde el menu el header pegajoso no tape el titulo */
section[id], footer[id] { scroll-margin-top: calc(var(--alto-header) + 16px); }

body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--fuente-texto);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--coral-oscuro); }
a:hover { color: #8c3a26; }

:focus-visible { outline: 2px solid var(--borde); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--fuente-titulo); font-weight: 700; margin: 0; letter-spacing: -0.01em; }

.contenedor {
  max-width: var(--ancho-max);
  margin: 0 auto;
  padding-left: var(--margen-lateral);
  padding-right: var(--margen-lateral);
}

.rotulo {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--tinta-suave); margin: 0;
}

.marcador {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--tinta-suave);
  background: var(--crema-200);
}

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  padding: 16px 32px; border: 0; border-radius: var(--radius-md);
  text-decoration: none; cursor: pointer;
}
.boton--wa { background: var(--verde-profundo); color: var(--crema); }
.boton--wa:hover { background: #0f403f; color: var(--crema); }
.boton--claro { background: var(--crema); color: var(--tinta); }
.boton--claro:hover { background: #ffffff; color: var(--tinta); }
.boton--coral { background: var(--coral-oscuro); color: var(--crema); }
.boton--coral:hover { background: #8c3a26; color: var(--crema); }
.boton--tinta { background: var(--tinta); color: var(--crema); }
.boton--tinta:hover { color: var(--crema); }
.boton svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
/* La flecha se corre un poco al pasar el mouse */
.boton__flecha { display: inline-block; transition: transform .3s cubic-bezier(.25,.8,.3,1); }
.boton:hover .boton__flecha { transform: translateX(4px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  height: var(--alto-header); margin-bottom: calc(var(--alto-header) * -1);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--margen-lateral);
  background: transparent;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.header__logo { display: inline-flex; }
.header__logo img { display: block; height: 38px; width: auto; }
.header__logo .logo-claro { display: block; }
.header__logo .logo-oscuro { display: none; }
.header__nav { display: flex; gap: var(--space-8); align-items: center; }
.header__nav a {
  position: relative;
  font-size: 15px; font-weight: 600; text-decoration: none;
  color: var(--crema); transition: color .25s ease;
}
.header__nav a:hover { color: var(--crema); }
/* Subrayado que crece desde la izquierda al pasar el mouse */
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--coral); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.25,.8,.3,1);
}
.header__nav a:hover::after, .header__nav a:focus-visible::after { transform: scaleX(1); }
.header__menu { display: none; }

.header.is-solido {
  background: var(--crema);
  box-shadow: 0 1px 0 var(--linea), var(--sombra-tarjeta);
}
.header.is-solido .logo-claro { display: none; }
.header.is-solido .logo-oscuro { display: block; }
.header.is-solido .header__nav a { color: var(--tinta); }

/* ---------- Portada ---------- */
/* 75% de la pantalla, con techo y piso para que no se rompa en
   monitores muy altos ni en celulares apaisados. */
.portada { position: relative; height: 85vh; min-height: 560px; max-height: 1000px; background: var(--crema-200); }
.portada__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
/* La foto es muy clara (llega a #feecd3), asi que el texto crema
   necesita sombra. En vez de un velo parejo sobre toda la imagen,
   va concentrada en la esquina donde esta el texto: la banda del
   menu arriba y el rincon inferior izquierdo. El centro y la
   derecha, donde estan las chicas, quedan sin tocar. */
.portada__velo {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(30,20,15,.70) 0%, rgba(30,20,15,.60) 7%, rgba(30,20,15,.28) 14%, rgba(30,20,15,0) 22%),
    linear-gradient(to top, rgba(30,20,15,.80) 0%, rgba(30,20,15,.70) 34%, rgba(30,20,15,.54) 50%, rgba(30,20,15,.30) 64%, rgba(30,20,15,.08) 76%, rgba(30,20,15,0) 86%);
}
.portada__velo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(30,20,15,.62) 0%, rgba(30,20,15,.34) 36%, rgba(30,20,15,0) 58%);
}
.portada__texto { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 72px; }
.portada .rotulo { color: var(--crema); margin-bottom: var(--space-4); }
.portada h1 {
  font-size: 64px; line-height: 1.02; color: var(--crema);
  max-width: 620px; margin-bottom: var(--space-4);
}
.portada p {
  font-size: 18px; line-height: 1.5; color: var(--crema);
  max-width: 440px; margin: 0 0 var(--space-8);
}

/* ---------- Categorias (acordeon) ---------- */
.acordeon { display: flex; gap: var(--space-2); }
.acordeon__panel {
  position: relative; display: block; flex: 1 1 0; min-width: 0;
  height: 520px; overflow: hidden; border-radius: var(--radius-md);
  background: var(--crema-200); text-decoration: none;
  transition: flex-grow .6s cubic-bezier(.25,.8,.3,1);
}
.acordeon:hover .acordeon__panel,
.acordeon:focus-within .acordeon__panel { flex-grow: .82; }
.acordeon:hover .acordeon__panel:hover,
.acordeon:focus-within .acordeon__panel:focus-within { flex-grow: 1.5; }
.acordeon__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acordeon__velo {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(32,22,17,.80) 0%, rgba(32,22,17,.34) 38%, rgba(32,22,17,.04) 68%);
}
.acordeon__tapa {
  position: absolute; inset: 0; pointer-events: none;
  background: rgba(247,244,235,.24); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .6s cubic-bezier(.25,.8,.3,1);
}
.acordeon:hover .acordeon__tapa, .acordeon:focus-within .acordeon__tapa { opacity: 1; }
.acordeon__panel:hover .acordeon__tapa,
.acordeon__panel:focus-within .acordeon__tapa { opacity: 0; }
.acordeon__pie {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-8); pointer-events: none; overflow: hidden;
}
.acordeon__pie strong {
  display: block; font-family: var(--fuente-titulo); font-size: 40px;
  line-height: 1.05; font-weight: 700; color: var(--crema); white-space: nowrap;
}
.acordeon__sub {
  display: block; margin-top: var(--space-1); font-size: 15px; font-weight: 600;
  color: var(--crema); white-space: nowrap;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.25,.8,.3,1);
}
.acordeon__panel:hover .acordeon__sub,
.acordeon__panel:focus-within .acordeon__sub {
  opacity: 1; transform: translateY(0); transition-delay: .3s;
}

.cinta { margin-top: 72px; background: var(--coral); padding: 22px 0; overflow: hidden; }
.cinta__pista { display: flex; align-items: center; white-space: nowrap; animation: correr 32s linear infinite; }
.cinta__grupo { display: flex; align-items: center; flex: none; }
.cinta__grupo span {
  font-family: var(--fuente-titulo); font-size: 30px; font-weight: 700;
  color: var(--crema); padding: 0 28px;
}
.cinta__punto { width: 9px; height: 9px; border-radius: var(--radius-full); background: var(--crema); flex: none; }
@keyframes correr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Subcategorias ---------- */
.subcats {
  display: flex; gap: 36px; justify-content: center;
  overflow-x: auto;
  /* overflow-x recorta tambien arriba: sin este relleno el circulo
     que sube 4px al pasar el mouse queda cortado. */
  padding-top: var(--space-2); padding-bottom: var(--space-2);
}
.subcat { text-decoration: none; text-align: center; flex: none; width: 104px; }
.subcat__circulo {
  width: 84px; height: 84px; margin: 0 auto var(--space-3);
  border-radius: var(--radius-full); overflow: hidden;
  transition: transform .35s cubic-bezier(.25,.8,.3,1);
}
.subcat:hover .subcat__circulo, .subcat:focus-visible .subcat__circulo { transform: translateY(-4px); }
.subcat__circulo.marcador { font-size: 10px; }
.subcat--oferta .subcat__circulo {
  background: var(--verde-profundo); color: var(--crema); font-size: 12px; letter-spacing: .08em;
}
.subcat span:last-child { display: block; font-size: 15px; font-weight: 600; color: var(--tinta); }

/* ---------- Encabezado de seccion ---------- */
.seccion-cab {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-8);
}
.seccion-cab h2 { font-size: 38px; line-height: 1.15; }
.seccion-cab__acciones { display: flex; align-items: center; gap: 20px; }
.enlace-fuerte { font-size: 15px; font-weight: 600; color: var(--coral-oscuro); text-decoration: none; }

.nav-redonda {
  width: 40px; height: 40px; border-radius: var(--radius-full); padding: 0;
  border: 1.5px solid var(--borde); background: transparent; color: var(--tinta);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.nav-redonda svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-redonda[disabled] { border-color: var(--linea); color: #c3b8a7; cursor: default; }

/* ---------- Carrusel de productos ---------- */
.carrusel { overflow: hidden; }
.carrusel__pista {
  display: flex; gap: var(--space-6);
  transition: transform .45s cubic-bezier(.25,.8,.3,1);
}

.pcard {
  flex: none; width: 320px; background: var(--blanco);
  border-radius: var(--radius-md); box-shadow: var(--sombra-tarjeta);
  overflow: hidden; display: flex; flex-direction: column;
}
.pcard__fotos { position: relative; aspect-ratio: 3 / 4; background: var(--crema-200); overflow: hidden; }
.pcard__fotos img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease;
}
.pcard__fotos img.is-activa { opacity: 1; }
.pcard__etiqueta {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.3;
  text-transform: uppercase; padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.etiqueta--nuevo { background: var(--coral-oscuro); color: var(--crema); }
.etiqueta--oferta { background: var(--amarillo); color: var(--tinta); }
.etiqueta--ultimas { background: var(--verde-profundo); color: var(--crema); }

.pcard__flecha {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: var(--radius-full); border: 0; padding: 0;
  background: rgba(247,244,235,.92); box-shadow: 0 1px 4px rgba(24,85,84,.22);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .25s ease;
}
.pcard__flecha svg { width: 18px; height: 18px; fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pcard__flecha--izq { left: 10px; }
.pcard__flecha--der { right: 10px; }
.pcard:hover .pcard__flecha, .pcard:focus-within .pcard__flecha { opacity: 1; }

.pcard__puntos {
  position: absolute; bottom: var(--space-3); left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 6px;
}
.pcard__punto {
  width: 7px; height: 7px; padding: 0; border: 0; border-radius: var(--radius-full);
  background: rgba(247,244,235,.55); box-shadow: 0 1px 2px rgba(24,85,84,.35);
  cursor: pointer; transition: width .25s ease, background-color .25s ease;
}
.pcard__punto.is-activo { width: 18px; background: var(--crema); }

.pcard__cuerpo { padding: var(--space-4); display: flex; flex-direction: column; flex-grow: 1; }
.pcard__cuerpo h3 { font-size: 20px; line-height: 1.3; }
.pcard__detalle { margin: var(--space-1) 0 0; font-size: 14px; line-height: 1.5; color: var(--tinta-suave); }
.pcard__precios { margin: var(--space-3) 0 0; display: flex; align-items: baseline; gap: 10px; }
.pcard__precio { font-size: 20px; line-height: 1.2; font-weight: 700; }
.pcard__antes { font-size: 15px; color: var(--tinta-suave); text-decoration: line-through; }
.pcard__rotulo {
  margin: 18px 0 var(--space-2); font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-suave);
}
.pcard .boton { margin-top: 20px; font-size: 15px; padding: 14px 16px; }
.pcard .boton svg { width: 18px; height: 18px; }

.colores { display: flex; gap: 10px; }
.color {
  width: 24px; height: 24px; border-radius: var(--radius-full); padding: 0; cursor: pointer;
  border: 1px solid rgba(59,42,32,.25);
  outline: 2px solid transparent; outline-offset: 2px;
  transition: outline-color .2s ease;
}
.color.is-activo { outline-color: var(--tinta); }

.talles { display: flex; gap: 6px; flex-wrap: wrap; }
.talle {
  min-width: 42px; height: 34px; padding: 0 10px; border-radius: var(--radius-md);
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--tinta); border: 1.5px solid var(--borde);
}
.talle.is-activo { background: var(--tinta); color: var(--crema); border-color: var(--tinta); }

/* ---------- Banners ---------- */
.banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.banner {
  position: relative; display: block; height: 300px; overflow: hidden;
  border-radius: var(--radius-md); background: var(--crema-200); text-decoration: none;
}
.banner__foto {
  position: absolute; right: 0; top: 0; bottom: 0; width: 46%;
  background: var(--linea); transition: transform .55s cubic-bezier(.25,.8,.3,1);
}
.banner:hover .banner__foto { transform: scale(1.04); }
.banner__texto {
  position: absolute; left: 0; top: 0; bottom: 0; width: 60%;
  padding: var(--space-8) 40px; display: flex; flex-direction: column; justify-content: center;
}
.banner__texto strong {
  display: block; font-family: var(--fuente-titulo); font-size: 34px;
  line-height: 1.08; font-weight: 700; margin: var(--space-3) 0 var(--space-6);
}
.banner .boton { align-self: flex-start; font-size: 15px; padding: 14px 24px; }

/* ---------- Destacado ---------- */
.destacado { margin-top: 96px; background: var(--blanco); padding: 80px 0; }
.destacado__grid { display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: center; }
.destacado__foto {
  flex: 1 1 440px; min-width: 0; aspect-ratio: 1 / 1;
  border-radius: var(--radius-md); overflow: hidden; background: var(--crema);
}
.destacado__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.destacado__datos { flex: 1 1 380px; min-width: 0; }
.destacado__datos .rotulo { color: var(--coral-oscuro); margin-bottom: var(--space-4); }
.destacado__datos h2 { font-size: 52px; line-height: 1.02; margin-bottom: var(--space-3); }
.destacado__precio { margin: 0 0 var(--space-2); font-size: 28px; line-height: 1.2; font-weight: 700; }
.destacado__desc { margin: 0 0 28px; font-size: 15px; line-height: 1.6; color: var(--tinta-suave); max-width: 420px; }
.destacado .talles { gap: var(--space-2); margin-bottom: 28px; }
.destacado .talle { min-width: 48px; height: 44px; padding: 0 14px; font-size: 15px; }
.destacado__aviso { margin: 14px 0 0; font-size: 13px; color: var(--tinta-suave); }

/* ---------- Como comprar ---------- */
.comprar { background: var(--crema-200); padding: 80px 0; }
.comprar h2 { font-size: 38px; line-height: 1.15; text-align: center; margin-bottom: var(--space-2); }
.comprar__bajada {
  margin: 0 auto var(--space-12); font-size: 17px; line-height: 1.6;
  color: var(--tinta-suave); text-align: center; max-width: 560px;
}
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.paso { background: var(--crema); border-radius: var(--radius-md); padding: var(--space-8); }
.paso__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--coral-oscuro); color: var(--crema);
  font-size: 18px; font-weight: 700; margin-bottom: 20px;
}
.paso h3 { font-size: 22px; margin-bottom: var(--space-2); }
.paso p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tinta-suave); }

/* ---------- Pagos y entregas ---------- */
.info { background: var(--blanco); padding: var(--space-12) 0; }
.info__grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px;
}
.info__item { display: flex; gap: var(--space-4); align-items: center; }
.info__icono {
  flex: none; width: 56px; height: 56px; border-radius: var(--radius-full);
  border: 1.5px solid var(--borde); display: flex; align-items: center; justify-content: center;
}
.info__icono svg { display: block; width: 26px; height: 26px; fill: none; stroke: var(--tinta); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* El texto tiene clase propia: con ".info__item span" el circulo perdia
   su display:flex y el icono quedaba pegado arriba a la izquierda. */
.info__texto strong { display: block; font-size: 16px; }
.info__texto span { display: block; font-size: 14px; line-height: 1.5; color: var(--tinta-suave); }

/* ---------- Showroom ---------- */
.showroom { background: var(--verde-profundo); padding: 80px 0; }
.showroom__grid { display: flex; flex-wrap: wrap; gap: var(--space-16); align-items: center; }
.showroom__texto { flex: 1 1 420px; min-width: 0; }
.showroom .rotulo { color: var(--amarillo); margin-bottom: var(--space-4); }
.showroom h2 { font-size: 44px; line-height: 1.05; color: var(--crema); margin-bottom: 20px; }
.showroom p { margin: 0 0 28px; font-size: 17px; line-height: 1.65; color: var(--crema); max-width: 480px; }
.showroom__foto {
  flex: 1 1 380px; min-width: 0; aspect-ratio: 4 / 3;
  background: rgba(247,244,235,.12); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--crema);
}

/* ===========================================================
   DIVISOR ENTRE SHOWROOM Y ENCARGOS
   El verde del showroom termina en un borde organico y de ahi
   baja una rama que se dibuja sola cuando entra en pantalla.
   Las formas y los colores salen del ramo del logo.
   =========================================================== */
.raices { position: relative; background: var(--crema); padding-bottom: 72px; }
.raices__suelo { display: block; width: 100%; height: 64px; }
.raices__suelo path { fill: var(--verde-profundo); }
.raices__planta { display: block; width: 300px; max-width: 70vw; height: auto; margin: -34px auto 0; position: relative; }

.raices .tallo {
  fill: none; stroke: var(--verde-profundo); stroke-width: 4;
  stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0;
}
/* La rotacion vive en el atributo del SVG y la escala en CSS, cada una
   en su propio grupo: si van juntas en el mismo elemento, el
   transform-origin del CSS corre tambien la rotacion y las hojas
   se desprenden de la rama. */
.raices .hoja { transform-box: fill-box; transform-origin: center; }
.raices .hoja ellipse { fill: var(--verde-profundo); }
.raices .hoja--clara ellipse { fill: var(--turquesa); }
.raices .petalos ellipse { fill: var(--coral); }
.raices .centro { fill: var(--amarillo); }
.raices__flor { transform-box: fill-box; transform-origin: center; }

/* El dibujo arranca cuando el observador marca el bloque como visible */
.raices.is-visible .tallo { animation: dibujar 1s cubic-bezier(.25,.8,.3,1) backwards; }
.raices.is-visible .tallo--1 { animation-delay: .10s; }
.raices.is-visible .tallo--2 { animation-delay: .45s; }
.raices.is-visible .tallo--3 { animation-delay: .62s; }
.raices.is-visible .tallo--4 { animation-delay: .79s; }
.raices.is-visible .hoja { animation: brotar .5s cubic-bezier(.34,1.3,.5,1) backwards; }
.raices.is-visible .hoja--1 { animation-delay: .95s; }
.raices.is-visible .hoja--2 { animation-delay: 1.08s; }
.raices.is-visible .hoja--3 { animation-delay: 1.21s; }
.raices.is-visible .raices__flor { animation: brotar .6s cubic-bezier(.34,1.35,.5,1) backwards; animation-delay: 1.34s; }

@keyframes dibujar { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes brotar { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Encargos ---------- */
.encargos { background: var(--crema); padding: 112px 0; }
.encargos__grid { display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.encargos__foto { flex: 1 1 420px; min-width: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.encargos__texto { flex: 1 1 380px; min-width: 0; text-align: center; }
.encargos h2 { font-size: 40px; line-height: 1.08; margin-bottom: var(--space-4); }
.encargos p { margin: 0 auto var(--space-8); font-size: 17px; line-height: 1.65; color: var(--tinta-suave); max-width: 440px; }

/* ---------- Pie ---------- */
.pie { background: var(--verde-profundo); padding: 72px 0 40px; border-top: 1px solid rgba(247,244,235,.18); }
.pie__grid { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: space-between; }
.pie__marca { flex: 1 1 300px; max-width: 360px; }
.pie__logo {
  display: inline-flex; background: var(--crema); border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3); margin-bottom: 20px;
}
.pie__logo img { display: block; height: 44px; width: auto; }
.pie__marca p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--crema); }
.pie__col h3 {
  font-family: var(--fuente-texto); font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--amarillo);
  margin-bottom: var(--space-4);
}
.pie__col p { margin: 0 0 10px; font-size: 15px; color: var(--crema); }
/* Solo los enlaces de lista, no los botones: ".pie__col a" a secas
   le ganaba a ".boton--claro" y dejaba el texto en crema sobre crema. */
.pie__col p a { color: var(--crema); text-decoration: none; }
.pie__col p a:hover { color: var(--amarillo); }
.pie__col .boton { margin-top: 10px; font-size: 15px; padding: 12px 20px; }
.pie__legal {
  margin: 56px 0 0; padding-top: var(--space-6);
  border-top: 1px solid rgba(247,244,235,.25);
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8);
  align-items: baseline; justify-content: space-between;
}
.pie__legal p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--crema); max-width: 680px; }
.pie__credito { flex: none; }
.pie__credito strong { font-weight: 700; color: var(--amarillo); }

/* ---------- Boton flotante ---------- */
.wa-flotante {
  position: fixed; right: var(--space-8); bottom: var(--space-8); z-index: 30;
  width: 60px; height: 60px; border-radius: var(--radius-full);
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra-flotante); text-decoration: none;
  transition: transform .25s ease;
}
.wa-flotante:hover { transform: translateY(-2px); }
.wa-flotante img { display: block; width: 38px; height: auto; }

/* ===========================================================
   CELULAR Y TABLET
   =========================================================== */
@media (max-width: 900px) {
  :root { --margen-lateral: 20px; --alto-header: 60px; }

  .header__nav { display: none; }
  .header__menu {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .header__menu i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--crema); transition: background-color .25s ease; }
  .header.is-solido .header__menu i { background: var(--tinta); }
  .header__logo img { height: 28px; }

  .portada { height: 80vh; min-height: 520px; max-height: 760px; }
  .portada__velo {
    background:
      linear-gradient(to bottom, rgba(30,20,15,.62) 0%, rgba(30,20,15,.24) 10%, rgba(30,20,15,0) 20%),
      linear-gradient(to top, rgba(30,20,15,.86) 0%, rgba(30,20,15,.78) 40%, rgba(30,20,15,.60) 60%, rgba(30,20,15,.30) 76%, rgba(30,20,15,0) 90%);
  }
  .portada__velo::after { display: none; }
  .portada__texto { padding-bottom: 36px; }
  .portada h1 { font-size: 40px; }
  .portada p { font-size: 15px; }
  .portada .boton { display: flex; width: 100%; }

  .acordeon { flex-direction: column; gap: 3px; }
  .acordeon__panel { height: 260px; flex: none; }
  .acordeon:hover .acordeon__panel, .acordeon__panel:hover { flex-grow: 0; }
  .acordeon__pie { padding: var(--space-6) var(--space-4); }
  .acordeon__pie strong { font-size: 32px; }
  .acordeon__sub { opacity: 1; transform: none; font-size: 14px; }

  .cinta { margin-top: 40px; padding: var(--space-4) 0; }
  .cinta__grupo span { font-size: 22px; padding: 0 20px; }

  .subcats { justify-content: flex-start; gap: 20px; }
  .subcat { width: 76px; }
  .subcat__circulo { width: 64px; height: 64px; }
  .subcat span:last-child { font-size: 13px; }

  .seccion-cab h2 { font-size: 28px; }
  .seccion-cab__acciones { gap: var(--space-3); }

  /* El carrusel llega hasta el borde derecho de la pantalla para que
     la tarjeta siguiente asome, pero recorta adentro: sin esto la
     pagina entera se puede desplazar de costado. */
  .carrusel {
    overflow: hidden;
    margin-right: calc(var(--margen-lateral) * -1);
    padding-right: var(--margen-lateral);
  }
  .carrusel__pista { gap: var(--space-4); }
  .pcard { width: 280px; }
  .pcard__flecha { opacity: 1; width: 40px; height: 40px; }

  .banners { grid-template-columns: 1fr; }
  .banner { height: auto; }
  .banner__foto { width: 38%; }
  .banner__texto { position: static; width: 62%; padding: 28px var(--space-4); }
  .banner__texto strong { font-size: 26px; }

  .destacado { margin-top: 40px; padding: 40px 0; }
  .destacado__grid { gap: 28px; }
  .destacado__datos h2 { font-size: 36px; }
  .destacado__precio { font-size: 24px; }
  .destacado .boton { display: flex; width: 100%; }

  .comprar { padding: 40px 0; }
  .comprar h2 { font-size: 28px; text-align: left; }
  .comprar__bajada { text-align: left; margin-bottom: var(--space-6); font-size: 15px; }
  .pasos { grid-template-columns: 1fr; gap: var(--space-3); }
  .paso { padding: 20px; display: flex; gap: var(--space-4); align-items: flex-start; }
  .paso__n { margin-bottom: 0; flex: none; width: 40px; height: 40px; }
  .paso h3 { font-size: 19px; }

  .info { padding: var(--space-8) 0; }
  .info__grid { grid-template-columns: 1fr; gap: 22px; }

  .showroom { padding: 40px 0; }
  .showroom h2 { font-size: 32px; }
  .showroom p { font-size: 16px; }
  .showroom .boton { display: flex; width: 100%; }

  .raices { padding-bottom: 40px; }
  .raices__suelo { height: 40px; }
  .raices__planta { width: 210px; margin-top: -22px; }
  .encargos { padding: 56px 0; }
  .encargos__grid { gap: 28px; }
  .encargos h2 { font-size: 30px; }
  .encargos .boton { display: flex; width: 100%; }

  .pie { padding: 40px 0 100px; }
  .pie__grid { flex-direction: column; gap: var(--space-6); }
  .pie__legal { flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); }
  .pie__marca { margin-bottom: 0; }
  .pie__logo { margin-bottom: var(--space-3); }

  .wa-flotante { right: var(--space-4); bottom: var(--space-4); width: 56px; height: 56px; }
  .wa-flotante img { width: 34px; }
}

/* Respeta a quien pidio menos movimiento en su sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===========================================================
   ENTRADAS AL SCROLLEAR
   El JS le pone .is-visible a cada bloque cuando entra en
   pantalla. Si el JS no corre, todo queda visible igual.
   =========================================================== */
.anima { opacity: 0; transform: translateY(24px); }
.anima.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.25,.8,.3,1), transform .7s cubic-bezier(.25,.8,.3,1);
}
.anima--d1.is-visible { transition-delay: .08s; }
.anima--d2.is-visible { transition-delay: .16s; }
.anima--d3.is-visible { transition-delay: .24s; }

/* La portada entra sola al cargar, sin esperar al scroll */
.portada__texto > .contenedor > * { opacity: 0; transform: translateY(20px); animation: entrar .9s cubic-bezier(.25,.8,.3,1) forwards; }
.portada__texto > .contenedor > *:nth-child(1) { animation-delay: .15s; }
.portada__texto > .contenedor > *:nth-child(2) { animation-delay: .28s; }
.portada__texto > .contenedor > *:nth-child(3) { animation-delay: .41s; }
.portada__texto > .contenedor > *:nth-child(4) { animation-delay: .54s; }
@keyframes entrar { to { opacity: 1; transform: none; } }

/* Lenis necesita esto para tomar el control del scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .anima, .portada__texto > .contenedor > * { opacity: 1 !important; transform: none !important; animation: none !important; }
}
