/* Avrora · home. Recetas de tipografia-animada (revelado, fotos en el titular, sello) adaptadas. */

/* ---------- recetas ---------- */
.rv .rv-p { display: inline-block; opacity: 0; filter: blur(var(--rv-blur, 12px)); transform: translateY(var(--rv-y, .3em)); transition: opacity .9s ease-out, filter .9s ease-out, transform 1s var(--curva); transition-delay: calc(var(--i, 0) * var(--rv-esc, 70ms) + var(--rv-base, 0ms)); }
.rv.rv-visto .rv-p { opacity: 1; filter: none; transform: none; }
.rv-scrub .rv-p { transition: none; transform: none; opacity: .14; }

.tf .tf-foto {
  display: inline-block; height: .78em; width: 0; vertical-align: -.06em; margin: 0 .08em;
  border-radius: 999px; overflow: hidden; background: var(--salvia-clara);
  transition: width 1.2s cubic-bezier(.7, 0, .2, 1); transition-delay: calc(var(--i, 0) * 160ms + var(--tf-base, 0ms));
}
.tf .tf-foto > img { width: 100%; height: 100%; object-fit: cover; display: block; scale: 1.3; transition: scale 1.5s var(--curva); transition-delay: inherit; }
.tf.tf-visto .tf-foto { width: var(--w, 1.6em); }
.tf.tf-visto .tf-foto > img { scale: 1; }
.tf .tf-casa { border-radius: 0; height: .9em; vertical-align: -.02em; margin-left: .1em; clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); }

.sello {
  --sello-tam: clamp(110px, 10vw, 142px);
  position: relative; display: inline-grid; place-items: center; width: var(--sello-tam); aspect-ratio: 1; flex: none;
  border-radius: 50%; background: var(--salvia); color: var(--tinta-fuerte); text-decoration: none; overflow: hidden;
  transition: background-color .3s;
}
.sello:hover { background: var(--salvia-clara); }
.sello-aro { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sello-aro text { font: 700 13.5px/1 var(--fuente); letter-spacing: .08em; text-transform: uppercase; fill: currentColor; }
.sello-centro { display: grid; place-items: center; width: 46%; aspect-ratio: 1; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.sello-centro svg, .sello-centro img { width: 100%; height: auto; }
.sello:hover .sello-centro, .sello:focus-visible .sello-centro { transform: scale(1.12) rotate(-8deg); }
.sello:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.sello-oscuro { background: var(--oliva); color: var(--arena); --sello-tam: clamp(150px, 17vw, 230px); }
.sello-oscuro:hover { background: var(--tinta); }
.sello-oscuro .sello-centro img { filter: brightness(0) invert(1); }
.sello-oscuro:focus-visible { outline-color: var(--arena); }

/* ---------- 1 · portada ---------- */
.hero { position: relative; overflow: hidden; }
.hero-cont {
  position: relative; z-index: 1;
  min-height: calc(100svh - var(--alto-cinta) - var(--alto-header));
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: clamp(32px, 5vw, 88px);
  padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px);
}
.hero-titulo {
  font-family: var(--display); font-weight: 500; color: var(--tinta-fuerte);
  font-size: clamp(50px, min(6.6vw, 12.5svh), 124px); line-height: .92; letter-spacing: -.025em;
  margin: 0; text-wrap: initial;
}
.hero-titulo .r { display: block; white-space: nowrap; }
.hero-titulo .r2 { padding-left: 8%; }
.hero-titulo .r3 { padding-left: 16%; }
.hero-lead { margin-top: clamp(24px, 3vw, 36px); }
.hero-botones { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }

/* la casa: foto propia con forma de casa, los techos y la chimenea del logo en línea */
.hero-visual { position: relative; margin: 0; width: min(100%, 520px); justify-self: center; aspect-ratio: 4 / 5; margin-top: 7%; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; inset: 30% -60vw -14% 24%; background: var(--arena-2); border-radius: 40px 0 0 40px; }
.hero-foto { position: absolute; inset: 0; overflow: hidden; background: var(--arena-2); clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; }
.hero-techos { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; color: var(--tinta-fuerte); pointer-events: none; }
.hero-techos path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hero-foto-chica { position: absolute; left: -16%; bottom: -8%; width: 38%; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; border: 7px solid var(--arena); box-shadow: 0 18px 40px rgb(47 58 40 / .16); }
.hero-foto-chica img { width: 100%; height: 100%; object-fit: cover; }
.hero .sello { position: absolute; right: -8%; top: 30%; z-index: 2; }
.hero-etiqueta {
  position: absolute; right: 4%; bottom: 4%; z-index: 2; display: inline-flex; align-items: baseline; gap: 10px;
  padding: 9px 14px; border-radius: 999px; background: rgb(246 242 234 / .92); color: var(--tinta-fuerte);
  font-size: 13.5px; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.hero-etiqueta:hover { background: var(--blanco); }
.sello-casita svg { width: 100%; }
.sello-casita .casita { stroke-width: 9; }

/* entrada */
@media (prefers-reduced-motion: no-preference) {
  .hero-foto { animation: casa-sube 1.4s .25s cubic-bezier(.7, 0, .2, 1) both; }
  .hero-foto img { animation: foto-asienta 2s .25s var(--curva) both; }
  .hero-techos.dibujar path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo 1.3s 1s cubic-bezier(.6, 0, .2, 1) forwards; }
  .hero-techos.dibujar path:nth-child(2) { animation-delay: 1.3s; }
  .hero-techos.dibujar path:nth-child(3) { animation-delay: 1.55s; }
  .hero-foto-chica, .hero .sello, .hero-etiqueta { animation: asoma .9s 1.2s var(--curva) both; }
  .hero .sello { animation-delay: 1.4s; }
  .hero-etiqueta { animation-delay: 1.7s; }
  .hero-foto-chica { translate: var(--mx, 0) var(--my, 0); transition: translate .6s var(--curva); }
}
@keyframes casa-sube { from { clip-path: polygon(50% 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); } }
@keyframes foto-asienta { from { transform: scale(1.18); } }
@keyframes asoma { from { opacity: 0; transform: translateY(16px) scale(.96); } }

@media (max-width: 860px) {
  .hero-cont { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; }
  .hero-texto { display: contents; }
  .hero-texto .desc { order: 1; }
  .hero-titulo { order: 2; font-size: min(15vw, 84px); }
  .hero-visual { order: 3; width: min(78%, 420px); margin: clamp(56px, 14vw, 80px) 0 clamp(40px, 10vw, 64px) 14%; }
  .hero-lead { order: 4; margin-top: 0; }
  .hero-botones { order: 5; }
  .hero .sello { --sello-tam: 92px; right: -14%; top: 4%; }
  .hero-etiqueta { right: auto; bottom: auto; left: 8%; top: 36%; }
  .hero .sello-aro text { font-size: 15px; }
  .hero-titulo .r2 { padding-left: 0; }
  .hero-titulo .r3 { padding-left: 14%; }
}

/* ---------- 2 · la casa se abre ---------- */
.abre { position: relative; height: 240vh; }
.abre-pin { position: sticky; top: var(--alto-header); height: calc(100svh - var(--alto-header)); overflow: hidden; }
.abre-foto {
  position: absolute; inset: 0; background: var(--salvia-clara);
  clip-path: polygon(var(--l, 30%) var(--e, 34%), 50% var(--a, 12%), var(--r, 70%) var(--e, 34%), var(--r, 70%) var(--b, 94%), var(--l, 30%) var(--b, 94%));
}
.abre-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(var(--z, 1.12)); }
.abre-etiqueta {
  position: absolute; left: var(--margen); bottom: clamp(18px, 4vw, 40px); z-index: 2;
  display: grid; gap: 2px; padding: 14px 20px 14px 18px; border-radius: 18px; max-width: min(360px, calc(100% - 2 * var(--margen)));
  background: rgb(246 242 234 / .94); color: var(--tinta-fuerte); text-decoration: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .6s var(--curva), background-color .2s;
}
.abre-etiqueta.ver { opacity: 1; transform: none; }
.abre-etiqueta:hover { background: var(--blanco); }
.abre-mini { font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--suave); }
.abre-etiqueta b { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.05; }
.abre-etiqueta .num { font-weight: 700; }

/* ---------- 3 · recorrido horizontal ---------- */
.casa { position: relative; }
.casa-pin { position: sticky; top: var(--alto-header); height: calc(100svh - var(--alto-header)); display: flex; flex-direction: column; overflow: hidden; padding: clamp(20px, 3vw, 40px) 0; }
.casa-cabeza { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(18px, 2.4vw, 32px); }
.casa-cabeza .desc { margin-bottom: 10px; }
.casa-progreso { width: min(240px, 30vw); height: 2px; background: var(--salvia-clara); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.casa-progreso i { display: block; height: 100%; background: var(--tinta-fuerte); transform-origin: left; transform: scaleX(0); }
.casa-pista {
  flex: 1; min-height: 0; display: flex; gap: clamp(16px, 2vw, 28px); will-change: transform;
  padding-inline: max(var(--margen), calc((100% - var(--ancho)) / 2 + var(--margen)));
}
.cuarto {
  --fondo: var(--salvia-clara); --texto: var(--tinta-fuerte);
  position: relative; flex: none; width: clamp(560px, 64vw, 1000px); height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 36px);
  padding: clamp(18px, 2.4vw, 32px); border-radius: 32px; background: var(--fondo); color: var(--texto);
  text-decoration: none; overflow: hidden; isolation: isolate;
}
.cuarto.c2 { --fondo: var(--arena-2); }
.cuarto.c3 { --fondo: var(--blanco); }
.cuarto.c4 { --fondo: var(--salvia); }
.cuarto.c5 { --fondo: var(--tinta-fuerte); --texto: var(--arena); }
.cuarto-texto { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; order: -1; }
.cuarto-num { font-weight: 700; font-size: 14px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.cuarto-nombre { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 4.8vw, 84px); line-height: .92; letter-spacing: -.02em; margin-top: auto; }
.cuarto-cuenta { display: block; font-size: 15px; font-weight: 600; margin-top: 14px; opacity: .85; min-height: 1.5em; font-variant-numeric: tabular-nums; }
.cuarto-ir { display: inline-flex; align-items: center; gap: 10px; align-self: start; margin-top: 22px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 700; transition: background-color .3s, color .3s; }
.cuarto-ir svg { width: 20px; height: 20px; transition: transform .35s var(--curva); }
.cuarto:hover .cuarto-ir { background: var(--texto); color: var(--fondo); }
.cuarto:hover .cuarto-ir svg { transform: translateX(4px); }
.cuarto-fotos { position: relative; min-height: 0; }
.cuarto-fotos .g { position: absolute; inset: 0 0 0 8%; width: 92%; height: 100%; object-fit: cover; clip-path: polygon(50% 0, 100% 20%, 100% 100%, 0 100%, 0 20%); transition: transform 1s var(--curva); }
.cuarto-fotos .c { position: absolute; left: 0; bottom: 6%; width: 38%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; border: 6px solid var(--fondo); }
.cuarto:hover .cuarto-fotos .g { transform: scale(1.03); }
.cuarto:focus-visible { outline-offset: -6px; outline-color: var(--texto); }

/* celular o movimiento reducido: carrusel nativo, sin fijar la pantalla */
.casa.nativo .casa-pin { position: static; height: auto; overflow: visible; padding: var(--seccion) 0 calc(var(--seccion) * .6); }
.casa.nativo .casa-progreso { display: none; }
.casa.nativo .casa-pista { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margen); scrollbar-width: none; padding-bottom: 4px; }
.casa.nativo .casa-pista::-webkit-scrollbar { display: none; }
.casa.nativo .cuarto { scroll-snap-align: start; width: min(84vw, 560px); height: auto; grid-template-columns: 1fr; grid-template-rows: auto auto; }
.casa.nativo .cuarto-texto { order: 1; }
.casa.nativo .cuarto-fotos { aspect-ratio: 4 / 4.2; }
.casa.nativo .cuarto-nombre { font-size: clamp(46px, 12vw, 72px); margin-top: 10px; }

/* ---------- 4 · manifiesto ---------- */
.manifiesto { background: var(--noche); color: var(--arena); padding: var(--seccion) 0; }
.manifiesto .desc { color: var(--salvia); }
.manifiesto-texto {
  font-family: var(--display); font-weight: 500; font-size: clamp(34px, 5.2vw, 82px); line-height: 1.04; letter-spacing: -.015em;
  margin: 0; max-width: 20ch; color: var(--arena);
}
.manifiesto .tf-foto { background: var(--oliva); }
.nosotras-firma { margin: clamp(28px, 4vw, 48px) 0 0; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; font-size: 13px; color: var(--salvia); display: flex; align-items: center; gap: 14px; }
.nosotras-firma::before { content: ""; width: 48px; height: 1.5px; background: currentColor; }

/* ---------- 6 · marquesina de condiciones ---------- */
.condiciones { background: var(--salvia); color: var(--tinta-fuerte); padding: clamp(28px, 4vw, 52px) 0; overflow: hidden; }
.marquesina { display: grid; gap: 4px; }
.marq-pista { display: flex; width: max-content; white-space: nowrap; will-change: transform; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 7vw, 112px); line-height: 1.05; letter-spacing: -.015em; }
.marq-item { display: inline-flex; align-items: center; gap: .35em; padding-right: .35em; }
.marq-item b { font-weight: 600; }
.marq-item svg { width: 1.05em; flex: none; }
.marq-item .casita { stroke-width: 8; }
.marq-pista.contorno { color: transparent; -webkit-text-stroke: 1.2px var(--tinta-fuerte); }
.marq-pista.contorno .casita { stroke: var(--tinta-fuerte); stroke-width: 5; }

/* ---------- 7 · columnas a contramano ---------- */
.columnas { padding: var(--seccion) 0; overflow: hidden; }
.columnas-cont { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.columnas-texto .h2 { max-width: 11ch; }
.columnas-texto .btn { margin-top: 30px; }
.columnas-fotos { height: min(86svh, 860px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); overflow: hidden; border-radius: 28px; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.col { display: grid; gap: clamp(10px, 1.2vw, 16px); align-content: start; will-change: transform; }
.col img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--salvia-clara); }
@media (max-width: 860px) {
  .columnas-cont { grid-template-columns: 1fr; }
  .columnas-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 72svh; }
  .col:nth-child(3) { display: none; }
}

/* ---------- 8 · cerámica ---------- */
.ceramica { position: relative; overflow: hidden; background: var(--noche); color: var(--arena); padding: calc(var(--seccion) * 1.15) 0; }
.ceramica h2 { color: var(--arena); max-width: 11ch; }
.ceramica .desc { color: var(--salvia); }
.ceramica-p { color: var(--sobre-oscuro); max-width: 42ch; margin: 22px 0 32px; font-size: 18px; }
.ceramica-cont { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.ceramica-casita { position: absolute; left: -6%; right: -6%; bottom: -4%; color: var(--oliva); pointer-events: none; }
.ceramica-casita .casita { stroke-width: 1.4; }
.ceramica-casita path { stroke-dasharray: 1; stroke-dashoffset: var(--trazo, 0); }

/* ---------- 9 · reseñas como postales ---------- */
.resenas-sec { overflow: hidden; }
.mesa { position: relative; height: clamp(520px, 42vw, 600px); max-width: var(--ancho); margin-inline: auto; touch-action: pan-y; }
.postal {
  position: absolute; width: clamp(250px, 24vw, 330px); padding: 26px 26px 22px; border-radius: 22px;
  background: var(--blanco); box-shadow: 0 14px 34px rgb(47 58 40 / .12), 0 2px 6px rgb(47 58 40 / .06);
  display: flex; flex-direction: column; gap: 18px; cursor: grab; user-select: none; touch-action: none;
  will-change: transform;
}
.postal:nth-child(3n+2) { background: var(--arena-2); }
.postal:nth-child(3n) { background: var(--arena); }
.postal.arrastrando { cursor: grabbing; box-shadow: 0 26px 50px rgb(47 58 40 / .2); }
.postal blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: 27px; line-height: 1.12; color: var(--tinta-fuerte); }
.postal footer { font-size: 14px; color: var(--suave); }
.postal footer b { display: block; color: var(--tinta-fuerte); font-size: 15px; }
.mesa.fila { height: auto; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 320px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--margen) 28px; scroll-padding-inline: var(--margen); scrollbar-width: none; touch-action: auto; }
.mesa.fila::-webkit-scrollbar { display: none; }
.mesa.fila .postal { position: relative; width: auto; cursor: auto; touch-action: auto; scroll-snap-align: start; transform: rotate(var(--giro, 0deg)); }

/* ---------- 10 · nosotras ---------- */
.nosotras-cont { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.nosotras-foto { position: relative; aspect-ratio: 4 / 5; }
.foto-casa { position: absolute; inset: 0; overflow: hidden; background: var(--salvia-clara); clip-path: polygon(50% 0, 100% 22%, 100% 100%, 0 100%, 0 22%); }
.foto-casa img { width: 100%; height: 118%; object-fit: cover; transform: translateY(var(--py, -8%)); }
.nosotras p { margin: 18px 0 0; max-width: 48ch; }
.datos-showroom { margin-top: 30px; display: grid; gap: 12px; }
.datos-showroom .btn { justify-self: start; margin-top: 6px; }
.dato { display: flex; gap: 14px; align-items: flex-start; background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; padding: 16px 18px; }
.dato svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--oliva); }
.dato b { display: block; color: var(--tinta-fuerte); }
@media (max-width: 860px) { .nosotras-cont { grid-template-columns: 1fr; } .nosotras-foto { max-width: 460px; width: 100%; } }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .abre { height: auto; padding: 0 var(--margen); }
  .abre-pin { position: relative; top: 0; height: 80svh; border-radius: 28px; max-width: var(--ancho); margin-inline: auto; }
  .abre-foto { clip-path: none; }
  .abre-foto img { transform: none; }
  .abre-etiqueta { opacity: 1; transform: none; }
  .tf .tf-foto { width: var(--w, 1.6em); }
  .tf .tf-foto > img { scale: 1; }
  .foto-casa img { height: 100%; transform: none; }
  .ceramica-casita path { stroke-dashoffset: 0; }
}

/* ---------- verde salvia y detalles de casa ---------- */
/* ramas de olivo dibujadas, de fondo */
.ramita {
  position: absolute; z-index: 0; pointer-events: none; display: block;
  width: var(--ram-w, 120px); aspect-ratio: 160 / 330; background: var(--ram-c, var(--salvia-media));
  -webkit-mask: url("../img/ramita.svg") center / contain no-repeat; mask: url("../img/ramita.svg") center / contain no-repeat;
  opacity: var(--ram-o, .55); rotate: var(--ram-g, 0deg);
}
.ramita-hero { --ram-w: clamp(56px, 4.6vw, 80px); --ram-g: 72deg; left: max(calc(var(--margen) + 210px), calc((100% - var(--ancho)) / 2 + var(--margen) + 230px)); top: -30px; }
.ramita-fav { --ram-w: clamp(70px, 6.5vw, 110px); --ram-g: 66deg; right: 4%; top: -14px; }
.ramita-res { --ram-w: clamp(70px, 6.5vw, 110px); --ram-g: -66deg; right: 5%; top: -14px; }
.favoritos, .resenas-sec, .nosotras { position: relative; overflow: clip; }
.favoritos > .cont, .resenas-sec > .cont, .resenas-sec > .mesa { position: relative; z-index: 1; }

/* el mantel: la franja de condiciones en cuadrillé salvia */
.condiciones {
  background-color: var(--salvia-clara);
  background-image:
    linear-gradient(90deg, rgb(143 165 127 / .38) 50%, transparent 0),
    linear-gradient(rgb(143 165 127 / .38) 50%, transparent 0);
  background-size: 44px 44px;
}

/* nosotras: la casa apoyada sobre un paño verde */
.nosotras-foto::before { content: ""; position: absolute; inset: 18% -9% -7% 12%; background: var(--salvia-clara); border-radius: 28px; }
.foto-casa { z-index: 1; }
.nosotras-foto .ramita { --ram-w: clamp(70px, 7vw, 118px); --ram-g: -22deg; left: -9%; top: 6%; z-index: 2; --ram-c: var(--salvia-media); --ram-o: .8; }

/* tarjetas sobre verde: foto con fondo de lino */
.lino .tarjeta { border-color: transparent; }
@media (max-width: 860px) {
  .ramita-hero, .ramita-fav, .ramita-res { display: none; }
  .nosotras-foto .ramita { left: -4%; }
}
