/* ==========================================================================
   AMBIENTAL — Energy Start Up
   Hoja de estilos compartida por todas las páginas.
   Colores y medidas principales en :root (abajo).
   ========================================================================== */

:root {
  --green: #28483F;
  --green-dark: #1E3830;
  --cream: #D0CEC1;
  --yellow: #E8C956;
  --yellow-dark: #D9B840;
  --offwhite: #F4F3ED;
  --ink: #1A1A1A;
  --muted: #4A5B53;
  --white: #FFFFFF;

  --font: 'Arimo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-xl: clamp(28px, 4.2vw, 60px);
  --radius-lg: clamp(18px, 2.2vw, 28px);
  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1360px;
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity .35s var(--ease);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.12; letter-spacing: -0.015em; }

/* Página entrando / saliendo (transición suave entre páginas) */
body.is-leaving { opacity: 0; }
html.lang-pending body { opacity: 0; }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--ink); font-weight: 700;
  padding: 12px 18px; border-radius: 999px; transition: top .25s var(--ease);
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilidades ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 1040px; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.text-green { color: var(--green); }
.text-yellow { color: var(--yellow); }
.lead {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.55;
  font-weight: 700;
  color: var(--green);
}
.prose {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: var(--muted);
}
.statement {
  font-size: clamp(26px, 3.3vw, 50px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
}
.title-lg {
  font-size: clamp(30px, 4vw, 60px);
  text-transform: uppercase;
}
.title-md {
  font-size: clamp(24px, 2.6vw, 40px);
}
.stack > * + * { margin-top: clamp(18px, 2vw, 28px); }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: clamp(24px, 3vw, 40px); }
.mt-l { margin-top: clamp(40px, 5vw, 72px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 15px; font-weight: 700;
  padding: 15px 30px;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(232, 201, 86, 0);
  transition: transform .35s var(--ease), background .3s, box-shadow .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover { background: var(--yellow-dark); transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--offwhite); box-shadow: inset 0 0 0 1.5px rgba(244, 243, 237, .55); }
.btn--ghost:hover { background: var(--offwhite); color: var(--green); }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed; z-index: 90;
  top: 14px; left: 50%;
  width: min(1440px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 28px;
  min-height: 60px;
  background: rgba(255, 255, 255, .96);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(26, 26, 26, .35);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: top .45s var(--ease), box-shadow .45s var(--ease), padding .45s var(--ease);
  animation: navIn .9s var(--ease) .1s both;
}
.navbar.is-scrolled { top: 8px; box-shadow: 0 16px 40px -16px rgba(26, 26, 26, .45); }
.navbar__logo img { height: 28px; width: auto; }
.navbar__links { display: none; align-items: center; gap: clamp(14px, 1.5vw, 26px); }
.navbar__link {
  position: relative; font-size: 14px; font-weight: 500; padding: 6px 0; white-space: nowrap;
}
.navbar__link::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 24px; height: 3px; border-radius: 3px; background: var(--yellow);
  transform: translateX(-50%) scaleX(0); transition: transform .4s var(--ease);
}
.navbar__link:hover::after, .navbar__link[aria-current="page"]::after { transform: translateX(-50%) scaleX(1); }
.navbar__link[aria-current="page"] { font-weight: 700; }
.navbar__right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.lang-switch__sep { opacity: .35; }
.lang-btn { font-size: 13px; font-weight: 500; opacity: .55; padding: 6px 2px; transition: opacity .25s; }
.lang-btn:hover { opacity: 1; }
.lang-btn[aria-pressed="true"] { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.navbar__cta { display: none; }

.burger {
  width: 44px; height: 44px; border-radius: 999px; background: var(--green);
  display: grid; place-items: center; flex-shrink: 0;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--offwhite); border-radius: 2px; position: relative; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--offwhite); border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (min-width: 640px) {
  .navbar__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .navbar__links { display: flex; }
  .burger { display: none; }
}

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--green); color: var(--offwhite);
  display: flex; flex-direction: column;
  padding: 22px var(--gutter) 28px;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s;
  overflow-y: auto;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 44px) 44px);
  visibility: visible;
  transition: clip-path .7s var(--ease-in-out), visibility 0s;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top img { height: 26px; width: auto; }
.mobile-menu__close {
  width: 44px; height: 44px; border-radius: 999px; background: rgba(244, 243, 237, .1);
  display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--offwhite);
}
.mobile-menu__links { margin-top: clamp(28px, 6vh, 56px); display: flex; flex-direction: column; gap: 4px; }
.mobile-menu__links a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(26px, 7vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .25s;
}
.mobile-menu__links a small { font-size: 12px; font-weight: 500; letter-spacing: .15em; opacity: .5; }
.mobile-menu__links a[aria-current="page"], .mobile-menu__links a:hover { color: var(--yellow); }
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu__footer {
  margin-top: auto; padding-top: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mobile-menu .lang-btn { color: var(--offwhite); font-size: 16px; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 78svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 60px) 0 clamp(48px, 7vw, 96px);
  color: var(--offwhite);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  background: var(--green);
}
.hero--home { min-height: 100svh; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenBurns 18s ease-out both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 36, 31, .45) 0%, rgba(20, 36, 31, 0) 30%),
    linear-gradient(20deg, rgba(20, 36, 31, .85) 0%, rgba(20, 36, 31, .35) 55%, rgba(20, 36, 31, .1) 100%);
}
.hero__slides img { position: absolute; inset: 0; opacity: 0; animation: heroSlide 16s infinite, kenBurns 16s ease-out infinite; }
.hero__slides img:nth-child(1) { animation-delay: 0s, 0s; }
.hero__slides img:nth-child(2) { animation-delay: 8s, 8s; }
.hero__inner { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero__content { max-width: 1000px; }
.hero__eyebrow { color: var(--offwhite); opacity: .9; animation: fadeUp .9s var(--ease) .35s both; }
.hero__title {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.hero__title--sm { font-size: clamp(32px, 4.8vw, 72px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero__title .line:nth-child(1) > span { animation-delay: .45s; }
.hero__title .line:nth-child(2) > span { animation-delay: .55s; }
.hero__title .line:nth-child(3) > span { animation-delay: .65s; }
.hero__title .line:nth-child(4) > span { animation-delay: .75s; }
.hero__rule {
  width: min(360px, 60%); height: 1px; margin-top: clamp(22px, 2.5vw, 34px);
  background: rgba(244, 243, 237, .7); transform-origin: left;
  animation: ruleIn 1.1s var(--ease) .9s both;
}
.hero__sub {
  margin-top: 20px; max-width: 560px;
  font-size: clamp(16px, 1.4vw, 20px); line-height: 1.5;
  animation: fadeUp .9s var(--ease) 1s both;
}
.hero__actions { margin-top: 30px; animation: fadeUp .9s var(--ease) 1.1s both; }
.hero__arrow {
  flex-shrink: 0; width: clamp(48px, 5vw, 76px); height: auto; color: var(--yellow);
  animation: arrowIn 1s var(--ease) 1.1s both;
}
.hero__arrow svg { animation: arrowBob 2.8s ease-in-out 2.2s infinite; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(244, 243, 237, .6); border-radius: 20px;
  animation: fadeUp .9s var(--ease) 1.4s both;
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--yellow); border-radius: 4px; animation: scrollDot 1.8s ease-in-out infinite;
}

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 90px) 0; }
.section--offwhite { background: var(--offwhite); }
.section--green { background: var(--green); color: var(--offwhite); }
.section--round-bottom { border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.section--round-top { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.section--round { border-radius: var(--radius-xl); }
.section--overlap { margin-top: calc(var(--radius-xl) * -1); padding-top: calc(clamp(64px, 9vw, 140px) + var(--radius-xl)); }
.section--green .lead, .section--green .statement { color: var(--offwhite); }
.section--green .prose { color: rgba(244, 243, 237, .75); }

.intro { max-width: 980px; margin-inline: auto; text-align: center; }
.intro .statement + .prose, .intro .lead + .statement { margin-top: clamp(24px, 3vw, 40px); }

/* Encabezado de sección con línea (estilo "_eyebrow_ ------ ↙") */
.section-head { display: flex; align-items: center; gap: 24px; }
.section-head::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .25; }

/* ---------- Tarjetas (home) ---------- */
.cards {
  display: grid; gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: 1fr;
  margin-top: clamp(32px, 4vw, 56px);
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; overflow: hidden;
  background: var(--green); color: var(--offwhite);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.2vw, 30px);
  min-height: 300px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 28px 50px -24px rgba(26, 26, 26, .55); }
.card:hover::before { transform: scaleX(1); }
.card__icon { height: 88px; display: grid; place-items: center; }
.card__icon img { max-height: 76px; width: auto; transition: transform .6s var(--ease); }
.card__icon--wide img { max-height: 58px; }
.card:hover .card__icon img { transform: scale(1.08) rotate(-3deg); }
.card__title { margin-top: 26px; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.3; }
.card__text { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: rgba(244, 243, 237, .75); }

/* ---------- Banda con imagen ---------- */
.media-band {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--offwhite);
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 120px);
  min-height: min(92vh, 860px);
  display: flex; flex-direction: column;
  background: var(--green-dark);
}
.media-band--round { border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
.media-band--round-all { border-radius: var(--radius-xl); }
.media-band__bg { position: absolute; inset: -12% 0; z-index: -2; }
.media-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.media-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18, 32, 28, .82) 0%, rgba(18, 32, 28, .5) 55%, rgba(18, 32, 28, .2) 100%);
}
.media-band__head { color: var(--offwhite); }
.media-band__head .arrow { width: 40px; color: var(--yellow); }
.media-band__body { margin-top: auto; padding-top: clamp(48px, 8vw, 120px); }
.media-band__title { font-size: clamp(26px, 3.6vw, 54px); max-width: 880px; line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; }
.media-band__title--caps { text-transform: uppercase; }
.media-band__text { margin-top: 22px; max-width: 620px; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.7; color: rgba(244, 243, 237, .85); }
.media-band .btn { margin-top: 34px; }

.split-band { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .split-band { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.split-band .media-band__text { margin-top: 0; }

/* ---------- Estadísticas ---------- */
.stats-band .media-band__body { display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .stats-band .media-band__body { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.stats-band__logo { width: clamp(150px, 16vw, 230px); margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 28px; }
.stats--right { text-align: right; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) and (max-width: 959px) { .stats--right { grid-template-columns: repeat(2, 1fr); text-align: left; } }
@media (max-width: 559px) { .stats--right { grid-template-columns: repeat(2, 1fr); text-align: left; } }
.stat { border-top: 1px solid rgba(244, 243, 237, .25); padding-top: 14px; }
.stats--right .stat { border-top: 0; padding-top: 0; }
.stat dt { font-size: 14px; color: rgba(244, 243, 237, .75); }
.stat dd { margin-top: 4px; font-size: clamp(24px, 2.4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--offwhite); }
.stat dd .unit { font-size: .62em; font-weight: 700; }
.stats--yellow dd { color: var(--yellow); }
.stats--five { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats--five { grid-template-columns: repeat(5, 1fr); } }

/* ---------- Chevrons (visión) ---------- */
.chevrons { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: clamp(28px, 3vw, 44px); counter-reset: chev; }
@media (min-width: 640px) { .chevrons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .chevrons { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
.chevron {
  position: relative; background: var(--green); color: var(--offwhite);
  padding: 30px 34px 30px 30px; min-height: 180px;
  border-radius: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  transition: transform .5s var(--ease), background .4s;
}
@media (min-width: 1080px) {
  .chevron {
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%, 34px 50%);
    padding: 34px 54px 34px 62px; min-height: 210px;
  }
  .chevron:first-child { clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 50%, calc(100% - 34px) 100%, 0 100%); padding-left: 34px; border-radius: 18px 0 0 18px; }
}
.chevron:hover { background: var(--green-dark); transform: translateY(-6px); }
.chevron__num { font-size: 14px; font-weight: 700; color: var(--yellow); letter-spacing: .1em; }
.chevron__icon { width: 40px; height: 40px; color: var(--yellow); }
.chevron__text { font-size: clamp(15px, 1.15vw, 17px); font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }

/* ---------- Split (imagen + texto) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.frame { border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover img { transform: scale(1.04); }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--wide { aspect-ratio: 16 / 10; }

/* ---------- Agua: mosaico ---------- */
.tiles { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; min-height: clamp(300px, 36vw, 480px);
  padding: clamp(28px, 3.4vw, 52px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.tile--yellow { background: var(--yellow); color: var(--green); }
.tile--cream { background: var(--cream); color: var(--green); }
.tile--green { background: var(--green); color: var(--offwhite); }
.tile__icon { width: clamp(90px, 9vw, 130px); height: auto; transition: transform .8s var(--ease); }
.tile:hover .tile__icon { transform: translateY(-6px) scale(1.05); }
.tile__title { margin-top: 26px; font-size: clamp(22px, 2.1vw, 32px); text-transform: uppercase; }
.tile__num { position: absolute; left: clamp(22px, 2.6vw, 40px); bottom: clamp(14px, 2vw, 28px); font-size: clamp(34px, 3.4vw, 52px); font-weight: 700; letter-spacing: -0.03em; }
.tile--img { padding: 0; min-height: clamp(260px, 36vw, 480px); }
.tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile--img:hover img { transform: scale(1.05); }
@media (max-width: 759px) {
  /* en móvil: título → imagen, alternando */
  .tiles > :nth-child(1) { order: 1; } .tiles > :nth-child(2) { order: 2; }
  .tiles > :nth-child(3) { order: 4; } .tiles > :nth-child(4) { order: 3; }
  .tiles > :nth-child(5) { order: 5; } .tiles > :nth-child(6) { order: 6; }
  .tile { min-height: 260px; }
}

/* ---------- Galería ---------- */
.gallery { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; } }
.gallery .frame { aspect-ratio: 4 / 5; }

/* ---------- Tecnología ---------- */
.mockup { filter: drop-shadow(0 30px 40px rgba(26, 26, 26, .25)); }
.mockup img { width: 100%; }
.float { animation: floatY 6s ease-in-out infinite; }

/* ---------- Patente ---------- */
.patent {
  display: grid; gap: 6px; padding: clamp(26px, 3vw, 40px);
  border-radius: var(--radius-lg); background: var(--green); color: var(--offwhite);
}
.patent__label { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); font-weight: 700; }
.patent__num { font-size: clamp(28px, 3vw, 46px); font-weight: 700; letter-spacing: -0.02em; }
.patent__date { color: rgba(244, 243, 237, .75); }

/* ---------- Operaciones: tarjetas complementarias ---------- */
.duo { position: relative; display: grid; gap: 14px; margin-top: clamp(28px, 3vw, 44px); }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; gap: 0; } }
.duo__card {
  border-radius: var(--radius-lg); padding: clamp(30px, 3.6vw, 56px);
  min-height: 280px; display: flex; flex-direction: column; justify-content: center; gap: 22px;
  transition: transform .5s var(--ease);
}
.duo__card h3 img { height: clamp(46px, 5vw, 70px); width: auto; }
.duo__card p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.65; max-width: 460px; }
.duo__card--green { background: var(--green); color: var(--offwhite); }
.duo__card--green p { color: rgba(244, 243, 237, .85); }
.duo__card--yellow { background: var(--yellow); color: var(--green); }
@media (min-width: 820px) {
  .duo__card--green { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .duo__card--yellow { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; padding-left: clamp(48px, 5vw, 80px); }
}
.duo__link {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: var(--offwhite); color: var(--green);
  display: none; place-items: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
.duo__link svg { width: 30px; animation: swing 2.6s ease-in-out infinite; }
@media (min-width: 820px) { .duo__link { display: grid; } }

/* ---------- Equipo ---------- */
.team { display: grid; gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 48px); grid-template-columns: 1fr; margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 620px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .team { grid-template-columns: repeat(6, 1fr); } .member { grid-column: span 2; } .member:nth-child(4) { grid-column: 2 / span 2; } }
.member { text-align: center; }
.member__photo {
  width: min(240px, 70%); aspect-ratio: 1; margin-inline: auto; overflow: hidden;
  border-radius: 50%; background: var(--offwhite);
  box-shadow: 0 0 0 6px var(--offwhite), 0 0 0 7px rgba(40, 72, 63, .2);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1); transition: transform .8s var(--ease), filter .6s; }
.member:hover .member__photo { box-shadow: 0 0 0 6px var(--offwhite), 0 0 0 9px var(--yellow); transform: translateY(-4px); }
.member:hover .member__photo img { transform: scale(1.06); filter: grayscale(.2); }
.member__name { margin-top: 26px; font-size: clamp(20px, 1.6vw, 24px); color: var(--green); }
.member__bio { margin-top: 12px; font-size: 14.5px; line-height: 1.7; color: var(--muted); max-width: 400px; margin-inline: auto; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(28px, 3.8vw, 58px); max-width: 1000px; margin-inline: auto; text-transform: uppercase; }
.cta-final p { margin: 22px auto 0; max-width: 640px; font-size: clamp(16px, 1.3vw, 19px); }
.cta-final .btn { margin-top: 34px; }

/* ---------- Página siguiente ---------- */
.next-page { padding: clamp(40px, 5vw, 64px) 0; }
.next-page a {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid rgba(40, 72, 63, .25); border-bottom: 1px solid rgba(40, 72, 63, .25);
  color: var(--green);
}
.next-page__label { display: block; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; opacity: .7; }
.next-page__title { display: block; margin-top: 6px; font-size: clamp(28px, 4.4vw, 64px); font-weight: 700; letter-spacing: -0.025em; line-height: 1; text-transform: uppercase; transition: transform .5s var(--ease); }
.next-page__arrow {
  flex-shrink: 0; width: clamp(54px, 6vw, 84px); height: clamp(54px, 6vw, 84px); border-radius: 50%;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  transition: transform .5s var(--ease), background .3s;
}
.next-page__arrow svg { width: 42%; }
.next-page a:hover .next-page__title { transform: translateX(10px); }
.next-page a:hover .next-page__arrow { transform: rotate(-45deg); background: var(--green); color: var(--yellow); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 96px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-info h2 { font-size: clamp(22px, 2vw, 28px); color: var(--green); }
.contact-info h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin-top: 26px; }
.contact-info address { font-style: normal; margin-top: 8px; color: var(--muted); line-height: 1.7; }
.contact-mail { display: inline-flex; margin-top: 30px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; color: var(--green); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; transition: color .3s; word-break: break-all; }
.contact-mail:hover { color: var(--ink); }
.form { background: var(--offwhite); border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 52px); }
.form h2 { font-size: clamp(22px, 2vw, 28px); color: var(--green); }
.form__grid { display: grid; gap: 18px; margin-top: 26px; }
@media (min-width: 620px) { .form__grid { grid-template-columns: 1fr 1fr; } .form__field--full { grid-column: 1 / -1; } }
.form__field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--green); margin-bottom: 8px; }
.form__field input, .form__field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(40, 72, 63, .25);
  background: var(--white); font-size: 16px; transition: border-color .25s, box-shadow .25s;
}
.form__field textarea { min-height: 150px; resize: vertical; }
.form__field input:focus, .form__field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(40, 72, 63, .12); }
.form__hp { position: absolute; left: -9999px; }
.form__actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__status { display: none; margin-top: 20px; padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form__status.is-ok { display: block; background: rgba(40, 72, 63, .12); color: var(--green); }
.form__status.is-error { display: block; background: rgba(180, 60, 40, .12); color: #8A2E1E; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--green); color: var(--offwhite); }
.footer__head { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(28px, 3vw, 40px); }
.footer__head .eyebrow { letter-spacing: .3em; opacity: .85; }
.footer__head .arrow { width: 40px; color: var(--cream); }
.footer__main { display: grid; gap: 48px; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 900px) { .footer__main { grid-template-columns: 1fr 1.1fr; gap: 80px; } }
.footer__brand img { height: 30px; width: auto; }
.footer__tagline { margin-top: 14px; font-size: 13px; letter-spacing: .12em; color: rgba(244, 243, 237, .7); }
.footer__address { margin-top: 30px; font-style: normal; font-size: 14px; line-height: 1.7; color: rgba(244, 243, 237, .7); }
.footer__address strong { display: block; margin-top: 14px; color: var(--offwhite); font-weight: 700; }
.footer__address strong:first-child { margin-top: 0; }
.footer__social { display: flex; gap: 14px; margin-top: 30px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(232, 201, 86, .45); color: var(--yellow);
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.footer__social a:hover { background: var(--yellow); color: var(--green); transform: translateY(-3px); }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__cta h2 { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.2; }
.footer__cta .btn { margin-top: 30px; }
.footer__bottom { background: var(--offwhite); color: var(--green); }
.footer__bottom .container { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 26px; padding-bottom: 26px; text-align: center; }
.footer__bottom img { height: 24px; width: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 13.5px; }
.footer__nav a { opacity: .8; transition: opacity .25s; }
.footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__copy { font-size: 12.5px; opacity: .7; }
@media (min-width: 900px) {
  .footer__bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* Flecha genérica ↙ */
.arrow svg { width: 100%; height: auto; }

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes navIn { from { opacity: 0; transform: translate(-50%, -24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes ruleIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes kenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes heroSlide { 0% { opacity: 0; } 6% { opacity: 1; } 50% { opacity: 1; } 56% { opacity: 0; } 100% { opacity: 0; } }
@keyframes arrowIn { from { opacity: 0; transform: translate(-30px, -30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes arrowBob { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-6px, 6px); } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes swing { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* Imagen que se "descubre" */
.mask-reveal img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.3s var(--ease-in-out), transform 1.6s var(--ease); }
.mask-reveal.is-visible img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* Sin JavaScript: todo visible */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .mask-reveal img { clip-path: none; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mask-reveal img { clip-path: none; transform: none; }
  .hero__slides img:nth-child(1) { opacity: 1; }
}

/* ---------- Ajustes móviles ---------- */
@media (max-width: 639px) {
  :root { --nav-h: 64px; }
  .navbar { top: 10px; padding: 8px 8px 8px 20px; min-height: 56px; }
  .navbar__logo img { height: 22px; }
  .hero { min-height: 82svh; padding-top: calc(var(--nav-h) + 48px); }
  .hero--home { min-height: 100svh; }
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__arrow { display: none; }
  .hero__scroll { display: none; }
  .media-band { min-height: 0; }
  .media-band::before { background: linear-gradient(180deg, rgba(18, 32, 28, .55) 0%, rgba(18, 32, 28, .85) 100%); }
  .card { min-height: 0; }
  .chevron { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; padding: 22px; }
  .chevron__icon { width: 34px; height: 34px; flex-shrink: 0; }
  .chevron__num { order: -1; }
  .btn { padding: 14px 24px; }
}
