/* 1000 Blinds · web nueva (fase 1)
   Concepto: lujo silencioso. Fotos verticales como protagonistas, mucho aire,
   neutros cálidos y el azul Mist solo como acento. Etiquetas tipo ficha de taller. */

:root {
  /* Color */
  --white: #FFFFFF;
  --paper: #F7F7F6;        /* fondo de bandas suaves */
  --mist-gray: #E9EBED;    /* gris de la web (13 nov) */
  --line: #E0E0E0;
  --muted: #666666;
  --charcoal: #404040;
  --ink: #0A0A0A;
  --mist: #A3B8C7;         /* acento, nunca como color de texto */
  --mist-deep: #5F7686;    /* versión legible del Mist para focos y detalles */

  /* Tipografía */
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.7rem, 6vw, 5.4rem);
  --fs-h2: clamp(2.1rem, 4vw, 3.4rem);
  --fs-h3: clamp(1.45rem, 2vw, 1.8rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;
  --fs-label: 0.72rem;

  /* Espacio */
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-hero); font-weight: 400; }
h2 { font-size: var(--fs-h2); font-weight: 400; }
h3 { font-size: var(--fs-h3); }
h1 em, h2 em { font-style: italic; font-weight: 400; }
:focus-visible { outline: 2px solid var(--mist-deep); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* Contenedores */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.narrow { max-width: 760px; }
.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--ink { background: #1E1F20; color: #D9DCDF; }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* Etiquetas */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--mist); }
.section--ink .eyebrow { color: #AEB4BA; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--charcoal); max-width: 40em; }
.muted { color: var(--muted); }

/* Ficha tipo etiqueta de taller: estilo, tela, sistema */
.spec {
  display: inline-flex; flex-wrap: wrap; gap: .35em .9em;
  font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase;
  color: var(--charcoal);
}
.spec span + span::before { content: "·"; margin-right: .9em; color: var(--mist-deep); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .85em 1.6em;
  font: 500 .82rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  background: var(--ink); color: var(--white);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--charcoal); border-color: var(--charcoal); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--line:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6em; text-decoration: none;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding-bottom: 4px; border-bottom: 1px solid var(--mist);
  transition: gap .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 1em; border-color: var(--ink); }

/* Franja superior */
.topbar { background: var(--ink); color: #C9CDD1; font-size: .78rem; letter-spacing: .04em; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar__contact { display: flex; gap: 22px; white-space: nowrap; }
.topbar__areas { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* Encabezado */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.header.is-scrolled { border-color: var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; transition: min-height .3s var(--ease); }
.header.is-scrolled .wrap { min-height: 64px; }
.logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list a, .nav__list button {
  font: 500 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--charcoal); background: none; border: 0; padding: 10px 0; cursor: pointer;
  position: relative;
}
.nav__list a::after, .nav__list button::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--mist-deep);
  transition: right .35s var(--ease);
}
.nav__list a:hover::after, .nav__list button:hover::after, .nav__list a[aria-current="page"]::after, .nav__list .is-current::after { right: 0; }
.dropdown {
  position: absolute; top: 100%; left: -24px; min-width: 250px; list-style: none; margin: 0; padding: 14px 0;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.06);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .25s var(--ease);
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown, .has-drop.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 10px 24px; letter-spacing: .1em; }
.dropdown a::after { display: none; }
.dropdown a:hover { background: var(--paper); }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .3s; }

@media (max-width: 1040px) {
  .topbar__areas { display: none; }
  .topbar .wrap { justify-content: flex-end; }
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 0; top: 0; background: var(--white); flex-direction: column; align-items: stretch;
    padding: 140px var(--gutter-r) 40px var(--gutter); overflow-y: auto; z-index: -1;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--line); }
  .nav__list a, .nav__list button { display: block; width: 100%; text-align: left; padding: 18px 0; font-size: .9rem; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 12px 14px; display: none; }
  .has-drop.is-open .dropdown { display: block; }
  .nav .btn { margin-top: 24px; }
  body.menu-open { overflow: hidden; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
}

/* Portada */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.hero__text { min-width: 0; }
.hero__text .lead { margin-bottom: 2.2rem; }
.hero__media { position: relative; min-width: 0; }
.hero__frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; background: var(--mist-gray); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: drift 18s var(--ease) forwards; }
.hero__note {
  position: absolute; left: -28px; bottom: 32px; background: var(--white); padding: 18px 22px; max-width: 250px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.hero__note .spec { display: flex; flex-direction: column; gap: 4px; }
.hero__note .spec span + span::before { display: none; }
.hero__note strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin-bottom: 6px; letter-spacing: 0; text-transform: none; }
@keyframes drift { to { transform: scale(1); } }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__frame { aspect-ratio: 4 / 3.6; }
  .hero__note { left: 12px; bottom: 12px; padding: 14px 16px; }
}

/* Encabezado de página interior */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem); }
.page-head .lead { margin-top: 1rem; }
.page-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.page-hero__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist-gray); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .page-hero { grid-template-columns: 1fr; } .page-hero__img { aspect-ratio: 4 / 3.6; } }

/* Grillas */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > * { min-width: 0; }
.split--top { align-items: start; }
.split__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist-gray); }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse .split__img { order: -1; } }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > div { max-width: 640px; min-width: 0; }
.section-head h2 { margin-bottom: 0; }

/* Líneas de producto */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.product { text-decoration: none; display: block; min-width: 0; }
.product__img { aspect-ratio: 3 / 4.2; overflow: hidden; background: var(--mist-gray); margin-bottom: 18px; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product__img img { transform: scale(1.045); }
.product h3 { font-size: 1.5rem; margin-bottom: .3em; }
.product p { font-size: var(--fs-small); color: var(--muted); margin-bottom: .8em; }
@media (max-width: 960px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } .product__img { aspect-ratio: 4 / 3.6; } }

/* Dos públicos */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); }
.audience__item { background: var(--white); padding: clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.audience__item h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 400; margin: 0; }
.audience__item ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 10px; }
.audience__item li { padding-left: 22px; position: relative; font-size: .98rem; }
.audience__item li::before { content: ""; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--mist-deep); }
.audience__item .btn, .audience__item .link-arrow { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* Pasos (secuencia real del proceso) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 22px; min-width: 0; position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--display); font-size: 2.6rem; line-height: 1;
  color: var(--mist-deep); margin-bottom: 18px; font-style: italic;
}
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--ink); transition: width 1.2s var(--ease); }
.steps li.in::after { width: 100%; }
.steps h3 { font-size: 1.45rem; }
.steps p { font-size: .97rem; color: var(--muted); margin: 0; }
.section--ink .steps li { border-color: #3A3C3E; }
.section--ink .steps li::after { background: var(--mist); }
.section--ink .steps li::before { color: var(--mist); }
.section--ink .steps p { color: #AEB4BA; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.5vw, 34px); }
.card { text-decoration: none; display: block; min-width: 0; }
.card__img { aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist-gray); margin-bottom: 16px; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.card:hover .card__img img { transform: scale(1.04); }
.card h3 { font-size: 1.45rem; margin-bottom: .25em; }
.card .spec { color: var(--muted); }
.projects--feature .card:first-child { grid-row: span 2; }
.projects--feature .card:first-child .card__img { aspect-ratio: auto; height: calc(100% - 80px); min-height: 420px; }
@media (max-width: 900px) { .projects { grid-template-columns: repeat(2, 1fr); } .projects--feature .card:first-child { grid-row: auto; } .projects--feature .card:first-child .card__img { aspect-ratio: 4 / 5; height: auto; min-height: 0; } }
@media (max-width: 540px) { .projects { grid-template-columns: 1fr; } }

/* Filtros */
.filters { display: flex; flex-wrap: wrap; gap: 26px 40px; margin-bottom: 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-group__label { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.chip {
  font: 500 .78rem/1 var(--sans); letter-spacing: .08em; padding: 10px 16px; border: 1px solid var(--line);
  background: var(--white); color: var(--charcoal); cursor: pointer; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--charcoal); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.filter-count { font-size: var(--fs-small); color: var(--muted); margin: -20px 0 28px; }
.card.is-hidden { display: none; }
.card.is-entering { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Galería de estilos (carril horizontal) */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 28vw, 340px); gap: clamp(14px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { height: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); }
.style-card { scroll-snap-align: start; margin: 0; min-width: 0; }
.style-card button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.style-card button:focus-visible { outline: 2px solid var(--mist-deep); outline-offset: 3px; }
.style-card__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist-gray); }
.style-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.style-card:hover img { transform: scale(1.04); }
.style-card figcaption { padding-top: 14px; }
.style-card h3 { font-size: 1.3rem; margin-bottom: .2em; }
.style-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.rail-controls { display: flex; gap: 8px; }
.rail-btn { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 1.1rem; transition: all .25s; }
.rail-btn:hover { border-color: var(--ink); }

/* Galería de proyecto */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 22px); }
.gallery figure { margin: 0; min-width: 0; }
.gallery button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.gallery .g-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist-gray); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.gallery--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .gallery, .gallery--two { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .gallery, .gallery--two { grid-template-columns: 1fr; } }

/* Ficha de datos del proyecto */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.facts div { padding: 20px 20px 20px 0; min-width: 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Historia del proyecto (desplazamiento con imagen fija) */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.story__media { position: sticky; top: 110px; align-self: start; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist-gray); }
.story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.story__media img.is-active { opacity: 1; transform: none; }
.story__progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--mist); width: 0; transition: width .6s var(--ease); z-index: 2; }
.story__steps { display: flex; flex-direction: column; }
.story__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; opacity: .35; transition: opacity .6s; }
.story__step.is-active { opacity: 1; }
.story__step .eyebrow { margin-bottom: 1rem; }
.story__step img { display: none; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story__media { display: none; }
  .story__step { min-height: 0; opacity: 1; padding-block: 1.5rem 2.5rem; }
  .story__step img { display: block; aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; margin-bottom: 1.4rem; }
}

/* Franja de confianza */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.trust div { padding: 26px 22px 6px 0; min-width: 0; }
.trust strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.trust span { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr 1fr; } }

/* Razones */
.reasons { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 70px); }
.reasons > div { min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.reasons h3 { font-size: 1.5rem; }
.reasons p { color: var(--muted); margin: 0; }
.section--ink .reasons > div { border-color: #3A3C3E; }
.section--ink .reasons p { color: #AEB4BA; }
@media (max-width: 700px) { .reasons { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.5rem); color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--mist-deep); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 0 26px; max-width: 46em; color: var(--charcoal); }
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: 1rem; }

/* Llamado final */
.cta { position: relative; overflow: hidden; color: var(--white); background: #1E1F20; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta .wrap { position: relative; padding-block: clamp(5rem, 11vw, 9rem); display: grid; gap: 1.4rem; justify-items: start; }
.cta h2 { color: var(--white); max-width: 15em; margin: 0; }
.cta p { color: #E3E6E8; max-width: 36em; margin: 0; }
.cta .eyebrow { color: #D2D7DB; }

/* Formularios */
.form-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.form-layout > * { min-width: 0; }
.form-aside { position: sticky; top: 110px; }
.form-aside .split__img { aspect-ratio: 4 / 4.4; margin-top: 2rem; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .form-aside { position: static; } .form-aside .split__img { display: none; } }
.form { display: grid; gap: 30px; }
.field { display: grid; gap: 10px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field > label, .field legend { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--ink); padding: 0; }
.field .hint { font-size: .86rem; color: var(--muted); margin: -4px 0 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input, select.input, textarea.input {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 0; border-bottom: 1px solid #BDBDBD; padding: 12px 0; border-radius: 0; transition: border-color .25s;
}
textarea.input { min-height: 110px; resize: vertical; border: 1px solid #BDBDBD; padding: 12px 14px; }
.input:focus { outline: none; border-color: var(--ink); }
.input:focus-visible { box-shadow: 0 2px 0 var(--mist-deep); }
.input[aria-invalid="true"] { border-color: #9B3A2E; }
.options { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.option span {
  display: inline-block; padding: 12px 18px; border: 1px solid var(--line); font-size: .93rem; color: var(--charcoal);
  transition: all .2s var(--ease); background: var(--white);
}
.option input:hover + span { border-color: var(--charcoal); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.option input:focus-visible + span { outline: 2px solid var(--mist-deep); outline-offset: 2px; }
.consent { font-size: .86rem; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.error-msg { color: #9B3A2E; font-size: .86rem; margin: 0; }
.form-error-summary { border-left: 2px solid #9B3A2E; padding: 12px 16px; background: #FBF3F1; font-size: .92rem; }
.conditional[hidden] { display: none; }
.conditional { display: grid; gap: 30px; padding: 26px; background: var(--paper); border-left: 2px solid var(--mist); animation: rise .45s var(--ease) both; }

.result { border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.6rem); background: var(--paper); display: grid; gap: 18px; animation: rise .5s var(--ease) both; }
.result h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.result pre {
  white-space: pre-wrap; word-break: break-word; font: 400 .9rem/1.6 var(--sans); background: var(--white);
  border: 1px solid var(--line); padding: 18px; margin: 0; max-height: 320px; overflow: auto; color: var(--charcoal);
}
.result .contact-plain { font-size: .9rem; color: var(--muted); }
.result .contact-plain strong { color: var(--ink); user-select: all; }

/* Áreas de servicio */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.areas > div { border-top: 1px solid var(--ink); padding-top: 22px; min-width: 0; }
.areas h3 { font-size: 1.6rem; }
.areas ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--charcoal); }
@media (max-width: 960px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }

/* Texto largo (legales) */
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: 2.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Pie */
.footer { background: #161718; color: #AEB4BA; font-size: .93rem; }
.footer .wrap { padding-block: clamp(4rem, 8vw, 6rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 3.5rem; border-bottom: 1px solid #2C2E30; }
.footer__top > * { min-width: 0; }
.footer img { width: 150px; margin-bottom: 22px; }
.footer h4 { font-family: var(--sans); font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: var(--white); font-weight: 500; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; color: #D6DADD; transition: color .2s; }
.footer a:hover { color: var(--white); }
.footer__areas { font-family: var(--display); font-size: 1.3rem; line-height: 1.4; color: #E3E6E8; max-width: 22em; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 1.6rem; font-size: .8rem; color: #8B9196; }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); text-decoration: none;
  padding: 13px 18px 13px 14px; font: 500 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0,0,0,.18); transition: transform .3s var(--ease), background .3s;
}
.wa-float:hover { transform: translateY(-2px); background: var(--charcoal); }
.wa-float svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* Aviso de cookies */
.cookie {
  position: fixed; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  max-width: 400px; background: var(--white); border: 1px solid var(--line); padding: 20px 22px; box-shadow: 0 18px 44px rgba(0,0,0,.1);
  font-size: .88rem; display: grid; gap: 14px;
}
.cookie p { margin: 0; color: var(--charcoal); }
.cookie .btn { min-height: 40px; padding: .6em 1.1em; font-size: .72rem; }
@media (max-width: 860px) {
  .cookie { max-width: none; right: calc(84px + env(safe-area-inset-right, 0px)); left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 14px 16px; gap: 10px; font-size: .82rem; }
  .cookie .btn-row { gap: 8px; }
}

/* Visor de fotos */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,12,12,.94); display: grid; place-items: center; padding: 60px max(16px, env(safe-area-inset-right, 0px)) 60px max(16px, env(safe-area-inset-left, 0px)); }
.lightbox img { max-height: 82vh; width: auto; max-width: min(92vw, 1100px); object-fit: contain; }
.lightbox figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.lightbox figcaption { color: #D6DADD; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.lightbox button { position: absolute; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); width: 48px; height: 48px; cursor: pointer; font-size: 1.2rem; }
.lightbox .lb-close { top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); }
.lightbox .lb-prev { left: calc(14px + env(safe-area-inset-left, 0px)); top: 50%; }
.lightbox .lb-next { right: calc(14px + env(safe-area-inset-right, 0px)); top: 50%; }

/* Aparición al desplazarse: el contenido es visible si no hay JavaScript */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; } .js .reveal-d2 { transition-delay: .16s; } .js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__frame img { transform: none; }
}

/* Utilidades */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ===== Correcciones 20 nov (Nahomy) ===== */

/* Opciones de formulario: que se vea claro que se pueden tocar */
.option span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; cursor: pointer; min-height: 46px; }
.option span::before {
  content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid #8A9198; background: var(--white);
  transition: all .2s var(--ease); display: grid; place-items: center; font-size: 12px; line-height: 1; color: var(--white);
}
.option input[type="radio"] + span::before { border-radius: 50%; }
.option input:hover + span { border-color: var(--ink); background: var(--paper); }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.option input:checked + span::before { border-color: var(--white); background: var(--white); color: var(--ink); content: "✓"; font-weight: 700; }
.option input[type="radio"]:checked + span::before { content: ""; box-shadow: inset 0 0 0 4px var(--ink); }

/* Línea de tiempo de How It Works */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(3rem, 7vw, 6rem); position: relative; }
.timeline::before { content: ""; position: absolute; left: calc(50% - .5px); top: 0; bottom: 0; width: 1px; background: #3A3C3E; }
.timeline__step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; position: relative; }
.timeline__step::after { content: ""; position: absolute; left: calc(50% - 6px); top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #1E1F20; border: 1px solid var(--mist); transition: background .6s var(--ease); }
.timeline__step.in::after { background: var(--mist); }
.timeline__step:nth-child(even) .timeline__img { order: 2; }
.timeline__img { aspect-ratio: 4 / 3.4; overflow: hidden; background: #2A2B2C; min-width: 0; }
.timeline__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease); }
.timeline__step.in .timeline__img img { transform: none; }
.timeline__text { min-width: 0; max-width: 30em; }
.timeline__num { font-family: var(--display); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--mist); margin: 0 0 .6rem; }
.timeline__text h3 { color: var(--white); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 400; }
.timeline__text p { color: #AEB4BA; }
.timeline__text .spec { color: #D6DADD; margin-top: .6rem; }
.js .timeline__step { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .timeline__step.in { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .timeline::before, .timeline__step::after { display: none; }
  .timeline__step { grid-template-columns: 1fr; gap: 1.4rem; }
  .timeline__step:nth-child(even) .timeline__img { order: 0; }
}

/* Reseñas */
.review { margin: 0; background: var(--white); border: 1px solid var(--line); padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 18px; height: 100%; }
.review blockquote { margin: 0; font-family: var(--display); font-size: 1.32rem; line-height: 1.4; color: var(--ink); }
.review blockquote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--mist-deep); margin-bottom: 8px; }
.review figcaption { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--charcoal); font-weight: 500; }
.review__src { color: var(--muted); font-weight: 400; }
.reviews-grid { columns: 3 300px; column-gap: 24px; }
.reviews-grid > div { break-inside: avoid; margin-bottom: 24px; }

.reviews-band { overflow: hidden; }
.marquee { overflow: hidden; padding-block: 4px 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee:focus-visible { outline: 2px solid var(--mist-deep); outline-offset: -2px; }
.marquee__track { display: flex; gap: 24px; width: max-content; animation: marquee 80s linear infinite; padding-left: 24px; }
.marquee__track .review { width: min(380px, 80vw); flex: none; height: auto; }
.marquee:hover .marquee__track, .marquee:focus .marquee__track, .marquee:focus-within .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track .review[aria-hidden="true"] { display: none; }
}

/* Tarjeta de reseña que aparece sola */
.review-toast {
  position: fixed; left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 44;
  width: min(360px, calc(100vw - 110px)); background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.12);
  padding: 22px 24px 20px; display: grid; gap: 10px; animation: toast-in .7s var(--ease) both;
}
.review-toast.is-leaving { animation: toast-out .4s var(--ease) both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(16px); } }
.review-toast__label { margin: 0; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.review-toast__text { margin: 0; font-family: var(--display); font-size: 1.18rem; line-height: 1.4; color: var(--ink); }
.review-toast__meta { margin: 0; font-size: .82rem; color: var(--muted); }
.review-toast__name { color: var(--ink); font-weight: 500; }
.review-toast .link-arrow { justify-self: start; font-size: .72rem; }
.review-toast__close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .95rem; }
.review-toast__close:hover { color: var(--ink); }
@media (max-width: 520px) { .review-toast { left: 12px; bottom: 12px; padding: 18px 18px 16px; } .review-toast__text { font-size: 1.05rem; } }

/* ===== Capa editorial (referencia Roche Bobois, 23 nov) ===== */

/* Logo: versión clara solo sobre el video de portada */
.logo { position: relative; display: block; }
.logo__light { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.logo img { transition: opacity .4s var(--ease); }

/* Portada con video: el encabezado flota encima y se vuelve blanco al bajar */
.home .topbar { display: none; }
.home .header { position: fixed; left: 0; right: 0; top: 0; padding-top: env(safe-area-inset-top, 0px); background: transparent; border-color: transparent; transition: background .45s var(--ease), border-color .45s var(--ease); }
.home .header:not(.is-scrolled) .logo__dark { opacity: 0; }
.home .header:not(.is-scrolled) .logo__light { opacity: 1; }
.home .header:not(.is-scrolled) .nav__list > li > a, .home .header:not(.is-scrolled) .nav__list > li > button { color: var(--white); }
.home .header:not(.is-scrolled) .nav__list a::after, .home .header:not(.is-scrolled) .nav__list button::after { background: var(--white); }
.home .header:not(.is-scrolled) .nav > .btn { background: var(--white); color: var(--ink); border-color: var(--white); }
.home .header:not(.is-scrolled) .menu-toggle span { background: var(--white); }
.home .header.is-scrolled { background: var(--white); border-color: var(--line); }
.home body::before, .home::before { background: transparent; }
.home .menu-open .header .logo__dark, .home.menu-open .header .logo__dark { opacity: 1; }
.home.menu-open .header .logo__light { opacity: 0; }
.home.menu-open .header .menu-toggle span { background: var(--ink); }
@media (max-width: 1040px) { .home.menu-open .header .nav__list > li > a, .home.menu-open .header .nav__list > li > button { color: var(--charcoal); } }

.hero-video { position: relative; height: 100vh; height: 100svh; min-height: 560px; max-height: 1100px; overflow: hidden; background: #1E1F20; color: var(--white); display: grid; place-items: end start; }
.hero-video__media, .hero-video__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video__media video { object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.6s var(--ease), transform 7s linear; }
.hero-video__media video.is-active { opacity: 1; transform: scale(1); }
.hero-video__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.42) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 45%, rgba(10,10,10,.55) 100%); }
.hero-video__content { position: relative; z-index: 2; max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gutter-r) clamp(4.5rem, 12vh, 8rem) var(--gutter); }
.hero-video__content h1 { color: var(--white); max-width: 13em; font-size: clamp(2.6rem, 6vw, 5.6rem); margin-bottom: .35em; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero-video__eyebrow { color: rgba(255,255,255,.85); }
.hero-video__eyebrow::before { background: var(--white); }
.hero-video__lead { max-width: 34em; color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1.4vw, 1.2rem); margin-bottom: 2rem; }
.hero-video__dots { position: absolute; right: max(24px, var(--gutter-r)); bottom: clamp(4.5rem, 12vh, 8rem); z-index: 2; display: flex; gap: 8px; }
.hero-video__dots span { width: 28px; height: 2px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.hero-video__dots span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero-video__dots span.is-active::after { animation: dot 6s linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
.hero-video__scroll { position: absolute; left: 50%; bottom: 22px; z-index: 2; width: 1px; height: 46px; background: rgba(255,255,255,.35); overflow: hidden; }
.hero-video__scroll span { position: absolute; left: 0; top: -46px; width: 1px; height: 46px; background: var(--white); animation: scrollcue 2.4s var(--ease) infinite; }
@keyframes scrollcue { to { top: 46px; } }
.js .hero-video__content > * { opacity: 0; transform: translateY(18px); animation: heroin 1.1s var(--ease) forwards; }
.js .hero-video__content > *:nth-child(2) { animation-delay: .15s; } .js .hero-video__content > *:nth-child(3) { animation-delay: .3s; } .js .hero-video__content > *:nth-child(4) { animation-delay: .45s; }
@keyframes heroin { to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .hero-video__dots { display: none; } .hero-video__content h1 { font-size: clamp(2.3rem, 10vw, 3rem); } }

/* Paneles a todo el ancho */
.panels-intro { padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.panels-intro .section-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.panels { display: grid; gap: 8px; background: var(--white); padding-bottom: 8px; }
.panel { position: relative; height: clamp(520px, 86vh, 900px); overflow: hidden; background: #2A2B2C; color: var(--white); }
.panel__media { position: absolute; inset: 0; display: block; overflow: hidden; }
.panel__media img, .panel__media video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.08); transition: transform 2.4s var(--ease); }
.panel.in .panel__media img, .panel.in .panel__media video { transform: scale(1); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.12) 42%, rgba(10,10,10,0) 70%); }
.panel--right::after { background: linear-gradient(270deg, rgba(10,10,10,.5) 0%, rgba(10,10,10,.12) 42%, rgba(10,10,10,0) 70%); }
.panel__card { position: absolute; z-index: 2; left: max(28px, var(--gutter)); top: clamp(2rem, 7vh, 4.5rem); max-width: 26rem; }
.panel--right .panel__card { left: auto; right: max(28px, var(--gutter-r)); text-align: right; }
.panel__label { font-size: var(--fs-label); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); margin: 0 0 1rem; }
.panel__title { color: var(--white); font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 400; margin: 0 0 .6rem; text-shadow: 0 2px 24px rgba(0,0,0,.2); }
.panel__text { color: rgba(255,255,255,.9); font-size: 1.02rem; margin: 0 0 1.4rem; }
.panel__link { display: inline-flex; align-items: center; gap: .6em; color: var(--white); text-decoration: none; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.6); transition: gap .3s var(--ease); }
.panel__link::after { content: "→"; }
.panel__link:hover { gap: 1em; }
.panel--pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--white); }
.panel--pair .panel__half { position: relative; display: block; overflow: hidden; background: #2A2B2C; }
.panel--pair::after { background: linear-gradient(90deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 45%); }
@media (max-width: 760px) {
  .panel { height: auto; min-height: 0; display: flex; flex-direction: column; background: var(--white); color: var(--ink); }
  .panel__media { position: relative; aspect-ratio: 4 / 4.6; }
  .panel::after { display: none; }
  .panel__card, .panel--right .panel__card { position: static; max-width: none; text-align: left; padding: 1.6rem var(--gutter-r) 2.4rem var(--gutter); }
  .panel__label { color: var(--muted); } .panel__title { color: var(--ink); text-shadow: none; } .panel__text { color: var(--charcoal); }
  .panel__link { color: var(--ink); border-color: var(--mist); }
  .panel--pair { grid-template-columns: 1fr 1fr; }
  .panel--pair .panel__half { aspect-ratio: 3 / 4; }
  .panel--pair .panel__card { grid-column: 1 / -1; }
}

/* La firma: la imagen aparece como un roller que sube */
.panel__hem { position: absolute; left: 0; right: 0; top: 0; height: 10px; z-index: 3; background: linear-gradient(180deg, #E9EBED, #CFD3D6); box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; pointer-events: none; }
.js .panel .panel__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.7s cubic-bezier(.65,0,.25,1); }
.js .panel.in .panel__media { clip-path: inset(0 0 0 0); }
.js .panel .panel__hem { opacity: 1; top: 0; transform: translateY(0); }
.js .panel.in .panel__hem { animation: hem 1.7s cubic-bezier(.65,0,.25,1) forwards; }
@keyframes hem { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.js .panel .panel__card { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease) .9s, transform .9s var(--ease) .9s; }
.js .panel.in .panel__card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .panel .panel__media { clip-path: none; } .js .panel .panel__hem { display: none; } .js .panel .panel__card { opacity: 1; transform: none; }
  .hero-video__media video { transition: none; }
}

/* Firma (versión final): una tela tipo roller cubre la foto y sube, con su barra inferior */
.js .panel .panel__media { clip-path: none; }
.panel__hem { top: 0 !important; bottom: auto; height: 0; box-shadow: none; opacity: 1; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, rgba(0,0,0,.03) 2px 4px),
  linear-gradient(180deg, #E4E6E8, #D9DCDF); }
.panel__hem::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(180deg, #BFC4C8, #A9AFB4); box-shadow: 0 6px 14px rgba(0,0,0,.28); }
.js .panel .panel__hem { height: 100%; animation: none; }
.js .panel.in .panel__hem { animation: shadeup 1.8s cubic-bezier(.65,0,.25,1) .1s forwards; }
@keyframes shadeup { 0% { height: 100%; } 100% { height: 0; } }
.js .panel.in .panel__hem::after { animation: hemfade .4s ease 1.8s forwards; }
@keyframes hemfade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .js .panel .panel__hem { display: none; } }

/* Legibilidad del texto sobre videos claros */
.hero-video__shade { background:
  linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,0) 20%),
  linear-gradient(0deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.38) 40%, rgba(10,10,10,0) 68%),
  linear-gradient(90deg, rgba(10,10,10,.38) 0%, rgba(10,10,10,0) 62%); }
.hero-video__content h1, .hero-video__lead { text-shadow: 0 2px 28px rgba(0,0,0,.35); }
@media (min-width: 761px) {
  .panel--pair .panel__card { top: auto; bottom: clamp(2rem, 7vh, 4.5rem); }
  .panel--pair::after { background: linear-gradient(0deg, rgba(10,10,10,.62) 0%, rgba(10,10,10,.25) 35%, rgba(10,10,10,0) 60%); }
}
@media (min-width: 761px) { .panel__card { top: clamp(6rem, 13vh, 8rem); } .panel--pair .panel__card { top: auto; } }

/* Detalles de rieles (3 dic): fila quieta que se desliza con el dedo, una tarjeta a la vez */
.hardware { overflow: hidden; }
.hw-row { display: flex; gap: 20px; max-width: var(--wrap); margin: 0 auto; padding: 4px var(--gutter-r) 8px var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gutter); overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hw-row::-webkit-scrollbar { display: none; }
.hw-row:focus-visible { outline: 2px solid var(--mist-deep); outline-offset: -2px; }
.hw-card { margin: 0; flex: 0 0 calc((100% - 40px) / 3.15); min-width: 0; scroll-snap-align: start; }
.hw-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.hw-count { margin: 0; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hw-count__now { color: var(--ink); font-weight: 500; }
.hw-arrows { display: flex; gap: 10px; }
.hw-arrow { width: 52px; height: 52px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.hw-arrow:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.hw-arrow:disabled { opacity: .25; cursor: default; }
@media (max-width: 900px) { .hw-card { flex-basis: 46%; } }
@media (max-width: 600px) { .hw-card { flex-basis: 84%; } .hw-arrow { width: 46px; height: 46px; } }
@media (min-width: 901px) { .hw-count__hint { display: none; } }
.hw-card__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist-gray); }
.hw-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hw-card:hover img { transform: scale(1.05); }
.hw-card figcaption { padding-top: 14px; }
.hw-card h3 { font-size: 1.35rem; margin-bottom: .2em; }
.hw-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Video vertical en el encabezado de Trade */
.page-hero__video { position: relative; }
.page-hero__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-caption { position: absolute; left: 18px; bottom: 16px; margin: 0; display: flex; gap: 10px; font-size: var(--fs-label); letter-spacing: .18em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.video-caption span + span::before { content: "→"; margin-right: 10px; }

/* Encabezado solo texto, seguido de un panel de video a todo el ancho */
.page-hero--text { grid-template-columns: 1fr; max-width: 900px; margin-left: 0; }
.page-head--wide { padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-head--wide + .panels { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Pestañas de estilos (romanas) */
.tabs__list { margin-bottom: 1.6rem; }
.tabs__intro { margin: 0 0 1.6rem; }
.tabs__pane.is-entering { animation: rise .55s var(--ease) both; }
.gallery--four { grid-template-columns: repeat(4, 1fr); }
.gallery--five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .gallery--four, .gallery--five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .gallery--four, .gallery--five { grid-template-columns: repeat(2, 1fr); } }
.aside-photo { position: relative; margin: 2rem 0 0; }
.aside-photo figcaption { position: absolute; left: 14px; bottom: 12px; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: var(--white); text-shadow: 0 1px 10px rgba(0,0,0,.5); }
@media (max-width: 900px) { .form-aside .aside-photo { display: block; aspect-ratio: 4 / 3.4; } }

/* Panel con varias tomas que se suceden */
.panel--slides .panel__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease), transform 2.4s var(--ease); }
.panel--slides .panel__media video.is-active { opacity: 1; }
.panel__dots { position: absolute; z-index: 3; left: max(28px, var(--gutter)); bottom: 28px; display: flex; gap: 8px; }
.panel--right .panel__dots { left: auto; right: max(28px, var(--gutter-r)); }
.panel__dots span { width: 28px; height: 2px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.panel__dots span::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.panel__dots span.is-active::after { animation: dot 5.2s linear forwards; }
@media (max-width: 760px) { .panel--slides .panel__media { aspect-ratio: 16 / 11; } .panel__dots { display: none; } }

/* Ventana "Request an estimate" debajo de la línea de tiempo */
.step-window { margin-top: clamp(3rem, 6vw, 5rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(1.8rem, 4vw, 2.8rem); border: 1px solid #3A3C3E; background: #262729; }
.step-window > div:first-child { max-width: 34rem; min-width: 0; }
.step-window h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; margin: 0 0 .4rem; }
.step-window p { color: #AEB4BA; margin: 0; }
.step-window .eyebrow { margin-bottom: .8rem; }
.split__video video { width: 100%; height: 100%; object-fit: cover; display: block; }
figure.card { margin: 0; }
img[src*="7293-ripplefold-wood-ceiling"] { object-position: center 78%; }
img[src*="rel-7293-coralterrace"] { object-position: center 70%; }

/* 24 nov 2026 · Correcciones del home */
/* Fotos que se funden (Outdoor y la historia del proyecto) */
[data-fade] img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease), transform 2.4s var(--ease); }
[data-fade] img.is-active { opacity: 1; }
/* Video en un paso del proceso */
.timeline__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Recent work en carril */
.rail--work > .card { scroll-snap-align: start; margin: 0; min-width: 0; }
.rail-controls--below { justify-content: flex-end; margin-top: 1.2rem; }
/* Historia del proyecto: fotos deslizadas también en el celular */
@media (max-width: 860px) {
  .story__media { display: block; position: relative; top: auto; aspect-ratio: 4 / 4.6; margin-bottom: 1rem; }
}
/* Outdoor: más contraste para leer el texto sobre fotos claras */
@media (min-width: 761px) { .panel--pair::after { background: linear-gradient(0deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.38) 38%, rgba(10,10,10,0) 65%); } }

/* Página Commercial and Multifamily */
.segment-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 1.2rem 0; border-top: 1px solid var(--line); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.segment-nav a { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid transparent; transition: border-color .25s; }
.segment-nav a:hover { border-color: var(--mist); }
.card__img--soon { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--mist-gray), #DCE3E8); }
.card__soon { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
div.card { cursor: default; }
/* Ficha de proyecto con cinco datos (Hibiscus: herrajes) */
@media (min-width: 761px) { .facts--five { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 760px) { .facts div:nth-child(5) { padding-left: 0; border-left: 0; } }

/* Tarjeta de estilo con dos fotos que se funden (30 nov 2026) */
.style-card__img[data-fade] { position: relative; }

/* Franja oscura bajo los videos en pareja, en el celular (1 dic 2026): el video llena todo su cuadro */
@media (max-width: 760px) {
  .panel--pair .panel__media { position: absolute; inset: 0; aspect-ratio: auto; }
}

/* 1 dic 2026: botón de WhatsApp con ícono */
.btn--wa { display: inline-flex; align-items: center; gap: 10px; }
.btn--wa svg { width: 18px; height: 18px; flex: none; }

/* 1 dic 2026: nota corta bajo las tarjetas comerciales */
.card__note { margin: 6px 0 0; font-size: .86rem; line-height: 1.5; color: var(--charcoal); }
.card .spec:empty { display: none; }

/* 1 dic 2026: botón al final del Portfolio, cambia con el filtro */
.portfolio-cta { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.portfolio-cta__text { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

/* 1 dic 2026: foto por región en Service Areas */
.areas__img { aspect-ratio: 3 / 4; overflow: hidden; margin-bottom: 18px; }
.areas__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.areas ul { columns: 1; }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr 1fr; } }

/* CTA con video vertical (Curtains, 1 dic 2026) */
.cta .wrap.cta-split { grid-template-columns: 1.1fr .9fr; align-items: center; justify-items: stretch; gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-split__text { display: grid; gap: 1.4rem; justify-items: start; }
.cta-split__media { aspect-ratio: 3 / 4; max-height: 640px; overflow: hidden; justify-self: end; width: 100%; max-width: 440px; }
.cta-split__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) { .cta .wrap.cta-split { grid-template-columns: 1fr; } .cta-split__media { justify-self: stretch; max-width: none; } }

/* Par de videos verticales (Outdoor, 1 dic 2026) */
.video-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.4rem); }
.video-pair figure { margin: 0; }
.video-pair__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist-gray); }
.video-pair__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-pair figcaption { margin-top: .9rem; font-size: .92rem; color: var(--ink-soft, #555); }
@media (max-width: 700px) { .video-pair { grid-template-columns: 1fr; } }

/* Nota de videollamada en el formulario (1 dic 2026) */
.video-note { display: none; }
fieldset:has(input[value="Video call"]:checked) .video-note { display: block; }

.video-pair--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .video-pair--three { grid-template-columns: 1fr; } }
.mb-3 { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Fotos livianas (2 dic 2026): <picture> no arma caja propia, así la foto se comporta igual que antes */
picture { display: contents; }

/* Botón del header: Book a consultation, con borde (2 dic) */
@media (min-width: 1041px) {
  .home .header:not(.is-scrolled) .nav > .btn.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.75); }
  .home .header:not(.is-scrolled) .nav > .btn.btn--ghost:hover { background: var(--white); color: var(--ink); }
}
@media (max-width: 1040px) { .home .header:not(.is-scrolled) .nav > .btn.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); } }

/* Book a consultation: datos antes de Calendly (3 dic) */
.consult { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.consult[hidden] { display: none; }
.consult__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.55); }
.consult__box { position: relative; background: var(--white); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(24px, 4vw, 40px); box-shadow: 0 24px 60px rgba(0,0,0,.25); display: grid; gap: 14px; }
.consult__box h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }
.consult__close { position: absolute; top: 12px; right: 12px; background: none; border: 0; font-size: 1.1rem; padding: 10px; cursor: pointer; color: var(--ink); }
.consult__legal { font-size: .8rem; color: #6b6b6b; margin: 0; }
.consult .form { gap: 16px; }
body.consult-open { overflow: hidden; }

/* Trade: dos fotos pequeñas de telas (3 dic) */
.split--fabric { grid-template-columns: 1.15fr .85fr; }
.fab-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fab-pair img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
@media (max-width: 860px) { .split--fabric { grid-template-columns: 1fr; } }
.fab-pair picture { display: block; min-width: 0; }

/* 3 dic (Code): zona de toque más grande en celulares y tablets (Android pide 48 px, Apple 44 px).
   No cambia cómo se ven: amplía el área tocable alrededor de los enlaces con flecha, las pestañas y el teléfono. */
@media (pointer: coarse) {
  .link-arrow, .panel__link, .topbar__contact a { position: relative; }
  .link-arrow::before, .panel__link::before, .topbar__contact a::before { content: ""; position: absolute; left: -6px; right: -6px; top: 50%; height: 48px; transform: translateY(-50%); }
  .chip { min-height: 44px; }
}
