/* ==========================================================
   Francisol · rediseño 2026
   ========================================================== */

:root {
  --ink: #171513;
  --char: #211e1b;
  --char-2: #2b2723;
  --cream: #f7f3ed;
  --sand: #ece4d8;
  --line: #ddd3c5;
  --oak: #c08a52;
  --oak-d: #a26f3c;
  --muted: #6f665c;
  --muted-dk: #b3aa9f;
  --white: #fff;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; }
h2 { font-family: var(--serif); font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; }
:focus-visible { outline: 2px solid var(--oak); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: 1rem; color: rgba(255,255,255,.85);
}
.eyebrow--oak { color: var(--oak-d); }
.section--dark .eyebrow--oak { color: var(--oak); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--oak { background: var(--oak); color: var(--white); }
.btn--oak:hover { background: var(--oak-d); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); backdrop-filter: blur(6px); background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: var(--white); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: .7em 1.15em; font-size: .85rem; }
.btn--block { width: 100%; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .35s, box-shadow .35s, transform .35s var(--ease);
}
.header.is-solid { background: rgba(23,21,19,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header.is-hidden { transform: translateY(-100%); }
/* backdrop-filter convierte la cabecera en contenedor de los hijos fixed: se quita con el menú abierto */
.header.menu-open { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.header__inner {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.header__logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  color: rgba(255,255,255,.85); text-decoration: none; font-weight: 600; font-size: .92rem;
  position: relative; padding: .3em 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--oak);
  transition: right .3s var(--ease);
}
.nav a:not(.btn):hover, .nav a.is-current { color: var(--white); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { right: 0; }

.burger { display: none; }

@media (max-width: 960px) {
  .header__logo { position: relative; z-index: 2; }
  .header__logo img { width: 140px; }
  .burger {
    display: grid; place-content: center; gap: 7px; position: relative; z-index: 2;
    width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); cursor: pointer;
  }
  .burger span { display: block; width: 20px; height: 2px; background: var(--white); transition: transform .35s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: .4rem; padding: 0 calc(var(--gutter) + 8px);
    background: var(--ink) url("../img/gal/t/cocinas-fornica-foto155.jpg") center/cover;
    clip-path: circle(0 at calc(100% - 44px) 36px);
    transition: clip-path .6s var(--ease); visibility: hidden;
  }
  .nav::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(23,21,19,.97) 35%, rgba(23,21,19,.82)); }
  .nav > * { position: relative; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); visibility: visible; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 300; color: var(--white); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 1.5rem; font-size: 1rem; padding: 1em 1.6em; }
  .nav a { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
  .nav.is-open a { opacity: 1; transform: none; }
  .nav.is-open a:nth-child(2) { transition-delay: .05s; }
  .nav.is-open a:nth-child(3) { transition-delay: .1s; }
  .nav.is-open a:nth-child(4) { transition-delay: .15s; }
  .nav.is-open a:nth-child(5) { transition-delay: .2s; }
  .nav.is-open a:nth-child(6) { transition-delay: .25s; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate;
  padding-bottom: clamp(5rem, 10vh, 7rem);
}
.hero__slides, .hero__shade { position: absolute; inset: 0; z-index: -1; }
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 8s linear;
}
.hero__slides img.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(23,21,19,.55) 0%, rgba(23,21,19,0) 28%),
    linear-gradient(0deg, rgba(23,21,19,.92) 0%, rgba(23,21,19,.55) 45%, rgba(23,21,19,.1) 75%);
}
.hero__title {
  font-family: var(--serif); font-weight: 300; letter-spacing: -.03em;
  font-size: clamp(2.6rem, 8.5vw, 6.2rem); line-height: 1; margin-bottom: 1.4rem; max-width: 14ch;
}
.hero__title em { font-style: italic; color: #e6c39b; font-weight: 300; }
.hero__lead { max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__content > * { animation: rise 1s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .12s; }
.hero__content > :nth-child(3) { animation-delay: .24s; }
.hero__content > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.hero__dots { display: flex; gap: 8px; margin-top: 2.5rem; }
.hero__dots button {
  width: 34px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.28); cursor: pointer; overflow: hidden; position: relative;
}
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 2rem; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.5); border-radius: 20px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--white); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Cinta ---------- */
.ticker { background: var(--oak); color: var(--white); overflow: hidden; padding: .95rem 0; }
.ticker__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker span {
  font-family: var(--serif); font-size: 1.15rem; font-style: italic; white-space: nowrap; padding: 0 1.4rem;
  display: flex; align-items: center; gap: 2.8rem;
}
.ticker span::after { content: "✦"; font-style: normal; font-size: .7em; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 11vw, 8.5rem) 0; }
.section--tight { padding: clamp(3rem, 7vw, 4.5rem) 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--dark p { color: var(--muted-dk); }
.section--sand { background: var(--sand); }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 640px; }
.section__head h2 { margin-bottom: 1.2rem; }
.section__head--row { max-width: none; display: grid; gap: 1rem 4rem; align-items: end; }
.section__head--row h2 { margin-bottom: 0; }
.section__intro { color: var(--muted); font-size: 1.05rem; max-width: 48ch; }
@media (min-width: 860px) { .section__head--row { grid-template-columns: 1fr 1fr; } .section__head--row .section__intro { margin: 0; } }

/* ---------- Bento servicios ---------- */
.bento { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  color: var(--white); text-decoration: none; background: var(--char); isolation: isolate;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23,21,19,.88) 0%, rgba(23,21,19,.15) 60%, rgba(23,21,19,0)); }
.card:hover img { transform: scale(1.06); }
.card__body { position: absolute; inset: auto 0 0; padding: 1.5rem; }
.card__num { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: #e6c39b; margin-bottom: .5rem; }
.card h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin-bottom: .35rem; }
.card p { margin: 0; color: rgba(255,255,255,.8); font-size: .95rem; max-width: 36ch; }
.card::after {
  content: "→"; position: absolute; top: 1.2rem; right: 1.2rem; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.15); backdrop-filter: blur(6px); font-size: 1.1rem;
  transition: background .3s, transform .3s var(--ease);
}
.card:hover::after { background: var(--oak); transform: rotate(-45deg); }
.card--door { background: linear-gradient(135deg, #e7d6bf, #cfae86); }
.card--door img { object-fit: contain; padding: 1.2rem 0 5.5rem; mix-blend-mode: multiply; }
.card--door::before { background: linear-gradient(0deg, rgba(23,21,19,.85) 0%, rgba(23,21,19,0) 45%); }

.card--xl { grid-column: 1 / -1; min-height: 340px; }
@media (max-width: 639px) {
  .card:not(.card--xl) { min-height: 230px; }
  .card:not(.card--xl) .card__body { padding: 1rem; }
  .card:not(.card--xl) h3 { font-size: 1.3rem; margin: 0; }
  .card:not(.card--xl) p { display: none; }
  .card:not(.card--xl)::after { width: 34px; height: 34px; top: .8rem; right: .8rem; font-size: .95rem; }
  .card--door img { padding-bottom: 3.8rem; }
}
@media (min-width: 640px) {
  .bento { gap: 14px; }
  .card--xl { min-height: 420px; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; }
  .card { min-height: 0; }
  .card--xl { grid-column: span 2; grid-row: span 2; min-height: 0; }
  .card--xl h3 { font-size: 2.6rem; }
}

/* ---------- Split ---------- */
.split { display: grid; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__text h2 { margin-bottom: 1.5rem; }
.split__media { position: relative; padding: 0 12% 14% 0; }
.split__img { border-radius: var(--radius); object-fit: cover; }
.split__img--main { width: 100%; aspect-ratio: 4 / 3.4; }
.split__img--inset {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 4 / 3;
  border: 6px solid var(--ink); border-radius: calc(var(--radius) + 4px);
}
.badge-year {
  position: absolute; left: -10px; top: -10px; width: 112px; height: 112px; border-radius: 50%;
  background: var(--oak); color: var(--white); display: grid; place-content: center; text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.35); animation: float 6s ease-in-out infinite;
}
.badge-year strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; line-height: 1; order: 2; }
.badge-year span { font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-4deg); } }
@media (min-width: 900px) { .split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); }
.stats div { margin: 0; }
.stats dt { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.6rem); color: #e6c39b; line-height: 1; }
.stats dd { margin: .5rem 0 0; font-size: .85rem; color: var(--muted-dk); }

/* ---------- Valores ---------- */
.values {
  list-style: none; margin: clamp(4rem, 9vw, 6rem) 0 0; padding: 0;
  display: grid; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { background: var(--ink); padding: 2rem 1.75rem; transition: background .3s; }
.values li:hover { background: var(--char); }
.values svg { width: 34px; height: 34px; fill: none; stroke: var(--oak); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.2rem; }
.values h3 { margin-bottom: .4rem; }
.values p { margin: 0; font-size: .95rem; }

/* ---------- Galería ---------- */
.filters {
  display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 1.8rem; padding: 0 var(--gutter) .3rem;
}
.filters::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; padding: .7em 1.2em; border-radius: 999px; border: 1.5px solid var(--line); background: transparent;
  font: 600 .9rem/1 var(--sans); color: var(--ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gallery { columns: 2; column-gap: 10px; }
@media (min-width: 760px) { .gallery { columns: 3; column-gap: 14px; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.gallery__item {
  break-inside: avoid; margin: 0 0 10px; position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 10px; overflow: hidden; background: var(--sand);
  animation: pop .6s var(--ease) both;
}
@media (min-width: 760px) { .gallery__item { margin-bottom: 14px; } }
.gallery__item img { width: 100%; height: auto; transition: transform .8s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--contain { background: var(--white); }
.gallery__item--contain img { padding: 8%; }
.gallery__item span {
  position: absolute; left: 10px; bottom: 10px; padding: .35em .75em; border-radius: 999px;
  background: rgba(23,21,19,.7); backdrop-filter: blur(6px); color: var(--white); font-size: .75rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.gallery__item:hover span { opacity: 1; transform: none; }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.gallery__more { display: flex; justify-content: center; margin-top: 2.5rem; }
.gallery__more[hidden] { display: none; }

/* ---------- Puertas ---------- */
.doors {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 var(--gutter) .5rem; scroll-padding: 0 var(--gutter);
}
@media (min-width: 1240px) { .doors { padding-left: calc((100vw - 1240px) / 2 + var(--gutter)); } }
.doors::-webkit-scrollbar { display: none; }
.door {
  flex: none; width: 150px; scroll-snap-align: start; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, #fff, #f3ece2); padding: 1.2rem 1rem .8rem; text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.door:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(70,45,20,.18); }
.door img { height: 260px; width: auto; margin: 0 auto; mix-blend-mode: multiply; }
.door span { display: block; margin-top: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
@media (min-width: 760px) { .door { width: 180px; } .door img { height: 310px; } }

/* ---------- Pasos ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 2.4rem 4.2rem; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -.15rem; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--line);
  font: 500 1rem/1 var(--serif); color: var(--oak-d);
}
.steps li::after { content: ""; position: absolute; left: 1.5rem; top: 3.1rem; bottom: .3rem; width: 1.5px; background: var(--line); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; margin: .35rem 0 .5rem; }
.steps p { color: var(--muted); margin: 0; }
.steps li.is-in::before { background: var(--oak); color: var(--white); border-color: var(--oak); transition: background .5s .2s, color .5s .2s; }

/* ---------- Banner ---------- */
.banner { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; isolation: isolate; }
.banner img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; will-change: transform; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(23,21,19,.85), rgba(23,21,19,.1) 70%); }
.banner__content { padding-bottom: clamp(3rem, 8vw, 6rem); }
.banner h2 { margin-bottom: 2rem; }

/* ---------- Marcas ---------- */
.brands__title { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.brands { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands__track { display: flex; align-items: center; gap: 1.5rem; width: max-content; animation: marquee 50s linear infinite; }
.brands img { width: 104px; height: 104px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.brands img:hover { filter: none; opacity: 1; }

/* ---------- Visítanos ---------- */
.address { font-style: normal; font-size: 1.15rem; line-height: 1.5; margin: 1.5rem 0 2rem; color: var(--white); padding-left: 1rem; border-left: 2px solid var(--oak); }
.address strong { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; background: var(--char); }
@media (min-width: 900px) { .map { aspect-ratio: 5 / 4; } }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.6) contrast(1.05); }

/* ---------- Contacto ---------- */
.channels { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .6rem; }
.channels a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 12px;
  background: var(--white); text-decoration: none; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease);
}
.channels a:hover { border-color: var(--oak); transform: translateX(4px); }
.channels span { font-size: .85rem; color: var(--muted); }
.channels strong { font-weight: 700; font-size: .98rem; text-align: right; word-break: break-all; }

.form { background: var(--white); border-radius: calc(var(--radius) + 6px); padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(70,45,20,.25); display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field span { font-size: .82rem; font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; font: 500 16px/1.4 var(--sans); color: var(--ink); background: var(--cream);
  border: 1.5px solid transparent; border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--oak); background: var(--white); }
.field.is-invalid input { border-color: #c0392b; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--oak); flex: none; }
.check.is-invalid { color: #c0392b; }
.form__note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: var(--muted-dk); padding: 4.5rem 0 2rem; font-size: .95rem; }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer img { width: 180px; height: auto; margin-bottom: 1.2rem; }
.footer h3 { color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }
.social { display: flex; gap: .6rem; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.social a:hover { background: var(--oak); border-color: var(--oak); }
.social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer__legal p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transform: scale(0); transition: transform .4s var(--ease);
}
.fab.is-visible { transform: scale(1); }
.fab svg { width: 30px; height: 30px; fill: currentColor; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: ping 2.4s infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.6); opacity: 0; } 0% { opacity: .5; } }

/* ---------- Visor ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(15,13,11,.96); display: grid; place-items: center;
  grid-template-columns: auto 1fr auto; padding: 1rem; animation: fade .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; grid-column: 2; display: grid; place-items: center; gap: 1rem; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; max-height: 80svh; width: auto; border-radius: 8px; animation: zoom .35s var(--ease); }
.lightbox figcaption { color: var(--muted-dk); font-size: .9rem; }
.lightbox button { background: rgba(255,255,255,.1); color: var(--white); border: 0; border-radius: 50%; cursor: pointer; width: 50px; height: 50px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lightbox button:hover { background: var(--oak); }
.lightbox__close { position: absolute; top: 1rem; right: 1rem; }
@media (max-width: 700px) {
  .lightbox { grid-template-columns: 1fr; padding: 4.5rem .5rem 5.5rem; }
  .lightbox figure { grid-column: 1; }
  .lightbox__nav { position: absolute; bottom: 1.2rem; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Página legal ---------- */
.legal { padding-top: calc(var(--header-h) + 3rem); }
.legal article { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.02em; margin-bottom: 2rem; }
.legal h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; margin: 2.2rem 0 .8rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
