/* =========================================================
   Gases Renovables del Campo — Hoja de estilos principal
   Paleta: blanco + azul oscuro (navy). Acento verde y ámbar
   solo para语义 (pro/contra). Diseñado para lectura educativa.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --navy-900: #061529;
  --navy-800: #0B2545;
  --navy-700: #12325E;
  --navy-600: #1B4079;
  --blue-500: #2E6FA8;
  --blue-400: #3E8AC4;
  --sky-100: #E6F0F8;
  --sky-50:  #F4F8FC;

  --white: #FFFFFF;
  --ink:   #12263F;
  --muted: #5A6B80;
  --line:  #E1E8F1;
  --line-strong: #CBD7E5;

  --green-700: #166B44;
  --green-100: #E4F3EA;
  --amber-700: #9A6708;
  --amber-100: #FCF2DE;
  --red-700:   #A83434;
  --red-100:   #FBEAEA;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(11,37,69,.06), 0 2px 8px rgba(11,37,69,.05);
  --sh-md: 0 4px 12px rgba(11,37,69,.07), 0 12px 32px rgba(11,37,69,.07);
  --sh-lg: 0 10px 24px rgba(11,37,69,.09), 0 28px 64px rgba(11,37,69,.10);
  --sh-navy: 0 18px 48px rgba(6,21,41,.34);

  --container: 1200px;
  --nav-h: 74px;
  --ease: cubic-bezier(.22,.72,.3,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 18px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* `clip` en lugar de `hidden`: `hidden` convierte al body en contenedor de
     scroll y rompe el `position: sticky` de la barra de navegación en Chrome. */
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration-color: rgba(18,50,94,.35); text-underline-offset: 3px; }
a:hover { color: var(--blue-500); }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; letter-spacing: -.015em; color: var(--navy-800); font-variation-settings: 'SOFT' 0, 'WONK' 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: 1.05rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--tint { background: var(--sky-50); }
.section--navy { background: var(--navy-800); color: #DCE7F5; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy a { color: #9CC7EE; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-500); background: var(--sky-100);
  padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-700); }
.section-title { margin-bottom: 16px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 68ch; }
.section--navy .lead { color: #B9CCE4; }
.sec-head { max-width: 74ch; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--wide-left { grid-template-columns: 1.25fr .75fr; }
.split--rev > *:first-child { order: 2; }

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-pill);
  font-weight: 650; font-size: .96rem; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--navy-800); color: var(--white); box-shadow: var(--sh-md); }
.btn--primary:hover { background: var(--navy-700); color: var(--white); box-shadow: var(--sh-lg); }
.btn--green { background: var(--green-700); color: var(--white); box-shadow: 0 8px 20px rgba(22,107,68,.28); }
.btn--green:hover { background: #12593a; color: var(--white); }
.btn--wa { background: #1FA855; color: #fff; box-shadow: 0 8px 22px rgba(31,168,85,.3); }
.btn--wa:hover { background: #188F47; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-800); background: var(--sky-50); color: var(--navy-800); }
.btn--light { background: var(--white); color: var(--navy-800); box-shadow: var(--sh-md); }
.btn--light:hover { color: var(--navy-700); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: .85rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* ---------- 4. Barra superior + Navegación ---------- */
.topbar {
  background: var(--navy-900); color: #BBD0E8;
  font-size: .8rem; letter-spacing: .01em;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar strong { color: var(--white); font-weight: 600; }
.topbar .topbar-note { display: flex; align-items: center; gap: 9px; }
.topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74,222,128,.2); flex: 0 0 auto; }
.topbar a { color: #9CC7EE; }
.topbar .topbar-link { display: inline-flex; align-items: center; gap: 7px; }

.nav {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 20px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-800); flex: 0 0 auto; }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em; }
.brand__tag { font-size: .7rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__links a {
  text-decoration: none; color: var(--navy-800); font-size: .85rem; font-weight: 550;
  padding: 9px 9px; border-radius: var(--r-sm); transition: background-color .18s, color .18s;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--sky-100); color: var(--navy-700); }
.nav__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong); background: var(--white); cursor: pointer;
  align-items: center; justify-content: center; margin-left: auto;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--navy-800); position: relative; transition: .25s var(--ease); }
.nav__toggle span::before, .nav__toggle span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-800); transition: .25s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Barra de progreso de lectura */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--blue-400), var(--green-700)); z-index: 1100; transition: width .1s linear; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; background: var(--navy-900); overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.5s var(--ease);
  background-size: cover; background-position: center;
}
.hero__slide.is-active { opacity: .72; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero__slide.is-active img { animation: kenburns 16s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.17); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(125% 95% at 10% 42%, rgba(6,21,41,.18) 0%, rgba(6,21,41,.78) 58%, rgba(6,21,41,.92) 100%),
    linear-gradient(180deg, rgba(11,37,69,.60) 0%, rgba(6,21,41,.38) 42%, rgba(6,21,41,.94) 100%);
}
.hero__inner { position: relative; padding: clamp(64px, 9vw, 124px) 0 clamp(88px, 10vw, 140px); color: #fff; }
.hero__inner h1 { color: var(--white); max-width: 17ch; }
.hero__inner h1 em { font-style: normal; color: #7FD6A9; }
.hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #C8DAEE; max-width: 60ch; margin: 20px 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero__badges span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 550; color: #DCE9F7;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16);
  padding: 7px 14px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.hero__badges b { color: #fff; font-weight: 700; }
.hero__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 24px; display: flex; gap: 9px; }
.hero__dots button {
  width: 34px; height: 5px; border-radius: 4px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background-color .3s, width .3s;
}
.hero__dots button.is-active { background: var(--white); width: 52px; }
.hero__bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.hero__bubbles span {
  position: absolute; bottom: -60px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.20), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.12);
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(.7); opacity: 0; }
  12%  { opacity: .8; }
  100% { transform: translateY(-118vh) translateX(28px) scale(1.15); opacity: 0; }
}

/* ---------- 6. Tarjetas ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card__icon {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--sky-100); color: var(--navy-700); margin-bottom: 16px;
}
.card__icon svg { width: 25px; height: 25px; }
.card h3 { margin-bottom: 9px; }
.card p:last-child { margin-bottom: 0; }
.card__tag {
  position: absolute; top: 16px; right: 16px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-600); background: var(--sky-50); border: 1px solid var(--line);
  padding: 4px 10px; border-radius: var(--r-pill);
}
.card--tint { background: var(--sky-50); }
.card__num {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--blue-400); line-height: 1; margin-bottom: 12px;
}

/* ---------- 7. Pasos ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.step {
  position: relative; padding: 28px 26px 26px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step__badge {
  position: absolute; top: -15px; left: 26px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: var(--white); font-weight: 700; font-size: .95rem;
  font-family: var(--font-display); box-shadow: 0 6px 16px rgba(11,37,69,.26);
}
.step h3 { font-size: 1.13rem; margin: 12px 0 8px; }
.step p { font-size: .95rem; color: var(--muted); margin-bottom: 0; }

/* ---------- 8. Tablas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); box-shadow: var(--sh-sm); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
thead th {
  background: var(--navy-800); color: var(--white); text-align: left;
  padding: 14px 16px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; font-family: var(--font-body); white-space: nowrap;
}
tbody td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--sky-50); }
tbody td strong { color: var(--navy-800); }
.t-note { font-size: .84rem; color: var(--muted); margin-top: 12px; }

/* Pros y contras lado a lado */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pc__col { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.pc__head { padding: 16px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; }
.pc__head--pro { background: var(--green-100); color: var(--green-700); border-bottom: 1px solid #C9E4D6; }
.pc__head--con { background: var(--red-100); color: var(--red-700); border-bottom: 1px solid #F1CFCF; }
.pc__head svg { width: 20px; height: 20px; }
.pc__list { list-style: none; padding: 18px 22px 22px; margin: 0; }
.pc__list li { position: relative; padding-left: 26px; font-size: .95rem; color: var(--ink); margin-bottom: 13px; }
.pc__list li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--green-700);
}
.pc__col--con .pc__list li::before { background: var(--red-700); }
.pc__list li b { color: var(--navy-800); }

.solutions { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.solution {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--sky-50); border: 1px solid var(--line); border-left: 4px solid var(--blue-500);
  border-radius: var(--r-sm); padding: 16px 18px;
}
.solution__k {
  flex: 0 0 auto; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-700); background: var(--sky-100); padding: 4px 10px; border-radius: var(--r-pill);
  white-space: nowrap; margin-top: 2px;
}
.solution p { margin: 0; font-size: .93rem; }
.solution p b { color: var(--navy-800); }

/* ---------- 9. Cifras / contadores ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r); }
.stat__num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; color: #7FD6A9; line-height: 1; }
.stat__num sup { font-size: .5em; top: -.9em; }
.stat__label { font-size: .87rem; color: #B9CCE4; margin-top: 9px; }

/* ---------- 10. Calculadora ---------- */
.calc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.calc__head { background: var(--navy-800); color: #fff; padding: 24px 28px; }
.calc__head h3 { color: #fff; margin-bottom: 5px; }
.calc__head p { color: #B9CCE4; margin: 0; font-size: .93rem; }
.calc__body { padding: 28px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .87rem; font-weight: 600; color: var(--navy-800); margin-bottom: 7px; }
.field input[type="number"], .field select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--sky-50); font-size: .96rem; transition: border-color .2s, background-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--blue-400); background: var(--white); outline: none; }
.field small { display: block; font-size: .78rem; color: var(--muted); margin-top: 5px; }
.calc__out { background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.calc__out h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; font-family: var(--font-body); }
.out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-strong); }
.out-row:last-of-type { border-bottom: 0; }
.out-row span { font-size: .92rem; color: var(--muted); }
.out-row b { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy-800); }
.out-row b small { font-size: .7rem; font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.calc__hint { font-size: .8rem; color: var(--muted); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- 11. Galería + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal-item {
  position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 3/2; cursor: zoom-in; background: var(--sky-50); padding: 0; display: block; width: 100%;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item:hover img { transform: scale(1.07); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px; color: #fff;
  background: linear-gradient(transparent, rgba(6,21,41,.88)); font-size: .88rem; font-weight: 550;
  text-align: left;
}
.lightbox {
  position: fixed; inset: 0; z-index: 1500; background: rgba(6,21,41,.94);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; border-radius: var(--r); box-shadow: var(--sh-navy); }
.lightbox__cap { color: #D6E4F4; text-align: center; margin-top: 16px; font-size: .93rem; }
.lightbox__close {
  position: absolute; top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: 1.4rem; cursor: pointer; display: grid; place-items: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.24); }
.lightbox__nav--prev { left: 22px; }
.lightbox__nav--next { right: 22px; }

/* ---------- 12. Acordeón (FAQ) ---------- */
.faq { max-width: 900px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; transition: box-shadow .25s, border-color .25s; }
.faq__item[open] { box-shadow: var(--sh-md); border-color: var(--line-strong); }
.faq__item summary {
  cursor: pointer; padding: 19px 54px 19px 24px; font-weight: 600; color: var(--navy-800);
  position: relative; list-style: none; font-size: 1.01rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+'; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue-500); transition: transform .25s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__body { padding: 0 24px 22px; color: var(--muted); font-size: .96rem; }

/* ---------- 13. Banner de contacto (creador) ---------- */
.contact-banner {
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(62,138,196,.30), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-800) 100%);
  color: #fff; border-radius: var(--r-lg); padding: clamp(30px, 4vw, 46px);
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 36px); align-items: center;
  box-shadow: var(--sh-navy); position: relative; overflow: hidden;
}
.contact-banner::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(127,214,169,.16), transparent 70%);
}
.cb__avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255,255,255,.22); flex: 0 0 auto; background: var(--white); }
.cb__avatar img { width: 100%; height: 100%; object-fit: cover; }
.cb__body h3 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin-bottom: 8px; }
.cb__body p { color: #C4D7EC; font-size: .96rem; margin-bottom: 14px; max-width: 62ch; }
.cb__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .88rem; color: #A9C4DE; }
.cb__meta span { display: inline-flex; align-items: center; gap: 8px; }
.cb__meta svg { width: 15px; height: 15px; opacity: .8; flex: 0 0 auto; }
.cb__meta b { color: #fff; font-weight: 600; }
.cb__actions { display: flex; flex-direction: column; gap: 11px; flex: 0 0 auto; position: relative; z-index: 1; }
.cb__actions .btn { white-space: nowrap; }
.cb__free {
  text-align: center; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: #7FD6A9; font-weight: 700;
}

/* ---------- 14. Formulario de contacto ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--sh-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--sky-50); min-height: 118px; resize: vertical; font-size: .96rem; }
textarea:focus { border-color: var(--blue-400); background: var(--white); outline: none; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- 15. Banner de cookies (fijo, horizontal) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1400;
  background: var(--navy-800); color: #E4EDF8;
  border-top: 2px solid var(--blue-400);
  box-shadow: 0 -10px 28px rgba(6,21,41,.26);
  transform: translateY(0); transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie-banner.is-hidden { transform: translateY(115%); opacity: 0; pointer-events: none; }
.cookie-banner__inner {
  display: flex; align-items: center; gap: 14px;
  padding: 6px 16px; max-width: var(--container); margin-inline: auto;
}
.cookie-banner__text { flex: 1 1 auto; min-width: 0; font-size: .72rem; line-height: 1.35; }
.cookie-banner__text strong { color: #fff; }
.cookie-banner__text a { color: #9CC7EE; }
.cookie-banner__actions { display: flex; gap: 7px; flex: 0 0 auto; align-items: center; }
.cookie-banner__actions .btn { padding: 5px 13px; font-size: .75rem; border-width: 1.2px; }

/* ---------- 16. Botón flotante WhatsApp + subir ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: calc(var(--badge-h, 0px) + var(--cookie-h, 0px) + 76px); z-index: 1300;
  width: 56px; height: 56px; border-radius: 50%;
  background: #1FA855; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(31,168,85,.42); transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.09); color: #fff; }
.wa-float svg { width: 29px; height: 29px; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(31,168,85,.55); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top {
  position: fixed; right: 24px; bottom: calc(var(--badge-h, 0px) + var(--cookie-h, 0px) + 22px); z-index: 1300;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--white); color: var(--navy-800); display: grid; place-items: center;
  box-shadow: var(--sh-md); cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--navy-800); color: #fff; }
.to-top svg { width: 20px; height: 20px; }
/* Si el distintivo de la plataforma está presente, el banner le cede espacio
   para que los botones "Aceptar/Rechazar" nunca queden tapados.
   - En escritorio se reserva a la derecha (el distintivo ocupa 237 px del borde).
   - En móvil no cabe a la derecha, así que se le deja una franja inferior. */
@media (min-width: 781px) {
  html.has-badge .cookie-banner__inner {
    padding-right: max(120px, min(253px, calc(853px - 50vw)));
  }
}
@media (max-width: 780px) {
  html.has-badge .cookie-banner { padding-bottom: var(--badge-h, 60px); }
}

/* ---------- 17. Footer ---------- */
.footer { background: var(--navy-900); color: #A8C0DA; padding: 62px 0 0; font-size: .91rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 42px; }
.footer h4 { color: #fff; font-size: .8rem; letter-spacing: .11em; text-transform: uppercase; font-family: var(--font-body); font-weight: 700; margin-bottom: 15px; }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: #A8C0DA; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .84rem;
}
.footer__disclaimer { font-size: .84rem; color: #8FAAC6; max-width: 78ch; }

/* ---------- 18. Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }
.reveal[data-delay="5"] { transition-delay: .45s; }

.source {
  font-size: .82rem; color: var(--muted); margin-top: 12px;
  border-left: 3px solid var(--line-strong); padding-left: 12px;
}
.section--navy .source { color: #9FB8D3; border-color: rgba(255,255,255,.25); }
.badge-legal {
  display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600;
  background: var(--sky-100); color: var(--navy-700); border: 1px solid var(--line-strong);
  padding: 6px 13px; border-radius: var(--r-pill); margin: 4px 8px 4px 0;
}
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.pill-list li {
  background: var(--sky-50); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 15px; font-size: .88rem; font-weight: 550; color: var(--navy-800); margin: 0;
}
.callout {
  background: var(--sky-50); border-left: 4px solid var(--blue-500); border-radius: var(--r-sm);
  padding: 18px 22px; font-size: .94rem;
}
.callout strong { color: var(--navy-800); }
.callout--warn { background: var(--amber-100); border-color: var(--amber-700); }
.callout--warn strong { color: var(--amber-700); }
.section--navy .callout { background: rgba(255,255,255,.07); border-color: var(--blue-400); }
.section--navy .callout strong { color: #fff; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 1260px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 14px 22px 20px; box-shadow: var(--sh-md);
  }
  .nav.is-open .nav__links a { padding: 12px 10px; font-size: 1rem; }
  .nav__cta .btn--primary { display: none; }
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
  .contact-banner { grid-template-columns: auto 1fr; }
  .cb__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  body { font-size: 16px; }
  .g-2, .g-3, .g-4, .pc, .calc__body, .form-grid, .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 8px; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 7px; padding: 8px 14px 10px; }
  .cookie-banner__actions { justify-content: flex-end; }
  /* Con el banner de cookies abierto el boton flotante taparia el texto del hero */
  body.has-cookie .wa-float { display: none; }
  .contact-banner { grid-template-columns: 1fr; text-align: center; }
  .cb__avatar { margin-inline: auto; }
  .cb__meta { justify-content: center; }
  .cb__actions { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .cb__actions .btn { width: 100%; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  /* En movil el boton del nav queda solo con el icono de WhatsApp */
  .nav__cta .btn__label { display: none; }
  .nav__cta .btn { padding: 10px 13px; }
  .nav__cta .btn svg { width: 19px; height: 19px; }
}

/* ---------- 20. Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .nav, .cookie-banner, .wa-float, .to-top, .hero__dots, .topbar { display: none !important; }
  body { font-size: 12pt; }
}
