/* ============================================================
   Nissen — estilos compartidos de páginas de contenido
   (Home usa además home-sequence.css)
   ============================================================ */

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================
   Animaciones — la página "viva"
   Reveals al hacer scroll + micro-interacciones.
   El JS añade .reveal (por eso sin JS todo queda visible).
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1),
              transform .8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
.reveal.reveal--left  { transform: translateX(-30px); }
.reveal.reveal--right { transform: translateX(30px); }
.reveal.reveal--scale { transform: scale(.94); }
.reveal.is-in { opacity: 1; transform: none; }

/* Ken Burns lento en las imágenes de hero */
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
/* El Ken Burns va SOLO en la imagen. Si se pone también en el <picture> que la
   envuelve, las dos transformaciones se multiplican y el zoom se va al doble. */
.page-hero--image > img,
.page-hero--image > picture > img { animation: kenburns 14s ease-out both; will-change: transform; }

/* Entrada del contenido del hero al cargar */
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.page-hero .wrap > * { animation: heroUp .9s cubic-bezier(.22,1,.36,1) both; }
.page-hero .wrap > .eyebrow { animation-delay: .05s; }
.page-hero .wrap > h1       { animation-delay: .15s; }
.page-hero .wrap > .lead    { animation-delay: .28s; }
.page-hero .wrap > p:last-child { animation-delay: .4s; }

/* Barra superior: sombra sutil al hacer scroll (la añade el JS) */
.site-header { transition: box-shadow .35s ease, background .35s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 26px rgba(0,0,0,.07); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .page-hero--image > img,
  .page-hero--image > picture > img { animation: none; }
  .page-hero .wrap > * { animation: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line, #e6e3dc);
}
.site-header__inner {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-header__logo img { width: 118px; height: auto; }
.site-header__track {
  display: block; font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--orange-text); font-weight: 700; margin-top: 3px;
}
.site-nav { display: flex; align-items: center; gap: 26px; }

/* Blanco de toque minimo 24x24 px (WCAG 2.2 SC 2.5.8). Los enlaces de menu y
   de pie median 20-23 px de alto: se les da aire vertical sin mover el diseno,
   porque el padding crece dentro de la caja flex, no separa los elementos. */
.site-nav a { font-size: 15px; color: var(--ink-soft); padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 600; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600;
  transition: background .3s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.btn:hover { background: var(--orange-text); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(224,112,30,.28); }
.btn:active { transform: translateY(0); }
.btn--ghost { background: none; color: var(--ink); border: 1px solid #d6d2c8; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: none;
  cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- bloques genéricos ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--orange-text); font-weight: 700; margin-bottom: 16px;
}
.section { padding: 92px 0; }
.section--warm { background: var(--paper-warm); }
.section--dark { background: var(--dark); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.82); }
.section--dark .eyebrow { color: #f0a36a; }

.page-hero { padding: 84px 0 76px; }
.page-hero h1 { font-size: 60px; margin-bottom: 22px; max-width: 18ch; }
.page-hero p.lead { font-size: 21px; color: var(--ink-soft); max-width: 60ch; line-height: 1.5; }
.page-hero--image { position: relative; overflow: hidden; color: #fff; padding: 130px 0 120px; }
.page-hero--image::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,19,18,.86) 0%, rgba(20,19,18,.62) 55%, rgba(20,19,18,.3) 100%);
}
/* La foto de fondo se coloca desde el contenedor: cuando va envuelta en
   <picture> (para servir WebP), el que se posiciona es el <picture> y la
   imagen solo lo rellena. */
.page-hero--image > img,
.page-hero--image > picture { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page-hero--image > img,
.page-hero--image > picture > img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image .wrap { position: relative; z-index: 2; }
.page-hero--image h1 { color: #fff; }
.page-hero--image p.lead { color: rgba(255,255,255,.88); }

h2.section-title { font-size: 42px; margin-bottom: 20px; max-width: 22ch; }
.section p.body { font-size: 18px; color: var(--ink-soft); line-height: 1.62; max-width: 66ch; margin-bottom: 18px; }

/* ---------- grids de tarjetas ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
a.card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(0,0,0,.13); }
.card img { width: 100%; height: 220px; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.card:hover img { transform: scale(1.06); }
.card__body { padding: 26px 26px 30px; }
.card__body h3 { font-size: 23px; margin-bottom: 10px; }
.card__body p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
.card__cta {
  display: inline-block; margin-top: 16px; color: var(--orange-text);
  font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px;
}

/* feature list (íconos/número + texto) */
.features { display: grid; gap: 34px; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.feature__num {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--orange-text); margin-bottom: 10px;
}
.section--dark .feature__num { color: #f0a36a; }
.section--dark .feature p { color: rgba(255,255,255,.75); }

/* listas de catálogo */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 11px 20px; border-radius: 999px; background: var(--paper);
  border: 1px solid #e2ded5; font-size: 16px; color: var(--ink);
  transition: transform .3s cubic-bezier(.22,1,.36,1), border-color .3s ease, color .3s ease;
}
.chip:hover { transform: translateY(-3px); border-color: var(--orange); color: var(--orange-text); }
.section--dark .chip { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: #fff; }

/* pasos numerados */
.steps { counter-reset: step; display: grid; gap: 4px; max-width: 860px; }
.steps li {
  counter-increment: step; list-style: none; display: flex; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid #e9e5dd; align-items: baseline;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700; color: var(--orange-text); min-width: 32px;
}
.steps li span { font-size: 19px; }
.steps li small { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.section--dark .steps li { border-color: rgba(255,255,255,.12); }
.section--dark .steps li::before { color: #f0a36a; }

/* stat destacado */
.stat { display: flex; align-items: baseline; gap: 14px; }
.stat b { font-size: 68px; font-weight: 200; line-height: 1; }
.stat span { font-size: 17px; color: var(--ink-soft); max-width: 16ch; }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery img {
  width: 100%; height: 210px; object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1), filter .5s ease;
}
.gallery img:hover { transform: scale(1.04); filter: brightness(1.06); }
.gallery img:nth-child(1), .gallery img:nth-child(6) { grid-column: span 2; }

/* cobertura */
.coverage { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.pin { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; color: var(--ink); font-weight: 600; }
.pin::before {
  content: ""; width: 12px; height: 12px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); background: var(--orange); flex: 0 0 auto;
}
.pin--soft { font-size: 15px; color: var(--ink-soft); font-weight: 400; }
.pin--soft::before { background: none; border: 2px solid #c3bdb1; width: 10px; height: 10px; }

/* contacto */
.contact-grid { display: grid; gap: 48px; }
.contact-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #e9e5dd; }
.contact-row__label {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--orange-text); font-weight: 700; margin-bottom: 5px;
}
.contact-row__value { font-size: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid #d9d5cb; border-radius: 9px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent;
}
.form-note { font-size: 14px; color: var(--ink-soft); margin-top: 14px; }

/* CTA final */
.cta-band { padding: 96px 0; background: var(--dark); color: #fff; text-align: center; }
.cta-band h2 { font-size: 42px; margin-bottom: 18px; color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); font-size: 19px; max-width: 56ch; margin: 0 auto 32px; }
.cta-band .btn { background: var(--orange); }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #fff; padding: 76px 24px 30px; }
.site-footer__inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 46px; }
.site-footer__brand img { width: 148px; height: auto; }
.site-footer__brand p { color: rgba(255,255,255,.6); font-size: 15px; margin-top: 18px; max-width: 34ch; line-height: 1.5; }
.site-footer__nav { display: grid; gap: 38px; }
.site-footer__nav h2 {
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: #f0a36a; font-weight: 700; margin-bottom: 15px;
}
.site-footer__nav a, .site-footer__nav p {
  display: block; color: rgba(255,255,255,.78); font-size: 15px; margin-bottom: 10px; line-height: 1.5; padding: 4px 0; }
.site-footer__nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer__legal {
  max-width: 1160px; margin: 52px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.42); font-size: 13px;
}

/* ---------- responsive ---------- */
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 70px; }
  .site-footer__inner { grid-template-columns: 1fr 2fr; gap: 76px; }
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; font-size: 17px; }
  .site-nav .btn { margin-top: 4px; text-align: left; }

  .page-hero { padding: 52px 0 46px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero p.lead { font-size: 18px; }
  .page-hero--image { padding: 88px 0 76px; }
  .page-hero--image::after {
    background: linear-gradient(180deg, rgba(20,19,18,.55) 0%, rgba(20,19,18,.88) 100%);
  }

  .section { padding: 60px 0; }
  h2.section-title { font-size: 30px; }
  .section p.body { font-size: 17px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .card img { height: 200px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery img { height: 150px; }
  .gallery img:nth-child(1), .gallery img:nth-child(6) { grid-column: span 2; }
  .stat b { font-size: 52px; }
  .cta-band { padding: 66px 0; }
  .cta-band h2 { font-size: 29px; }
  .steps li span { font-size: 17px; }
}

/* ---------- galería ---------- */
.gfiltros { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 34px; }
.gfiltro {
  padding: 10px 18px; border-radius: 999px; border: 1px solid #ded9cf;
  background: var(--paper); color: var(--ink-soft); font-size: 14px;
  font-family: inherit; font-weight: 500; cursor: pointer;
  transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.gfiltro:hover { border-color: var(--ink-soft); color: var(--ink); }
.gfiltro.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.ggrid {
  display: grid; gap: 14px; margin-bottom: 90px;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}
.gitem { margin: 0; }
.gitem button {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; border-radius: 10px; overflow: hidden; line-height: 0;
}
.gitem img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.gitem button:hover img { transform: scale(1.05); }

.visor {
  position: fixed; inset: 0; z-index: 200; background: rgba(12, 11, 10, .94);
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.visor[hidden] { display: none; }
.visor__img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.visor__pie {
  position: absolute; bottom: 26px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .8); font-size: 14px; padding: 0 24px;
}
.visor__cerrar, .visor__nav {
  position: absolute; border: 0; background: rgba(255, 255, 255, .12);
  color: #fff; cursor: pointer; border-radius: 50%; line-height: 1;
  transition: background .25s ease;
}
.visor__cerrar:hover, .visor__nav:hover { background: rgba(255, 255, 255, .26); }
.visor__cerrar { top: 22px; right: 22px; width: 46px; height: 46px; font-size: 28px; }
.visor__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 34px; }
.visor__nav--prev { left: 18px; }
.visor__nav--next { right: 18px; }

@media (max-width: 767px) {
  .ggrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .visor__nav { width: 44px; height: 44px; font-size: 28px; }
  .visor__nav--prev { left: 8px; }
  .visor__nav--next { right: 8px; }
}

/* ---------- fotos de apoyo (filas que ilustran el texto contiguo) ---------- */
.fotos-apoyo {
  display: grid; gap: 14px; margin-top: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}
.fotos-apoyo img {
  width: 100%; height: 300px; object-fit: cover; border-radius: 14px;
  transition: transform .7s cubic-bezier(.22, 1, .36, 1);
}
.fotos-apoyo img:hover { transform: scale(1.03); }
@media (max-width: 767px) { .fotos-apoyo img { height: 200px; } }

/* ---------- formularios: honeypot, estados y agradecimiento ---------- */
/* Trampa antispam: fuera de pantalla, invisible para personas. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status {
  margin-top: 14px; margin-bottom: 4px; padding: 12px 14px; border-radius: 8px;
  background: #fdf0e8; color: #8a3d0c; font-size: 14px; line-height: 1.5;
}
.form-status a { color: #8a3d0c; text-decoration: underline; text-underline-offset: 3px; }
.form-thanks { padding: 26px 0; }
.form-thanks h3 { font-size: 26px; margin-bottom: 10px; }
.form-thanks p { color: var(--ink-soft); font-size: 16px; line-height: 1.5; }
button[type="submit"][disabled] { opacity: .6; cursor: default; }

/* Teléfono, WhatsApp y correo son las acciones principales en móvil:
   necesitan un área de toque cómoda (mínimo recomendado 44px). */
@media (max-width: 767px) {
  .contact-row__value a { display: inline-block; padding: 10px 0; }
}
