/* Itiba Tech — landing */

:root {
  --forest: #0B3D2E;
  --forest-700: #072A20;
  --forest-500: #136B4E;
  --leaf: #0CB771;
  --leaf-dark: #087A4B;
  --leaf-darker: #066640;
  --sun: #F6C445;
  --mint: #BFEBD5;
  --peach: #FCE3A0;
  --cream: #FBF3E4;
  --sand: #F3E3C7;
  --ink: #1B2A2F;
  --ink-soft: #3D4F55;
  --white: #FFFFFF;

  --font-display: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--forest); }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--leaf-dark); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--leaf-dark); color: var(--white); box-shadow: 0 6px 20px -8px rgba(8, 122, 75, .7); }
.btn--primary:hover { background: var(--leaf-darker); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #FFD45E; }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--leaf-dark); }

/* ---------- Top bar + header ---------- */

.topbar {
  background: var(--forest); color: var(--cream);
  font-size: 14px; text-align: center; padding: 9px var(--gutter); line-height: 1.4;
}

.topbar a { color: var(--sun); font-weight: 600; text-underline-offset: 3px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 228, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(27, 42, 47, .08), 0 8px 24px -16px rgba(27, 42, 47, .35); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.footer__logo { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px 26px; font-weight: 600; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--leaf-dark); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  padding: 12px; border-radius: 12px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 24px -16px rgba(27, 42, 47, .35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(27, 42, 47, .08); font-size: 17px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Shared type ---------- */

.eyebrow { margin-bottom: 10px; font-weight: 700; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--leaf-dark); }
.eyebrow--sun { color: var(--sun); }
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.02em;
  color: var(--forest); max-width: 20ch; text-wrap: balance;
}
.section__intro { margin-top: 16px; font-size: 18px; max-width: 640px; color: var(--ink-soft); }

.section { padding: var(--section-y) 0; }
.section--tight { padding-top: 0; }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--forest); color: var(--cream); }
.section--dark .h2 { color: var(--cream); }
.section--dark .section__intro { color: rgba(251, 243, 228, .85); }

.list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.list li { position: relative; padding-left: 26px; font-size: 16px; }
.list li::before {
  content: ''; position: absolute; left: 0; top: .45em; width: 14px; height: 8px;
  border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: rotate(-45deg); opacity: .8;
}

/* ---------- Colores por servicio ---------- */

.t-asesoria   { --c-hero: #F6C445; --c-bg: #FDEBB8; --c-soft: #FFF6DA; --c-tint: #F6C445; --c-acc: #8A5300; --c-acc-hover: #6E4200; }
.t-instalacion { --c-hero: #2BB3C9; --c-bg: #D3EEF1; --c-soft: #EDF8FA; --c-tint: #2BB3C9; --c-acc: #0B6573; --c-acc-hover: #084F5A; }
.t-equipos    { --c-hero: #0CB771; --c-bg: #D7F3E3; --c-soft: #EEFAF3; --c-tint: #0CB771; --c-acc: #087A4B; --c-acc-hover: #066640; }

.btn--theme { background: var(--c-acc); color: var(--white); box-shadow: 0 8px 20px -10px var(--c-acc); }
.btn--theme:hover { background: var(--c-acc-hover); }
.btn--theme-ghost { background: transparent; color: var(--c-acc); border-color: var(--c-acc); }
.btn--theme-ghost:hover { background: var(--c-acc); color: var(--white); }

/* ---------- Hero slideshow ---------- */

.hero {
  position: relative; overflow: hidden; background: var(--cream); color: var(--forest);
  height: calc(100vh - var(--chrome, 110px));
  height: calc(100svh - var(--chrome, 110px));
  min-height: 520px;
}
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.slide { background: var(--c-hero); color: var(--forest-700); }
/* Centro del dibujo dentro de cada SVG del hero (0–1), para centrarlo */
.slide.t-asesoria { --fx: .747; --fy: .5; }
.slide.t-instalacion { --fx: .72; --fy: .62; }
.slide.t-equipos { --fx: .767; --fy: .46; }
.slide .btn--theme { background: var(--forest-700); color: var(--white); box-shadow: 0 10px 24px -12px rgba(7, 42, 32, .8); }
.slide .btn--theme:hover { background: var(--forest); }
.slide .btn--theme-ghost { color: var(--forest-700); border-color: var(--forest-700); }
.slide .btn--theme-ghost:hover { background: var(--forest-700); color: var(--white); }
.slide img {
  /* Centrada verticalmente con el texto (que deja 72px abajo para los controles):
     --fy = centro vertical del dibujo dentro de su SVG */
  --h: min(78%, 620px);
  position: absolute; top: calc(50% - 36px - var(--fy, .5) * var(--h)); height: var(--h); object-fit: cover; object-position: 100% 50%;
  /* Alineada al contenedor de 1240px, como el resto de las secciones */
  right: calc(max(0px, (100% - 1240px) / 2) + var(--gutter)); width: calc(min(100%, 1240px) - 2 * var(--gutter));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, #000 50%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 25%, #000 50%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
  transform: scale(1.06); transform-origin: right center;
}
.slide.is-active img { animation: kenburns 9s ease-out forwards; }
.slide__content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  padding-bottom: 72px;
}
.slide__word {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 7vw, 100px); line-height: .92; letter-spacing: -.03em;
}
.slide__line { font-size: clamp(18px, 1.8vw, 24px); max-width: 560px; font-weight: 500; }
.slide .cta-row { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
.slide.is-active .slide__content > * { animation: rise .9s var(--ease) both; }
.slide.is-active .slide__word { animation-delay: .08s; }
.slide.is-active .slide__line { animation-delay: .16s; }
.slide.is-active .cta-row { animation-delay: .24s; }

.hero__controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 28px; pointer-events: none; }
.hero__dots { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); display: flex; gap: 8px; }
.hero__dots button {
  pointer-events: auto; width: 56px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center;
}
.hero__dots span { display: block; width: 100%; height: 4px; border-radius: 2px; background: rgba(7, 42, 32, .25); overflow: hidden; position: relative; }
.hero__dots span::after { content: ''; position: absolute; inset: 0; background: var(--forest-700); transform: scaleX(0); transform-origin: left; }
.hero__dots [aria-selected="true"] span::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dots [aria-selected="true"] span::after { animation-play-state: paused; }

.hero__down {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--forest-700); text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
}
.hero__down svg {
  width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--forest-700);
  fill: none; stroke: var(--sun); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 700px) {
  .slide img {
    /* Sin recorte: el SVG entero a 16:9 y desplazado para que su dibujo (--fx = centro
       horizontal del dibujo dentro del SVG) quede centrado en pantalla. */
    right: auto; left: 50%; width: auto; max-width: none; height: 50%; aspect-ratio: 16 / 9; top: 24px;
    translate: calc(var(--fx, .75) * -100%) 0; transform-origin: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 92%), linear-gradient(90deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 62%, transparent 92%), linear-gradient(90deg, transparent 0%, #000 12%, #000 86%, transparent 100%);
  }
  .slide__content { justify-content: flex-end; padding-bottom: 120px; }
  .hero__controls { bottom: auto; top: 16px; }
  .hero__down span { display: none; }
  .slide .cta-row .btn--lg { padding-left: 22px; padding-right: 22px; font-size: 16px; }
}

/* ---------- Service sections ---------- */

.svc { padding: var(--section-y) 0; overflow: hidden; background: var(--c-bg); }
.svc__inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.svc--flip .svc__inner { grid-template-columns: 1fr 1.25fr; }
.svc--flip .svc__copy { order: 2; }
.svc__copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.svc__copy .h2 { max-width: 18ch; }
.svc__tag { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--c-acc); }
.svc__tag span {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-acc); color: var(--white); letter-spacing: 0; font-size: 15px;
}
.svc__tag svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc__lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); max-width: 600px; }
.svc__subhead { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--forest); }
.svc__list li::before { color: var(--c-acc); }
.svc__note { font-size: 16px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--white); max-width: 600px; border-left: 0; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc__cols > div { display: flex; flex-direction: column; gap: 12px; }
.svc__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc__facts > div { background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.svc__facts strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--c-acc); line-height: 1.15; }
.svc__facts span { font-size: 14px; color: var(--ink-soft); }

.svc .cta-row .btn--lg { padding-left: 22px; padding-right: 22px; font-size: 16px; }

.svc__media { position: relative; margin: 0; }
.svc__media img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -40px rgba(11, 61, 46, .45);
}
.svc__badge {
  position: absolute; left: -20px; bottom: 28px; display: flex; flex-direction: column;
  background: var(--white); color: var(--ink-soft); border-radius: 18px; padding: 14px 20px;
  font-size: 14px; font-weight: 700; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .45);
}
.svc__badge strong { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--c-acc); }
.svc--flip .svc__badge { left: auto; right: -20px; }

.products { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.products li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius-sm); background: var(--white);
}
.products svg {
  grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--c-bg);
  fill: none; stroke: var(--c-acc); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.products strong { font-size: 16px; color: var(--ink); }
.products span { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .svc__inner { grid-template-columns: 1fr; }
  .svc--flip .svc__copy { order: 0; }
  .svc__media { max-width: 420px; }
  .svc__badge, .svc--flip .svc__badge { left: 16px; right: auto; bottom: 16px; }
}
@media (max-width: 560px) {
  .svc__cols, .products { grid-template-columns: 1fr; }
  .svc__facts { grid-template-columns: 1fr; }
}

/* ---------- Audience ---------- */

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience__item { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start; padding: 8px 0; }
.audience__item svg {
  grid-row: span 2; width: 48px; height: 48px; padding: 11px; border-radius: 50%;
  background: var(--forest); fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.audience__item h3 { font-size: 19px; font-weight: 700; }
.audience__item p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 800px) { .audience { grid-template-columns: 1fr; } }

/* ---------- Diaspora band ---------- */

.band { background: #1A2723; color: var(--cream); }
.band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.band__inner > div { flex: 1 1 520px; min-width: 0; }
.band__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--sun); margin-bottom: 10px; letter-spacing: -.01em; }
.band p { max-width: 640px; color: rgba(251, 243, 228, .9); }

/* ---------- Calculator ---------- */

.section--dark#calculadora { border-top: 1px solid rgba(251, 243, 228, .12); }
.calc { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.loads { border: 0; padding: 0; margin: 32px 0 0; min-width: 0; }
.loads__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.load {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
  border-radius: var(--radius-sm); cursor: pointer; user-select: none;
  background: rgba(251, 243, 228, .07); border: 2px solid rgba(251, 243, 228, .3); color: var(--cream);
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.load:hover { border-color: var(--sun); }
.load:active { transform: scale(.98); }
.load input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--forest); }
.load__name { flex: 1; font-weight: 600; font-size: 15px; }
.load__kwh { font-size: 13px; opacity: .85; white-space: nowrap; }
.load:has(input:checked) { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.load:has(input:focus-visible) { outline: 3px solid var(--cream); outline-offset: 2px; }

.range { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.range label { font-weight: 600; font-size: 18px; }
.range output { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--sun); margin-left: 6px; }
.range input { width: 100%; height: 32px; accent-color: var(--sun); cursor: pointer; }
.range__scale { display: flex; justify-content: space-between; font-size: 13px; opacity: .8; }

.calc__result {
  position: sticky; top: 96px;
  background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.calc__result .eyebrow { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--white); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat__label { font-size: 13px; color: var(--ink-soft); }
.stat__value { font-weight: 600; font-size: 15px; color: var(--forest); }
.stat__value b { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__value--leaf-dark { color: var(--leaf-dark); }
.kitpick { background: var(--sun); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.kitpick__label { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.kitpick__name { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.1; }
.kitpick__note { font-size: 15px; }
.fineprint { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
}

/* ---------- Steps ---------- */

.steps { margin: 48px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 4px solid var(--forest); }
.step--last { border-color: var(--leaf-dark); }
.step__tag { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--leaf-dark); }
.step h3 { font-size: 20px; font-weight: 700; }
.step p { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Work gallery ---------- */

.gallery {
  margin-top: 44px; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px;
}
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: 14px; font-weight: 600; color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.gallery__big { grid-column: span 2; grid-row: span 2; }
.gallery__tall { grid-row: span 2; }
.gallery__wide { grid-column: span 2; }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__wide { grid-column: span 2; }
}

.gallery figure { cursor: zoom-in; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 42, 32, .94); color: var(--white);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 16px; }
.lightbox figcaption { text-align: center; font-weight: 600; }
.lightbox button {
  position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--sun); color: var(--forest); font-size: 30px; line-height: 1; display: grid; place-items: center;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox__nav { top: auto !important; bottom: 24px; transform: none !important; }
}

/* ---------- Kits ---------- */

.kits { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.kit {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.kit:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11, 61, 46, .45); }
.kit > p { color: var(--ink-soft); }
.kit .list li::before { color: var(--leaf-dark); }
.kit__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kit__name { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; color: var(--forest); }
.kit__price { margin-top: auto; padding-top: 14px; border-top: 1px solid #E5D6BC; display: flex; flex-direction: column; }
.kit__price span { font-size: 13px; color: var(--ink-soft); }
.kit__price strong { font-family: var(--font-display); font-weight: 800; font-size: 32px; }
.kit--featured { background: var(--forest); color: var(--cream); transform: translateY(-12px); box-shadow: 0 30px 60px -30px rgba(11, 61, 46, .7); }
.kit--featured:hover { transform: translateY(-16px); }
.kit--featured > p, .kit--featured .kit__price span { color: rgba(251, 243, 228, .85); }
.kit--featured .kit__name { color: var(--sun); }
.kit--featured .list li::before { color: var(--sun); }
.kit--featured .kit__price { border-color: #1E5A45; }
.badge { background: var(--sun); color: var(--ink); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 1000px) {
  .kits { grid-template-columns: 1fr; max-width: 560px; }
  .kit--featured, .kit--featured:hover { transform: none; }
}

/* ---------- Why ---------- */

.why { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why__item { border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.why__item:nth-child(1) { background: var(--sun); }
.why__item:nth-child(2) { background: var(--mint); }
.why__item:nth-child(3) { background: var(--peach); }
.why__num { font-family: var(--font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--leaf-dark); }
.why__item:nth-child(2) .why__num { color: var(--forest); }
.why__item h3 { font-size: 24px; font-weight: 700; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--cream); border-radius: 18px; padding: 0 24px; transition: background-color .2s; }
.faq details[open] { background: var(--sand); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; font-size: 28px; font-weight: 400; line-height: 1; color: var(--leaf-dark);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact {
  position: relative; color: var(--white); padding: var(--section-y) 0;
  background:
    url("../img/art/contacto-bg.svg") right center / cover no-repeat var(--leaf-dark);
}
.contact__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.contact__copy { display: flex; flex-direction: column; gap: 16px; }
.contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.02em; }
.contact__copy p { font-size: 19px; max-width: 520px; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.form {
  background: var(--cream); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--white); border: 2px solid #E5D6BC; border-radius: 12px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); }
.field input[aria-invalid="true"] { border-color: var(--leaf-dark); }
.form .btn--sun { background: var(--forest); color: var(--white); }
.form .btn--sun:hover { background: var(--forest-700); }
.form__note { font-size: 13px; color: var(--ink-soft); text-align: center; }

@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.footer { background: var(--forest-700); color: #E9E2D3; font-size: 15px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.footer__brand { flex: 1 1 280px; }
.footer__brand p { margin-top: 12px; max-width: 360px; color: #B9B2A3; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__head { font-weight: 700; color: var(--white); margin-bottom: 4px; }
.footer a { color: #E9E2D3; text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer__item { display: inline-flex; align-items: center; gap: 10px; }
.footer__item svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer__legal { padding-top: 20px; padding-bottom: 32px; border-top: 1px solid rgba(233, 226, 211, .12); font-size: 13px; color: #B9B2A3; }

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .kit--featured.reveal.is-visible { transform: translateY(-12px); }
@media (max-width: 1000px) { .js .kit--featured.reveal.is-visible { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 350px) {
  .slide .cta-row .btn--lg { padding-left: 16px; padding-right: 16px; font-size: 15px; }
}
