/* ==========================================================================
   solaresmallorca.es · styles.css
   Sistema de diseño: tokens + base + componentes + responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Paleta */
  --verde:        #2EC4A5;
  --verde-dk:     #1e9e85;
  --verde-lt:     #e8faf7;
  --noche:        #1A2B35;
  --noche-md:     #263d4a;
  --ambar:        #FFB830;
  --ambar-dk:     #e6a020;
  --fondo:        #F5F9F8;
  --blanco:       #ffffff;
  --gris:         #6b7c86;
  --gris-md:      #95a4ac;
  --gris-lt:      #dce8e4;

  /* Tipografía */
  --font-sans:    "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif:   "Lora", Georgia, serif;

  /* Radios */
  --r-sm:         8px;
  --r-md:         14px;
  --r-pill:       50px;

  /* Sombras */
  --sh-soft:      0 4px 24px rgba(26, 43, 53, .08);
  --sh-hover:     0 8px 40px rgba(26, 43, 53, .14);
  --sh-deep:      0 16px 56px rgba(26, 43, 53, .18);

  /* Espaciado base (múltiplos de 8) */
  --s-1:          8px;
  --s-2:          16px;
  --s-3:          24px;
  --s-4:          32px;
  --s-5:          48px;
  --s-6:          64px;
  --s-7:          80px;
  --s-8:          96px;

  /* Alturas header */
  --topbar-h:     42px;
  --nav-h:        72px;

  /* Layout */
  --maxw:         1200px;
  --maxw-narrow:  680px;

  /* Z-index */
  --z-topbar:     200;
  --z-nav:        100;
  --z-menu:       150;
  --z-wa:         90;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { overflow-x: hidden; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--noche);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--verde-dk);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--verde); }

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

ul, ol { padding-left: 1.2rem; }
li { margin-bottom: .25rem; }

/* Focus visible global */
:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* --------------------------------------------------------------------------
   3. Tipografía
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.2;
  color: var(--noche);
  margin: 0 0 var(--s-2);
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2rem, 4.5vw + .5rem, 3.4rem);
  letter-spacing: -.03em;
}
h2 {
  font-size: clamp(1.6rem, 2.6vw + .5rem, 2.4rem);
  letter-spacing: -.025em;
}
h3 {
  font-size: clamp(1.25rem, 1.4vw + .5rem, 1.5rem);
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

p {
  margin: 0 0 var(--s-2);
  max-width: var(--maxw-narrow);
}

.lead {
  font-size: clamp(1.05rem, .7vw + .9rem, 1.25rem);
  color: var(--noche-md);
  line-height: 1.6;
  max-width: 620px;
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--verde-dk);
  margin-bottom: var(--s-2);
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}

main { display: block; }

section { padding: var(--s-6) 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -10000px;
  top: var(--s-1);
  background: var(--noche);
  color: var(--blanco);
  padding: 10px 18px;
  z-index: 9999;
  border-radius: var(--r-sm);
}
.skip-link:focus { left: var(--s-1); }

/* --------------------------------------------------------------------------
   5. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border-radius: var(--r-pill);
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  text-align: center;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ambar);
  color: var(--noche);
  box-shadow: 0 6px 20px rgba(255, 184, 48, .35);
}
.btn-primary:hover {
  background: var(--ambar-dk);
  color: var(--noche);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 184, 48, .45);
}

.btn-secondary {
  background: var(--noche);
  color: var(--blanco);
}
.btn-secondary:hover {
  background: var(--noche-md);
  color: var(--blanco);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--verde-dk);
  border: 2px solid var(--verde);
  padding: 12px 30px;
}
.btn-ghost:hover {
  background: var(--verde);
  color: var(--blanco);
}

.btn-sm {
  padding: 10px 22px;
  font-size: .9rem;
  min-height: 40px;
}

.btn-block { display: flex; width: 100%; }

.btn .icn { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   6. Topbar
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  height: var(--topbar-h);
  background: var(--noche);
  color: var(--blanco);
  font-size: .9rem;
}
.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.tb-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blanco);
  font-weight: 700;
}
.tb-phone:hover { color: var(--ambar); }
.tb-phone svg { width: 14px; height: 14px; flex: 0 0 14px; }

.tb-center {
  color: var(--gris-lt);
  font-weight: 500;
}

.tb-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ambar);
  color: var(--noche);
  padding: 7px 16px;
  font-weight: 700;
  font-size: .85rem;
  border-radius: var(--r-pill);
  transition: background .2s ease;
}
.tb-cta:hover { background: var(--ambar-dk); color: var(--noche); }

/* --------------------------------------------------------------------------
   7. Nav principal
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: var(--topbar-h);
  z-index: var(--z-nav);
  background: rgba(245, 249, 248, .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(220, 232, 228, .6);
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(26, 43, 53, .06); }

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-primary { display: contents; }
.nav-logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.nav-logo img,
.nav-logo svg { height: 44px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }

.nav-links > li > a,
.nav-links > li > .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--noche);
  font-weight: 600;
  font-size: .98rem;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  position: relative;
}
.nav-links > li > a::after,
.nav-links > li > .nav-toggle::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  background: var(--verde);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links > li:hover > a::after,
.nav-links > li:hover > .nav-toggle::after,
.nav-links > li > a[aria-current="page"]::after { transform: scaleX(1); }

.nav-links .nav-toggle svg { width: 12px; height: 12px; transition: transform .2s ease; }
.nav-links li:hover .nav-toggle svg { transform: rotate(180deg); }

/* Dropdown desktop */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--blanco);
  min-width: 280px;
  padding: var(--s-2);
  border-radius: var(--r-md);
  box-shadow: var(--sh-hover);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  list-style: none;
  margin: 0;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--noche);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--r-sm);
}
.dropdown-menu a:hover {
  background: var(--verde-lt);
  color: var(--verde-dk);
}
.dropdown-menu .group-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris);
  padding: 10px 14px 4px;
}
.dropdown-menu .sep {
  height: 1px;
  background: var(--gris-lt);
  margin: 6px 0;
}

/* --------------------------------------------------------------------------
   8. Hamburguesa
   -------------------------------------------------------------------------- */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.hamburger:hover { background: var(--verde-lt); }
.hamburger span {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: var(--noche);
  border-radius: 2px;
  transition: transform .25s ease, opacity .15s ease;
}
.hamburger span::before,
.hamburger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--noche);
  border-radius: 2px;
  transition: transform .25s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after { top: 7px; }

body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .hamburger span::after  { transform: translateY(-7px) rotate(-45deg); }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  top: calc(var(--topbar-h) + var(--nav-h));
  left: 0;
  width: 100vw;
  max-height: calc(100vh - var(--topbar-h) - var(--nav-h));
  background: var(--blanco);
  z-index: var(--z-menu);
  padding: var(--s-3) var(--s-3) var(--s-5);
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
  box-shadow: var(--sh-soft);
}
body.menu-open .mobile-menu { transform: translateX(0); }

.mobile-menu ul {
  list-style: none;
  margin: 0 0 var(--s-3);
  padding: 0;
}
.mobile-menu > ul > li { border-bottom: 1px solid var(--gris-lt); }
.mobile-menu > ul > li > a,
.mobile-menu > ul > li > .mm-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  color: var(--noche);
  font-weight: 600;
  font-size: 1.05rem;
  text-align: left;
}
.mobile-menu .mm-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.mobile-menu .mm-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-menu .mm-open + .mm-submenu { max-height: 600px; }
.mobile-menu .mm-open svg { transform: rotate(180deg); }

.mobile-menu .mm-submenu a {
  display: block;
  padding: 12px 16px;
  color: var(--noche-md);
  font-weight: 500;
  font-size: .98rem;
}
.mobile-menu .mm-submenu a:hover { color: var(--verde-dk); }
.mobile-menu .mm-submenu .group-title {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris);
  padding: 12px 16px 4px;
}

.mobile-menu .mm-cta {
  margin-top: var(--s-3);
}

.menu-overlay {
  position: fixed;
  inset: calc(var(--topbar-h) + var(--nav-h)) 0 0 0;
  background: rgba(26, 43, 53, .35);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: calc(var(--z-menu) - 1);
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: var(--s-8) 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 196, 165, .15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 184, 48, .12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-6);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 { margin-bottom: var(--s-3); }
.hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-4) 0 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--gris-lt);
  list-style: none;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--noche-md);
  font-weight: 600;
}
.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--verde);
  flex: 0 0 18px;
}

.hero-media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-deep);
  aspect-ratio: 4 / 3;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  background: var(--blanco);
  border-radius: var(--r-md);
  padding: 12px 18px;
  box-shadow: var(--sh-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-badge .b-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--verde-dk);
  line-height: 1;
}
.hero-badge .b-lbl {
  font-size: .8rem;
  color: var(--noche-md);
  font-weight: 600;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   10. Banda de confianza
   -------------------------------------------------------------------------- */
.trust-band {
  background: var(--noche);
  color: var(--blanco);
  padding: var(--s-5) 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.trust-item {
  text-align: center;
}
.trust-item .t-num {
  font-size: clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  font-weight: 800;
  color: var(--ambar);
  line-height: 1;
  letter-spacing: -.02em;
  display: block;
  margin-bottom: 6px;
}
.trust-item .t-lbl {
  font-size: .95rem;
  color: var(--gris-lt);
  font-weight: 500;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   11. Cards genéricas
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--blanco);
  border-radius: var(--r-md);
  padding: var(--s-3);
  box-shadow: var(--sh-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--verde-lt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
  color: var(--verde-dk);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: var(--s-1); }
.card p {
  color: var(--noche-md);
  font-size: .95rem;
  line-height: 1.6;
  margin-bottom: var(--s-2);
}
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--verde-dk);
  font-weight: 700;
  font-size: .95rem;
}
.card-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   12. Sección "cómo funciona" (proceso)
   -------------------------------------------------------------------------- */
.process {
  background: var(--blanco);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
  position: relative;
}
.process-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .process-grid.cols-3 { grid-template-columns: 1fr; } }
.ahorro-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; align-items: center; max-width: 1000px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) { .ahorro-grid-2 { grid-template-columns: 1fr; gap: 24px; } }

.process-step {
  position: relative;
  padding: var(--s-3);
}
.process-step .p-num {
  font-family: var(--font-sans);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--verde);
  line-height: 1;
  margin-bottom: var(--s-2);
  display: block;
  letter-spacing: -.04em;
}
.process-step .p-num.is-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-lt);
  color: var(--verde-dk);
  border-radius: 14px;
  font-size: 0;
  margin-bottom: var(--s-3);
}
.process-step .p-num.is-icon svg {
  width: 30px;
  height: 30px;
}

.process-step h3 {
  font-size: 1.05rem;
  margin-bottom: var(--s-1);
}
.process-step p {
  font-size: .92rem;
  color: var(--noche-md);
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Sección ahorro (3 stats)
   -------------------------------------------------------------------------- */
.ahorro {
  background: linear-gradient(180deg, var(--verde-lt) 0%, var(--fondo) 100%);
}
.ahorro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.ahorro-card {
  background: var(--blanco);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: left;
  box-shadow: var(--sh-soft);
  border-top: 4px solid var(--verde);
}
.ahorro-card .big {
  font-size: clamp(2.2rem, 3.5vw + .5rem, 3rem);
  font-weight: 800;
  color: var(--noche);
  line-height: 1;
  letter-spacing: -.03em;
  display: block;
  margin-bottom: var(--s-1);
}
.ahorro-card .big .unit {
  font-size: .55em;
  color: var(--verde-dk);
  font-weight: 700;
  margin-left: 4px;
}
.ahorro-card h3 {
  font-size: 1.05rem;
  margin: var(--s-1) 0;
}
.ahorro-card p {
  font-size: .92rem;
  color: var(--noche-md);
  margin: 0;
}

/* --------------------------------------------------------------------------
   14. Sección diferenciadores
   -------------------------------------------------------------------------- */
.diffs {
  background: var(--blanco);
}
.diffs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.diff-card {
  padding: var(--s-3);
  border-radius: var(--r-md);
  border: 1px solid var(--gris-lt);
  transition: border-color .2s ease, transform .25s ease;
}
.diff-card:hover {
  border-color: var(--verde);
  transform: translateY(-2px);
}
.diff-card .d-icn {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--noche);
  color: var(--ambar);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
}
.diff-card .d-icn svg { width: 22px; height: 22px; }
.diff-card h3 { font-size: 1.1rem; margin-bottom: var(--s-1); }
.diff-card p { font-size: .95rem; color: var(--noche-md); margin: 0; }

/* --------------------------------------------------------------------------
   15. Sección calculadora (teaser)
   -------------------------------------------------------------------------- */
.calc-teaser {
  background: var(--noche);
  color: var(--blanco);
  border-radius: var(--r-md);
  padding: var(--s-6);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-5);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.calc-teaser::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(46, 196, 165, .25) 0%, transparent 60%);
  pointer-events: none;
}
.calc-teaser h2 {
  color: var(--blanco);
  margin-bottom: var(--s-2);
}
.calc-teaser p {
  color: var(--gris-lt);
  max-width: none;
  margin-bottom: var(--s-3);
}
.calc-teaser .calc-mock {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  padding: var(--s-3);
  position: relative;
  z-index: 1;
}
.calc-teaser .cm-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .92rem;
}
.calc-teaser .cm-row:last-child { border-bottom: 0; }
.calc-teaser .cm-row .lbl { color: var(--gris-lt); }
.calc-teaser .cm-row .val { color: var(--verde); font-weight: 700; }
.calc-teaser .cm-row .val.big { font-size: 1.4rem; color: var(--ambar); }

/* --------------------------------------------------------------------------
   15b. Proyectos realizados
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   15a. Servicios (tarjetas con icono SVG)
   -------------------------------------------------------------------------- */
.servicios {
  padding: 80px 0;
  background: var(--fondo);
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.servicio-card {
  display: block;
  text-decoration: none;
  background: var(--blanco);
  border: 1px solid var(--gris-lt);
  border-radius: var(--radius);
  padding: var(--s-4);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 43, 53, .12);
  border-color: var(--verde);
}
.servicio-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: var(--verde-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}
.servicio-icon.amber {
  background: #fff6e6;
}
.servicio-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--noche);
  margin: 0 0 var(--s-2);
  line-height: 1.3;
}
.servicio-card p {
  font-size: .92rem;
  color: var(--gris);
  margin: 0 0 var(--s-3);
  line-height: 1.6;
}
.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--verde-dk);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 960px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .servicios {
    padding: 48px 0;
  }
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}

.proyectos {
  padding: 80px 0;
}
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.proyecto-card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26, 43, 53, .06);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 43, 53, .12);
}
.proyecto-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.proyecto-info {
  padding: var(--s-3);
}
.proyecto-tag {
  display: inline-block;
  background: var(--verde-lt);
  color: var(--verde-dk);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: var(--s-2);
}
.proyecto-info p {
  margin: 0;
  font-size: .92rem;
  color: var(--noche-md);
  line-height: 1.55;
}
.proyecto-cta {
  background: var(--noche);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--s-4);
  color: var(--blanco);
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.proyecto-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 43, 53, .18);
}
.proyecto-cta .cta-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46, 196, 165, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
}
.proyecto-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 var(--s-2);
  line-height: 1.3;
  color: var(--blanco);
}
.proyecto-cta p {
  margin: 0 0 var(--s-3);
  font-size: .9rem;
  color: rgba(255, 255, 255, .8);
  line-height: 1.55;
}
.proyecto-cta .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--verde);
  font-weight: 600;
  font-size: .95rem;
}
.proyecto-card[data-lightbox] {
  position: relative;
}
.proyecto-card[data-lightbox]::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(26, 43, 53, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M9 21H3v-6'/%3E%3Cpath d='M21 3l-7 7'/%3E%3Cpath d='M3 21l7-7'/%3E%3C/svg%3E") center/18px no-repeat;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.proyecto-card[data-lightbox]:hover::after,
.proyecto-card[data-lightbox]:focus-visible::after {
  opacity: 1;
}
.proyecto-card[data-lightbox]:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 2px;
}
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(26, 43, 53, .94);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lb-overlay.is-open {
  display: flex;
}
.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
  width: 100%;
}
.lb-img {
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--noche-md);
}
.lb-caption {
  text-align: center;
  margin-top: 18px;
  max-width: 640px;
}
.lb-caption .lb-tag {
  display: inline-block;
  background: rgba(46, 196, 165, .2);
  color: #5DCAA5;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.lb-caption .lb-desc {
  color: var(--blanco);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.lb-caption .lb-count {
  display: block;
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
  margin-top: 12px;
}
.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255, 255, 255, .12);
  border: none;
  color: var(--blanco);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 255, 255, .25);
}
.lb-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
}
.lb-prev,
.lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 30px;
  line-height: 1;
}
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 24px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-img { max-height: 60vh; }
}
@media (max-width: 960px) {
  .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .proyectos {
    padding: 48px 0;
  }
  .proyectos-grid {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
  .proyecto-card img {
    height: 200px;
  }
  .proyecto-cta {
    padding: var(--s-3);
  }
}

/* --------------------------------------------------------------------------
   16. Islas (cobertura geográfica)
   -------------------------------------------------------------------------- */
.cobertura {
  background: var(--fondo);
}
.cobertura-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.isla-card {
  position: relative;
  background: var(--blanco);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.isla-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
}
.isla-card .i-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--gris-lt);
}
.isla-card .i-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.isla-card:hover .i-img img { transform: scale(1.04); }
.isla-card .i-body {
  padding: var(--s-3);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.isla-card h3 { margin-bottom: var(--s-1); }
.isla-card p {
  font-size: .92rem;
  color: var(--noche-md);
  margin-bottom: var(--s-2);
  flex-grow: 1;
}
.isla-card .i-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--verde-dk);
  font-weight: 700;
  font-size: .95rem;
}
.isla-card .i-cta svg { width: 14px; height: 14px; transition: transform .2s ease; }
.isla-card:hover .i-cta svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   17. FAQ (details / summary)
   -------------------------------------------------------------------------- */
.faq {
  background: var(--blanco);
}
.faq-list {
  max-width: 880px;
  margin: var(--s-4) auto 0;
}
.faq-item {
  background: var(--fondo);
  border-radius: var(--r-md);
  margin-bottom: var(--s-2);
  border: 1px solid var(--gris-lt);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: var(--verde);
  box-shadow: var(--sh-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--noche);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--noche);
  border-bottom: 2px solid var(--noche);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
  flex: 0 0 12px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
  border-color: var(--verde-dk);
}
.faq-item .faq-respuesta {
  padding: 0 var(--s-3) var(--s-3);
  color: var(--noche-md);
}
.faq-item .faq-respuesta p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   18. CTA final + formulario
   -------------------------------------------------------------------------- */
.cta-final {
  background: linear-gradient(135deg, var(--noche) 0%, var(--noche-md) 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
  padding: var(--s-7) 0;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(46, 196, 165, .2) 0%, transparent 60%);
  pointer-events: none;
}
.cta-final-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-6);
  align-items: start;
  position: relative;
  z-index: 1;
}
.cta-final h2 { color: var(--blanco); }
.cta-final p { color: var(--gris-lt); }
.cta-final-trust {
  margin-top: var(--s-3);
  list-style: none;
  padding: 0;
}
.cta-final-trust li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gris-lt);
  font-size: .95rem;
}
.cta-final-trust li svg {
  width: 18px;
  height: 18px;
  color: var(--verde);
  flex: 0 0 18px;
}

.form-box {
  background: var(--blanco);
  color: var(--noche);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: var(--sh-deep);
}
.form-box h3 {
  margin-bottom: var(--s-2);
}
.form-box .form-sub {
  font-size: .9rem;
  color: var(--noche-md);
  margin-bottom: var(--s-3);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.form-grid .full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--noche-md);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--gris-lt);
  border-radius: var(--r-sm);
  background: var(--blanco);
  color: var(--noche);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(46, 196, 165, .15);
}
.field textarea { min-height: 110px; resize: vertical; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #e54e4e;
}
.field-error {
  font-size: .8rem;
  color: #c33;
  display: none;
  margin: 0;
}
.field.has-error .field-error { display: block; }

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: var(--s-2) 0;
  font-size: .85rem;
  color: var(--noche-md);
  line-height: 1.5;
}
.consent input { margin-top: 3px; flex: 0 0 16px; }

.form-status {
  margin-top: var(--s-2);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: .9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.error { background: #fdecec; color: #c33; }
.form-status.success { background: #e8faf7; color: var(--verde-dk); }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--noche);
  color: var(--gris-lt);
  padding: var(--s-7) 0 var(--s-3);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.footer-brand img,
.footer-brand svg { height: 40px; width: auto; margin-bottom: var(--s-2); }
.footer-brand p {
  color: var(--gris-md);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: var(--s-2);
  max-width: none;
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gris-lt);
}
.footer-contact a {
  color: var(--gris-lt);
  font-weight: 600;
}
.footer-contact a:hover { color: var(--ambar); }
.footer-contact svg {
  width: 16px;
  height: 16px;
  color: var(--verde);
  flex: 0 0 16px;
}

.footer-col h4 {
  color: var(--blanco);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--s-2);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--gris-md);
  font-size: .92rem;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--ambar); }

.footer-blog {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: var(--s-3) 0;
  margin-bottom: var(--s-3);
}
.footer-blog .fb-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris-md);
  margin-bottom: 10px;
  font-weight: 700;
}
.footer-blog .fb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-blog .fb-list a {
  font-size: .82rem;
  color: var(--gris-md);
}
.footer-blog .fb-list a:hover { color: var(--ambar); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: var(--s-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  font-size: .82rem;
  color: var(--gris-md);
}
.footer-bottom .legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom .legal a { color: var(--gris-md); }
.footer-bottom .legal a:hover { color: var(--ambar); }
.footer-bottom .credit {
  opacity: .65;
  font-size: .76rem;
}
.footer-bottom .credit a {
  color: var(--gris-md);
  text-decoration: none;
}
.footer-bottom .credit a:hover {
  color: var(--ambar);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   20. WhatsApp flotante
   -------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: var(--blanco);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .45);
  z-index: var(--z-wa);
  transition: transform .2s ease, opacity .2s ease, box-shadow .25s ease;
}
.wa-float:hover {
  transform: scale(1.06);
  color: var(--blanco);
  box-shadow: 0 12px 36px rgba(37, 211, 102, .6);
}
.wa-float svg { width: 32px; height: 32px; }

body.menu-open .wa-float {
  opacity: 0;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   21. Reveal (animaciones progresivas)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
}
.reveal.ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   22. Heading helpers
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 760px;
  margin: 0 auto var(--s-4);
  text-align: center;
}
.section-head.left { text-align: left; margin: 0 0 var(--s-4); }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { margin: 0 auto; color: var(--noche-md); }

/* --------------------------------------------------------------------------
   23. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid { gap: var(--s-4); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:nth-child(4) { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .calc-teaser { padding: var(--s-5); }
}

@media (max-width: 900px) {
  .cta-final-grid { grid-template-columns: 1fr; }
  .calc-teaser { grid-template-columns: 1fr; gap: var(--s-3); }
  .diffs-grid { grid-template-columns: repeat(2, 1fr); }
  .ahorro-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  section { padding: var(--s-5) 0; }
  .hero { padding: var(--s-5) 0 var(--s-6); }
  .cta-final { padding: var(--s-6) 0; }

  /* Topbar móvil: solo teléfono */
  .tb-center,
  .tb-cta { display: none; }
  .topbar-inner { justify-content: center; }
  .tb-phone { font-size: 1rem; }

  /* Nav móvil */
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .nav-logo img,
  .nav-logo svg { height: 36px; max-width: 140px; }

  /* Hero stacked */
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .hero-media { aspect-ratio: 16 / 10; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  /* Stats */
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .ahorro-grid { grid-template-columns: 1fr; }
  .cards-grid.cols-3,
  .cards-grid.cols-2 { grid-template-columns: 1fr; }
  .diffs-grid { grid-template-columns: 1fr; }
  .cobertura-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  :root {
    --s-7: 56px;
    --s-8: 72px;
  }
  .container { padding: 0 var(--s-2); }
  .hero h1 { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .calc-teaser { padding: var(--s-3); }
  .form-box { padding: var(--s-3); }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* Reduced motion */
@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.ready { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   24. Breadcrumb (obligatorio en todas las páginas excepto home)
   -------------------------------------------------------------------------- */
.breadcrumb {
  background: var(--blanco);
  border-bottom: 1px solid var(--gris-lt);
  padding: 14px 0;
  font-size: .82rem;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--gris);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--gris-md);
  font-weight: 600;
}
.breadcrumb a {
  color: var(--gris);
  font-weight: 500;
}
.breadcrumb a:hover { color: var(--verde-dk); }
.breadcrumb [aria-current="page"] {
  color: var(--noche);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   25. Answer capsule (AEO/GEO — respuesta directa tras H1/H2)
   -------------------------------------------------------------------------- */
.answer-capsule {
  background: var(--verde-lt);
  border-left: 4px solid var(--verde);
  border-radius: var(--r-sm);
  padding: var(--s-3);
  margin: var(--s-3) 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--noche);
  max-width: none;
}
.answer-capsule p { margin: 0; max-width: none; }
.answer-capsule strong { color: var(--verde-dk); font-weight: 700; }
.article-notice {
  background: #fff6e6;
  border-left: 4px solid var(--ambar-dk);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-3) var(--s-3) calc(var(--s-3) + 8px);
  margin: var(--s-4) 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--noche);
}
.article-notice strong { color: var(--ambar-dk); font-weight: 700; }
.article-notice p { margin: 0 0 var(--s-2); max-width: none; }
.article-notice p:last-child { margin-bottom: 0; }
.article-notice .notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--ambar-dk);
  margin-bottom: var(--s-2);
}


/* --------------------------------------------------------------------------
   26. Prosa de contenido (artículos / servicios)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 820px;
  margin: 0 auto;
}
.prose h2 {
  margin-top: var(--s-5);
  margin-bottom: var(--s-2);
  scroll-margin-top: 130px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  margin-top: var(--s-3);
  margin-bottom: var(--s-1);
  font-size: 1.2rem;
  color: var(--noche);
}
.prose p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--noche-md);
  margin-bottom: var(--s-2);
  max-width: none;
}
.prose ul,
.prose ol {
  margin: var(--s-2) 0 var(--s-3);
  padding-left: 1.4rem;
  color: var(--noche-md);
}
.prose li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.prose strong { color: var(--noche); font-weight: 700; }
.prose a {
  color: var(--verde-dk);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--verde); }
.prose blockquote {
  margin: var(--s-3) 0;
  padding: var(--s-2) var(--s-3);
  border-left: 4px solid var(--ambar);
  background: var(--fondo);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: normal;
  color: var(--noche-md);
}

/* --------------------------------------------------------------------------
   27. Pricing grid (tarjetas de potencia / paquete)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.price-card {
  background: var(--blanco);
  border: 1px solid var(--gris-lt);
  border-radius: var(--r-md);
  padding: var(--s-3);
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.price-card:hover {
  border-color: var(--verde);
  transform: translateY(-4px);
  box-shadow: var(--sh-soft);
}
.price-card.featured {
  border: 2px solid var(--verde);
  background: var(--blanco);
  box-shadow: var(--sh-soft);
}
.price-card.featured::before {
  content: "Más popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--verde);
  color: var(--blanco);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-card .pc-name {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--verde-dk);
  margin-bottom: 8px;
}
.price-card .pc-headline {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--noche);
  margin-bottom: var(--s-1);
  line-height: 1.2;
}
.price-card .pc-sub {
  font-size: .9rem;
  color: var(--noche-md);
  margin-bottom: var(--s-2);
  line-height: 1.45;
}
.price-card .pc-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--noche);
  margin-bottom: 4px;
  line-height: 1;
}
.price-card .pc-price-prefix {
  font-size: .85rem;
  color: var(--gris);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.price-card .pc-price-sub {
  font-size: .92rem;
  color: var(--verde-dk);
  font-weight: 700;
  margin-bottom: var(--s-2);
}
.price-card .pc-features {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0;
  border-top: 1px solid var(--gris-lt);
  padding-top: var(--s-2);
}
.price-card .pc-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--noche-md);
  line-height: 1.5;
}
.price-card .pc-features svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--verde);
  margin-top: 4px;
}
.price-card .pc-cta {
  margin-top: auto;
  padding-top: var(--s-2);
}

/* --------------------------------------------------------------------------
   28. Tablas comparativas responsive
   -------------------------------------------------------------------------- */
.tabla-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--s-3) 0;
  border-radius: var(--r-md);
  box-shadow: var(--sh-soft);
  background: var(--blanco);
}
.tabla-responsive table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: .95rem;
}
.tabla-responsive thead {
  background: var(--noche);
  color: var(--blanco);
}
.tabla-responsive th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  font-size: .92rem;
}
.tabla-responsive td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gris-lt);
  color: var(--noche-md);
}
.tabla-responsive tr:last-child td { border-bottom: 0; }
.tabla-responsive tbody tr:hover {
  background: var(--verde-lt);
}
.tabla-responsive td strong { color: var(--noche); font-weight: 700; }
.tabla-nota-movil {
  display: none;
  text-align: center;
  font-size: .8rem;
  color: var(--gris);
  padding: 8px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   29. Sección de servicio: layout 2 columnas con sidebar
   -------------------------------------------------------------------------- */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-5);
  align-items: start;
}
.service-sidebar {
  position: sticky;
  top: 130px;
  background: var(--blanco);
  border-radius: var(--r-md);
  padding: var(--s-3);
  box-shadow: var(--sh-soft);
  border-top: 4px solid var(--verde);
}
.service-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: var(--s-2);
}
.service-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-2);
}
.service-sidebar li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .92rem;
  color: var(--noche-md);
  line-height: 1.5;
}
.service-sidebar li svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--verde);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   30. Sección de objeciones (cards anticipando dudas)
   -------------------------------------------------------------------------- */
.objeciones {
  background: var(--fondo);
}
.objeciones .card { padding: var(--s-3); }
.objeciones .card-icon {
  background: var(--noche);
  color: var(--ambar);
}

/* --------------------------------------------------------------------------
   31. Responsive ajustes nuevos componentes
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid .price-card:nth-child(3) { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .price-card:nth-child(3) { max-width: none; margin: 0; }
  .breadcrumb { padding: 10px 0; font-size: .78rem; }
  .breadcrumb ol { gap: 6px; }
  .answer-capsule { padding: var(--s-2); font-size: .98rem; }
  .prose h2 { scroll-margin-top: 90px; }
  .tabla-nota-movil { display: block; }
}

/* --------------------------------------------------------------------------
   32. Objection cards (grid 2 columnas, expandidos por defecto para AEO)
   -------------------------------------------------------------------------- */
.objections-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.objection-card {
  background: var(--blanco);
  border-radius: var(--r-md);
  padding: var(--s-3);
  box-shadow: var(--sh-soft);
  border-left: 4px solid var(--ambar);
  display: flex;
  flex-direction: column;
}
.objection-card h3 {
  font-size: 1.05rem;
  margin: 0 0 var(--s-1);
  color: var(--noche);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.4;
}
.objection-card h3::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--ambar);
  color: var(--noche);
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.05rem;
  flex: 0 0 30px;
  margin-top: 2px;
}
.objection-card p {
  color: var(--noche-md);
  font-size: .95rem;
  line-height: 1.65;
  margin: 0;
  padding-left: 42px;
}
@media (max-width: 768px) {
  .objections-grid { grid-template-columns: 1fr; }
  .objection-card p { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   FIN
   -------------------------------------------------------------------------- */

/* Print */
@media print {
  .topbar, .nav, .wa-float, .cta-final .form-box, .mobile-menu, .breadcrumb { display: none; }
  .prose { max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   GEO · grid de municipios (Bloque 3)
   ============================================================ */
.muni-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.muni-card {
  display: block;
  padding: var(--s-4);
  background: var(--fondo);
  border: 1px solid var(--gris-lt);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--noche);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.muni-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-deep);
  border-color: var(--verde);
}
.muni-card h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--noche);
  font-weight: 700;
}
.muni-card p {
  margin: 0 0 12px;
  font-size: .9rem;
  color: var(--gris);
}
.muni-card .muni-cta {
  font-size: .92rem;
  color: var(--verde-dk);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.muni-card .muni-cta svg { width: 14px; height: 14px; }
.muni-card-island {
  background: linear-gradient(135deg, var(--verde-lt) 0%, var(--blanco) 100%);
  border-color: var(--verde);
}
.muni-card-island h3 { color: var(--verde-dk); }

@media (max-width: 900px) {
  .muni-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .muni-grid { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* ============================================================
   BLOG · Artículos (Bloque 4)
   ============================================================ */

/* Layout artículo: contenido central + share lateral en desktop */
.blog-article-wrap {
  background: var(--blanco);
  padding: var(--s-5) 0;
}
.blog-article-grid {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-4);
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.blog-article-main { min-width: 0; }

/* Hero de artículo */
.article-hero-img {
  width: 100%;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--s-4);
  aspect-ratio: 1200/630;
  box-shadow: var(--sh-deep);
}
.article-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.article-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--verde-dk);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.article-h1 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--noche);
  letter-spacing: -0.01em;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--gris-lt);
  font-size: .92rem;
  color: var(--gris);
}
.article-meta svg { width: 16px; height: 16px; flex-shrink: 0; }
.article-meta-item { display: inline-flex; align-items: center; gap: 6px; }

/* Tabla de contenidos */
.article-toc {
  background: var(--verde-lt);
  border-left: 4px solid var(--verde);
  border-radius: var(--r-sm);
  padding: 24px 28px;
  margin: 0 0 var(--s-4);
}
.article-toc h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  color: var(--noche);
  font-weight: 700;
}
.article-toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: .96rem;
}
.article-toc li { margin-bottom: 6px; line-height: 1.4; }
.article-toc a {
  color: var(--noche-md);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.article-toc a:hover {
  color: var(--verde-dk);
  border-bottom-color: var(--verde-dk);
}

/* Cuerpo .prose mejoras para artículo */
.article-body { font-size: 1.05rem; }
.article-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 36px 0 14px;
  color: var(--noche);
  letter-spacing: -0.01em;
}
.article-body h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--noche);
}
.article-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--noche-md);
}
.article-body p {
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--noche-md);
}
.article-body ul, .article-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
  color: var(--noche-md);
}
.article-body li {
  margin-bottom: 8px;
  line-height: 1.6;
}
.article-body a {
  color: var(--verde-dk);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body img.body-img {
  width: 100%;
  border-radius: var(--r-sm);
  margin: 32px 0;
  box-shadow: var(--sh-light);
}
.article-body blockquote {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  margin: 28px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--verde);
  color: var(--noche-md);
}

/* Answer capsule dentro de blog (continúa con estilo existente) */
.article-body .answer-capsule { margin: 24px 0; }

/* Caja CTA dentro del artículo */
.article-cta-box {
  background: linear-gradient(135deg, var(--verde-lt) 0%, var(--blanco) 100%);
  border: 2px solid var(--verde);
  border-radius: var(--r-md);
  padding: 28px;
  margin: 40px 0;
  text-align: center;
}
.article-cta-box h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  color: var(--noche);
}
.article-cta-box p {
  margin: 0 0 18px;
  color: var(--gris);
  font-size: .98rem;
}

/* Caja autor */
.article-author {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--fondo);
  border: 1px solid var(--gris-lt);
  border-radius: var(--r-md);
  padding: 24px;
  margin: var(--s-5) 0 var(--s-4);
}
.article-author-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  font-weight: 800;
  font-size: 1.5rem;
}
.article-author-info h4 { margin: 0 0 6px; font-size: 1.05rem; color: var(--noche); }
.article-author-info p { margin: 0; font-size: .92rem; color: var(--gris); line-height: 1.5; }

/* Botones compartir · desktop floating lateral */
.share-buttons-wrap {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blanco);
  border: 1px solid var(--gris-lt);
  color: var(--gris);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  background: var(--verde);
  border-color: var(--verde);
  color: var(--blanco);
}
.share-btn svg { width: 18px; height: 18px; }
.share-buttons-inline {
  display: none;
  gap: 8px;
  margin: var(--s-4) 0;
  flex-wrap: wrap;
}
.share-buttons-inline .share-btn { width: 40px; height: 40px; }

/* Referencias */
.article-refs {
  background: var(--fondo);
  padding: 20px 24px;
  border-radius: var(--r-sm);
  margin: var(--s-4) 0;
}
.article-refs h3 { margin: 0 0 12px; font-size: 1.05rem; }
.article-refs ul { margin: 0; padding-left: 20px; font-size: .92rem; }
.article-refs li { margin-bottom: 6px; color: var(--gris); }

/* Artículos relacionados */
.related-articles {
  background: var(--fondo);
  padding: var(--s-5) 0;
  margin-top: var(--s-4);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.related-card {
  background: var(--blanco);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--noche);
  transition: transform .18s ease, box-shadow .18s ease;
  display: block;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--sh-deep); }
.related-card-img {
  width: 100%;
  aspect-ratio: 400/220;
  overflow: hidden;
  background: var(--gris-lt);
}
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-card-body { padding: 16px 20px; }
.related-card h3 { font-size: 1rem; margin: 0 0 6px; line-height: 1.35; }
.related-card .related-tag { font-size: .8rem; color: var(--verde-dk); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

/* Breakpoints blog */
@media (max-width: 900px) {
  .blog-article-grid { grid-template-columns: 1fr; max-width: 720px; }
  .share-buttons-wrap { display: none; }
  .share-buttons-inline { display: flex; }
  .article-h1 { font-size: 1.9rem; }
  .article-body h2 { font-size: 1.45rem; margin-top: 28px; }
  .related-grid { grid-template-columns: 1fr; gap: var(--s-3); }
}
@media (max-width: 540px) {
  .article-author { flex-direction: column; text-align: center; }
  .article-cta-box { padding: 22px 18px; }
  .article-h1 { font-size: 1.6rem; }
}

/* ============================================================
   BLOG · Ajustes espaciados (Bloque 4 · v2)
   ============================================================ */
/* Reducir aire general del artículo */
.blog-article-wrap { padding: var(--s-4) 0; }
.article-body h2 { margin: 28px 0 10px; }
.article-body h3 { margin: 20px 0 8px; }
.article-body h4 { margin: 16px 0 6px; }
.article-body p { margin: 0 0 14px; }
.article-body ul, .article-body ol { margin: 0 0 16px; }
.article-body img.body-img { margin: 24px 0; }
.article-body section { margin-top: 0; }
.article-body section + section { margin-top: 8px; }
.article-toc { margin: 0 0 var(--s-3); padding: 20px 24px; }
.article-meta { margin-bottom: var(--s-3); padding-bottom: 14px; }
.article-author { margin: var(--s-4) 0 var(--s-3); padding: 20px; }
.article-cta-box { margin: 28px 0; padding: 24px; }
.article-refs { margin: var(--s-3) 0; padding: 18px 22px; }
.related-articles { padding: var(--s-4) 0; }
.article-body .answer-capsule { margin: 16px 0 20px; padding: 14px 18px; }

/* Infografía SVG dentro del artículo */
.article-infographic {
  margin: 28px 0;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--noche) 0%, var(--noche-md) 100%);
  border-radius: var(--r-md);
  color: var(--blanco);
}
.article-infographic h3 {
  color: var(--blanco) !important;
  margin: 0 0 6px !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.article-infographic .infographic-sub {
  color: var(--gris-lt);
  font-size: .9rem;
  margin-bottom: 22px;
}
.article-infographic .infographic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.article-infographic .infographic-item {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.article-infographic .infographic-item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--verde);
}
.article-infographic .infographic-item.amber::before { background: var(--ambar); }
.article-infographic .infographic-pct {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--verde);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}
.article-infographic .infographic-item.amber .infographic-pct { color: var(--ambar); }
.article-infographic .infographic-label {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--blanco);
}
.article-infographic .infographic-detail {
  font-size: .85rem;
  color: var(--gris-lt);
  line-height: 1.4;
}
.article-infographic .infographic-total {
  margin-top: 18px;
  padding: 16px 20px;
  background: var(--verde);
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.article-infographic .infographic-total strong { font-size: 1.4rem; }
@media (max-width: 540px) {
  .article-infographic { padding: 22px 18px; }
  .article-infographic .infographic-grid { grid-template-columns: 1fr; gap: 12px; }
  .article-infographic .infographic-pct { font-size: 1.8rem; }
}

/* Caja autor con logo (sin avatar SM) */
.article-author-logo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: var(--fondo);
  border: 1px solid var(--gris-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.article-author-logo img {
  max-width: 70%;
  max-height: 70%;
  object-fit: contain;
}

/* ============================================================
   BLOG · Ajustes v3 (compactar espaciados + fix btn)
   ============================================================ */

/* Fix botón dentro de cuerpo del artículo (el .prose a estaba machacando) */
.article-body a.btn,
.article-cta-box a.btn,
.article-body .btn {
  text-decoration: none;
  border-bottom: none;
}
.article-body a.btn-primary,
.article-cta-box a.btn-primary {
  color: var(--noche);
}
.article-body a.btn-primary:hover,
.article-cta-box a.btn-primary:hover {
  color: var(--noche);
  text-decoration: none;
}

/* Compactar espaciados verticales — todo el cuerpo */
.blog-article-wrap { padding: var(--s-3) 0; }
.article-body > section,
.article-body section { margin: 0; }
.article-body > section + section,
.article-body section + section { margin-top: 0; }
.article-body h2 { margin: 22px 0 10px; }
.article-body > section:first-child h2,
.article-body section:first-of-type h2 { margin-top: 8px; }
.article-body h3 { margin: 18px 0 8px; }
.article-body h4 { margin: 14px 0 6px; }
.article-body p { margin: 0 0 12px; }
.article-body ul,
.article-body ol { margin: 0 0 12px; }
.article-body li { margin-bottom: 6px; }
.article-body img.body-img { margin: 18px 0; }
.article-body .answer-capsule { margin: 8px 0 14px; padding: 12px 16px; }
.article-infographic { margin: 18px 0; padding: 22px 22px; }
.article-cta-box { margin: 22px 0; padding: 22px; }
.article-toc { margin: 0 0 18px; padding: 16px 20px; }
.article-meta { margin-bottom: 14px; padding-bottom: 12px; }
.article-author { margin: 20px 0; padding: 16px; }
.article-refs { margin: 20px 0 0; padding: 16px 20px; }
.related-articles { padding: var(--s-3) 0; }

/* Conclusión específica con un poco más de respiro */
#conclusion { margin-top: 22px !important; }
#conclusion h2 { margin-top: 0; }
#conclusion p { margin-bottom: 12px; line-height: 1.65; }

/* Referencias como sección destacada */
.article-refs-section { margin: 20px 0; }
.article-refs-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-refs-section ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.article-refs-section li {
  position: relative;
  padding: 8px 0 8px 24px;
  border-bottom: 1px solid var(--gris-lt);
  font-size: .95rem;
}
.article-refs-section li:last-child { border-bottom: none; }
.article-refs-section li::before {
  content: "↗";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--verde-dk);
  font-weight: 700;
}
.article-refs-section li a {
  color: var(--noche-md);
  text-decoration: none;
  border-bottom: 1px dashed var(--gris-lt);
}
.article-refs-section li a:hover {
  color: var(--verde-dk);
  border-bottom-color: var(--verde-dk);
}

/* Mobile específico: aún más compacto */
@media (max-width: 540px) {
  .blog-article-wrap { padding: 24px 0; }
  .article-body h2 { margin: 18px 0 8px; font-size: 1.4rem; }
  .article-body h3 { margin: 14px 0 6px; }
  .article-infographic { margin: 14px 0; padding: 18px 16px; }
  .article-cta-box { margin: 18px 0; padding: 20px 18px; }
  .article-body .answer-capsule { margin: 6px 0 12px; padding: 10px 14px; }
  .article-toc { padding: 14px 18px; }
}

/* ============================================================
   BLOG · Reset agresivo v4 (FORZAR espaciados compactos)
   Sobrescribe TODAS las reglas previas duplicadas.
   ============================================================ */

/* Wrapper compacto */
.blog-article-wrap { padding: 24px 0 !important; }

/* Sections sin margin/padding propio: TODO el espacio lo controla el h2 */
.article-body section,
.article-body > section,
.article-body section + section { margin: 0 !important; padding: 0 !important; }

/* H2: poco aire arriba, casi nada abajo */
.article-body h2 {
  margin: 14px 0 8px !important;
}
.article-body section:first-of-type h2,
.article-body section:first-child h2 { margin-top: 4px !important; }
.article-body h3 { margin: 14px 0 6px !important; }
.article-body h4 { margin: 10px 0 4px !important; }

/* Párrafos y listas: spacing mínimo. Eliminar margin del último elemento */
.article-body p { margin: 0 0 10px !important; }
.article-body ul,
.article-body ol { margin: 0 0 10px !important; }
.article-body li { margin-bottom: 4px !important; }
.article-body p:last-child,
.article-body ul:last-child,
.article-body ol:last-child,
.article-body section > :last-child { margin-bottom: 0 !important; }

/* Answer capsule: poco margin */
.article-body .answer-capsule { margin: 6px 0 10px !important; padding: 12px 16px !important; }
.article-body .answer-capsule p { margin: 0 !important; }

/* Infografía y CTA: poco margin */
.article-infographic { margin: 14px 0 !important; }
.article-cta-box { margin: 16px 0 !important; padding: 20px !important; }

/* Tabla: poco margin */
.article-body .tabla-responsive { margin: 10px 0 6px !important; }
.article-body .tabla-nota-movil { margin: 0 0 6px !important; }

/* Imagen body: menos margin */
.article-body img.body-img { margin: 14px 0 !important; }

/* ToC compacto */
.article-toc { margin: 0 0 14px !important; padding: 14px 18px !important; }
.article-toc h2 { margin: 0 0 8px !important; }
.article-toc li { margin-bottom: 4px !important; }

/* Meta */
.article-meta { margin-bottom: 12px !important; padding-bottom: 10px !important; }

/* Caja autor y refs */
.article-author { margin: 16px 0 !important; padding: 16px !important; }
.article-refs-section { margin: 14px 0 0 !important; }
.article-refs-section h2 { margin-bottom: 4px !important; }

/* Mobile: aún más compacto */
@media (max-width: 540px) {
  .blog-article-wrap { padding: 12px 0 !important; }
  .article-body h2 { margin: 10px 0 6px !important; font-size: 1.35rem !important; }
  .article-body h3 { margin: 10px 0 4px !important; }
  .article-body .answer-capsule { margin: 4px 0 8px !important; padding: 10px 14px !important; }
  .article-infographic { margin: 10px 0 !important; padding: 16px !important; }
  .article-cta-box { margin: 12px 0 !important; padding: 18px 16px !important; }
  .article-toc { margin: 0 0 10px !important; padding: 12px 16px !important; }
  .article-body img.body-img { margin: 10px 0 !important; }
  .article-author { margin: 12px 0 !important; padding: 14px !important; }
}

/* Fix definitivo botón con texto azul (machaca .prose a underline) */
.article-body a.btn,
.article-body a.btn-primary,
.article-cta-box a.btn,
.article-cta-box a.btn-primary,
.article-body .btn,
.article-cta-box .btn {
  text-decoration: none !important;
  border-bottom: none !important;
  color: var(--noche) !important;
}
.article-body a.btn-primary:hover,
.article-cta-box a.btn-primary:hover {
  color: var(--noche) !important;
}

/* ============================================================
   BLOG · Ajuste final v5 — espaciado equilibrado
   Entre v3 (32px excesivo) y v4 (10px muy pegado)
   ============================================================ */
.blog-article-wrap { padding: 32px 0 !important; }

/* Desktop */
.article-body h2 { margin: 22px 0 10px !important; }
.article-body h3 { margin: 18px 0 8px !important; }
.article-body h4 { margin: 14px 0 6px !important; }
.article-body p { margin: 0 0 12px !important; }
.article-body ul,
.article-body ol { margin: 0 0 12px !important; }
.article-body li { margin-bottom: 6px !important; }
.article-body .answer-capsule { margin: 8px 0 14px !important; padding: 14px 18px !important; }
.article-infographic { margin: 20px 0 !important; padding: 24px !important; }
.article-cta-box { margin: 22px 0 !important; padding: 22px !important; }
.article-body img.body-img { margin: 18px 0 !important; }
.article-body .tabla-responsive { margin: 12px 0 8px !important; }
.article-toc { margin: 0 0 18px !important; padding: 16px 20px !important; }
.article-toc li { margin-bottom: 6px !important; }
.article-meta { margin-bottom: 16px !important; padding-bottom: 12px !important; }
.article-author { margin: 22px 0 !important; padding: 20px !important; }
.article-refs-section { margin: 22px 0 0 !important; }

/* Mobile (<540px) — ajustado al punto medio que pediste */
@media (max-width: 540px) {
  .blog-article-wrap { padding: 18px 0 !important; }
  .article-body h2 { margin: 16px 0 8px !important; font-size: 1.35rem !important; }
  .article-body h3 { margin: 14px 0 6px !important; }
  .article-body h4 { margin: 10px 0 4px !important; }
  .article-body p { margin: 0 0 10px !important; }
  .article-body .answer-capsule { margin: 6px 0 10px !important; padding: 12px 14px !important; }
  .article-infographic { margin: 14px 0 !important; padding: 18px 16px !important; }
  .article-cta-box { margin: 16px 0 !important; padding: 18px 16px !important; }
  .article-toc { margin: 0 0 14px !important; padding: 14px 16px !important; }
  .article-body img.body-img { margin: 14px 0 !important; }
  .article-author { margin: 18px 0 !important; padding: 16px !important; }
  .article-refs-section { margin: 18px 0 0 !important; }
}

/* ============================================================
   BLOG · Espaciado final v6 — más respiro
   ============================================================ */
.blog-article-wrap { padding: 44px 0 !important; }

/* Desktop */
.article-body h2 { margin: 36px 0 14px !important; }
.article-body h3 { margin: 28px 0 12px !important; }
.article-body h4 { margin: 22px 0 8px !important; }
.article-body p { margin: 0 0 16px !important; }
.article-body ul,
.article-body ol { margin: 0 0 16px !important; }
.article-body li { margin-bottom: 8px !important; }
.article-body .answer-capsule { margin: 14px 0 22px !important; padding: 16px 20px !important; }
.article-infographic { margin: 32px 0 !important; padding: 28px !important; }
.article-cta-box { margin: 32px 0 !important; padding: 26px !important; }
.article-body img.body-img { margin: 26px 0 !important; }
.article-body .tabla-responsive { margin: 18px 0 12px !important; }
.article-toc { margin: 0 0 28px !important; padding: 20px 24px !important; }
.article-toc li { margin-bottom: 8px !important; }
.article-meta { margin-bottom: 24px !important; padding-bottom: 16px !important; }
.article-author { margin: 36px 0 !important; padding: 24px !important; }
.article-refs-section { margin: 32px 0 0 !important; }

/* Mobile (<540px) */
@media (max-width: 540px) {
  .blog-article-wrap { padding: 28px 0 !important; }
  .article-body h2 { margin: 28px 0 12px !important; font-size: 1.4rem !important; }
  .article-body h3 { margin: 22px 0 10px !important; }
  .article-body h4 { margin: 16px 0 6px !important; }
  .article-body p { margin: 0 0 14px !important; }
  .article-body ul,
  .article-body ol { margin: 0 0 14px !important; }
  .article-body li { margin-bottom: 6px !important; }
  .article-body .answer-capsule { margin: 10px 0 18px !important; padding: 14px 16px !important; }
  .article-infographic { margin: 24px 0 !important; padding: 20px 18px !important; }
  .article-cta-box { margin: 26px 0 !important; padding: 22px 18px !important; }
  .article-body img.body-img { margin: 20px 0 !important; }
  .article-toc { margin: 0 0 22px !important; padding: 16px 20px !important; }
  .article-meta { margin-bottom: 18px !important; padding-bottom: 14px !important; }
  .article-author { margin: 28px 0 !important; padding: 20px !important; }
  .article-refs-section { margin: 26px 0 0 !important; }
}

/* ============================================================
   BLOG · H2 con estado activo durante la lectura
   ============================================================ */
.article-body h2 {
  transition: color 0.45s ease;
}
.article-body h2.is-reading {
  color: var(--verde-dk);
}
/* Respetar accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .article-body h2 { transition: none !important; }
}

/* ============================================================
   BLOG · H2 con subrayado animado en estado activo (opción B)
   ============================================================ */
.article-body h2 {
  position: relative;
}
.article-body h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 80%;
  max-width: 240px;
  height: 3px;
  background: var(--verde-dk);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-body h2.is-reading::after {
  transform: scaleX(1);
}

@media (max-width: 540px) {
  .article-body h2::after {
    bottom: -6px;
    max-width: 180px;
    height: 2.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-body h2::after { transition: none !important; }
}

/* ============================================================
   BLOG · Share buttons sticky en desktop al hacer scroll
   ============================================================ */
.share-buttons-wrap {
  position: sticky;
  top: calc(var(--topbar-h) + var(--nav-h) + 16px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h) - var(--nav-h) - 32px);
}

/* En mobile no aplicar sticky (ya hay inline horizontal abajo) */
@media (max-width: 1024px) {
  .share-buttons-wrap {
    position: static;
    max-height: none;
  }
}

/* ============================================================
   LANDINGS · Sección "Cómo funciona el autoconsumo" (SVG)
   ============================================================ */
.como-funciona {
  padding: 32px 0 64px;
  background: var(--blanco);
}
.como-funciona .section-head {
  text-align: center;
  margin-bottom: 48px;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
.flow-step {
  background: var(--blanco);
  border: 1px solid var(--gris-lt);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 43, 53, 0.08);
  border-color: var(--verde);
}
.flow-step .flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--noche);
  color: var(--ambar);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.flow-step .flow-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-lt);
  border-radius: 12px;
  color: var(--verde-dk);
}
.flow-step .flow-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}
.flow-step h3 {
  font-size: 1.05rem;
  color: var(--noche);
  margin: 0 0 8px;
  font-weight: 700;
}
.flow-step p {
  font-size: 0.88rem;
  color: var(--gris);
  line-height: 1.5;
  margin: 0;
}
/* Flecha entre tarjetas en desktop */
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EC4A5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translateY(-50%);
  z-index: 2;
  background-color: var(--blanco);
  border-radius: 50%;
  padding: 4px;
  box-sizing: content-box;
}
.flow-footnote {
  display: block;
  text-align: center !important;
  margin: 36px auto 0;
  max-width: 720px;
  font-size: 0.92rem;
  color: var(--gris);
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .flow-step:not(:last-child)::after {
    display: none;
  }
  .flow-step:nth-child(odd):not(:last-child)::after {
    display: block;
    top: 50%;
    right: -11px;
  }
}
@media (max-width: 540px) {
  .como-funciona { padding: 48px 0; }
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-step {
    padding: 22px 18px;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
  }
  .flow-step .flow-num {
    margin-bottom: 0;
    grid-row: 1 / 3;
  }
  .flow-step .flow-icon {
    display: none;
  }
  .flow-step h3 { font-size: 1rem; margin-bottom: 4px; }
  .flow-step p { font-size: 0.85rem; }
  .flow-step:not(:last-child)::after { display: none; }
}

/* ============================================================
   LANDINGS · Sección "Día a día con tu instalación" (lifestyle)
   ============================================================ */
.lifestyle-section {
  padding: 64px 0;
  background: var(--fondo);
}
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.lifestyle-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--gris-lt);
}
.lifestyle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lifestyle-content .eyebrow {
  display: inline-block;
  color: var(--verde-dk);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.lifestyle-content h2 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--noche);
  margin: 0 0 18px;
  font-weight: 800;
}
.lifestyle-content .lifestyle-lead {
  font-size: 1.05rem;
  color: var(--gris);
  line-height: 1.65;
  margin: 0 0 24px;
}
.lifestyle-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.lifestyle-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gris-lt);
  font-size: 0.98rem;
  color: var(--noche-md);
  line-height: 1.5;
}
.lifestyle-bullets li:last-child {
  border-bottom: none;
}
.lifestyle-bullets li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--verde-dk);
  margin-top: 2px;
}
.lifestyle-bullets li strong {
  color: var(--noche);
  font-weight: 700;
}
.lifestyle-content .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .lifestyle-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .lifestyle-content h2 {
    font-size: 1.6rem;
  }
}
@media (max-width: 540px) {
  .lifestyle-section { padding: 48px 0; }
  .lifestyle-grid { gap: 24px; }
  .lifestyle-content h2 {
    font-size: 1.5rem;
  }
  .lifestyle-content .lifestyle-lead {
    font-size: 0.98rem;
  }
}

/* ============================================================
   BLOG · Imágenes dentro del cuerpo del artículo
   ============================================================ */
.article-body-image {
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--gris-lt);
}
.article-body-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}
.article-body-image figcaption {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--gris);
  background: var(--fondo);
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 540px) {
  .article-body-image {
    margin: 28px 0;
    border-radius: 12px;
  }
  .article-body-image figcaption {
    font-size: 0.82rem;
    padding: 10px 14px;
  }
}

/* ============================================================
   BLOG · Página de listado /blog/
   ============================================================ */

/* Hero del listado */
.blog-hero {
  padding: var(--s-8) 0 var(--s-7);
  background: linear-gradient(135deg, #e8faf7 0%, #fff 100%);
  text-align: center;
}
.blog-hero .eyebrow-light {
  display: inline-block;
  background: var(--verde);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 16px;
  color: var(--noche);
}
.blog-hero-sub {
  max-width: 680px;
  margin: 0 auto;
  color: var(--gris);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Filtros */
.blog-filters-section {
  padding: var(--s-5) 0 var(--s-3);
  border-bottom: 1px solid var(--gris-lt);
}
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--gris-lt);
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--noche-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.blog-filter:hover {
  border-color: var(--verde);
  color: var(--verde-dk);
}
.blog-filter.is-active {
  background: var(--noche);
  border-color: var(--noche);
  color: white;
}
.blog-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--gris-lt);
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gris);
}
.blog-filter.is-active .blog-filter-count {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* Listado de tarjetas */
.blog-listing-section {
  padding: var(--s-6) 0 var(--s-8);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--gris-lt);
}
.blog-card.is-hidden { display: none !important; }
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(26, 43, 53, 0.08);
}
.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gris-lt);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.04);
}
.blog-card-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--noche);
  color: var(--ambar);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card-body {
  padding: 22px;
}
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--noche);
  margin: 0 0 14px;
  /* Limitar a 3 líneas */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gris);
  margin: 0;
}
.blog-card-sep {
  opacity: 0.5;
}

/* Botón cargar más */
.blog-load-more-wrap {
  text-align: center;
}
#blog-load-more {
  min-width: 220px;
}
.blog-no-results {
  text-align: center;
  color: var(--gris);
  padding: 40px 20px;
  font-size: 1.05rem;
}

/* Responsive filtros */
@media (max-width: 540px) {
  .blog-filters {
    gap: 8px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .blog-filter {
    padding: 8px 14px;
    font-size: 0.86rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .blog-hero { padding: var(--s-6) 0 var(--s-5); }
  .blog-listing-section { padding: var(--s-5) 0 var(--s-6); }
}

/* ============================================================
   LEGAL · Páginas estáticas (aviso legal, privacidad, cookies)
   ============================================================ */
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

.legal-hero {
  padding: var(--s-7) 0 var(--s-5);
  background: linear-gradient(135deg, #e8faf7 0%, #fff 100%);
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--noche);
  margin: 0;
}

.legal-content {
  padding: var(--s-6) 0 var(--s-8);
}
.legal-content h2 {
  font-size: 1.4rem;
  color: var(--noche);
  margin: var(--s-5) 0 var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--gris-lt);
}
.legal-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: var(--s-3);
}
.legal-content h3 {
  font-size: 1.15rem;
  color: var(--noche-md);
  margin: var(--s-4) 0 var(--s-2);
}
.legal-content p,
.legal-content li {
  line-height: 1.7;
  color: var(--noche-md);
  font-size: 1rem;
}
.legal-content p {
  margin: 0 0 var(--s-3);
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 var(--s-3);
  padding-left: 24px;
}
.legal-content li {
  margin-bottom: 8px;
}
.legal-content a {
  color: var(--verde-dk);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--verde);
}
.legal-content strong {
  color: var(--noche);
  font-weight: 700;
}
.legal-content .tabla-responsive {
  margin: var(--s-3) 0 var(--s-4);
}

/* ============================================================
   GRACIAS · Página post-formulario
   ============================================================ */
.gracias-hero-block {
  text-align: center;
  padding: var(--s-5) 0 var(--s-5);
}
.gracias-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--s-3);
}
.gracias-icon svg {
  width: 100%;
  height: 100%;
}
.gracias-hero-block h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--noche);
  margin: 0 0 var(--s-2);
}
.gracias-sub {
  font-size: 1.15rem;
  color: var(--gris);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.gracias-pasos {
  margin: var(--s-5) 0;
  padding: var(--s-4);
  background: var(--fondo);
  border-radius: 16px;
}
.gracias-pasos h2 {
  font-size: 1.3rem;
  color: var(--noche);
  margin: 0 0 var(--s-3);
  text-align: center;
  border-top: none;
  padding-top: 0;
}
.gracias-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.gracias-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
  margin: 0;
  line-height: 1.6;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--verde);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.gracias-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: var(--s-5);
}
@media (max-width: 768px) {
  .gracias-cta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.gracias-cta-card {
  padding: var(--s-4);
  background: white;
  border: 1px solid var(--gris-lt);
  border-radius: 16px;
  text-align: center;
}
.gracias-cta-card h3 {
  font-size: 1.1rem;
  color: var(--noche);
  margin: 0 0 var(--s-2);
}
.gracias-cta-card p {
  color: var(--gris);
  margin: 0 0 var(--s-3);
  font-size: 0.95rem;
}
.gracias-cta-card .btn {
  width: 100%;
}

/* Responsive de páginas legales */
@media (max-width: 540px) {
  .legal-hero {
    padding: var(--s-5) 0 var(--s-4);
  }
  .legal-content {
    padding: var(--s-4) 0 var(--s-6);
  }
  .legal-content h2 {
    font-size: 1.25rem;
    margin-top: var(--s-4);
  }
  .gracias-pasos {
    padding: var(--s-3);
  }
}

/* ============================================================
   404 · Página de error personalizada
   ============================================================ */
.error-page {
  background: var(--blanco);
}

.error-hero {
  padding: var(--s-8) 0 var(--s-7);
  background: linear-gradient(135deg, #e8faf7 0%, #fff 60%, #fff7e6 100%);
  overflow: hidden;
}
.error-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}
@media (max-width: 900px) {
  .error-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
    text-align: center;
  }
}

.error-eyebrow {
  display: inline-block;
  background: var(--ambar);
  color: var(--noche);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.error-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--noche);
  margin: 0 0 18px;
  font-weight: 800;
}

.error-sub {
  font-size: 1.1rem;
  color: var(--gris);
  line-height: 1.6;
  margin: 0 0 var(--s-4);
  max-width: 500px;
}
@media (max-width: 900px) {
  .error-sub { margin-left: auto; margin-right: auto; }
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .error-actions { justify-content: center; }
}
.error-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.error-actions .btn svg {
  width: 18px;
  height: 18px;
}

.error-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-hero-visual svg {
  width: 100%;
  max-width: 380px;
  height: auto;
}
@media (max-width: 540px) {
  .error-hero-visual svg { max-width: 280px; }
}

/* Enlaces útiles */
.error-links {
  padding: var(--s-7) 0;
}
.error-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--noche);
  margin: 0 0 12px;
}
.error-section-sub {
  text-align: center;
  color: var(--gris);
  margin: 0 0 var(--s-5);
  font-size: 1.05rem;
}

.error-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .error-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .error-grid { grid-template-columns: 1fr; }
}

.error-card {
  display: block;
  padding: 24px;
  background: white;
  border: 1px solid var(--gris-lt);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}
.error-card:hover {
  transform: translateY(-4px);
  border-color: var(--verde);
  box-shadow: 0 12px 28px rgba(46, 196, 165, 0.12);
}

.error-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-lt);
  color: var(--verde-dk);
  border-radius: 12px;
  margin-bottom: 16px;
}
.error-card-icon svg {
  width: 26px;
  height: 26px;
}
.error-card h3 {
  font-size: 1.1rem;
  color: var(--noche);
  margin: 0 0 8px;
  font-weight: 700;
}
.error-card p {
  font-size: 0.92rem;
  color: var(--gris);
  margin: 0;
  line-height: 1.5;
}

/* Lista de contacto en CTA del 404 */
.error-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-3);
}
.error-contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gris-lt);
}
.error-contact-list li:last-child {
  border-bottom: none;
}
.error-contact-list svg {
  width: 22px;
  height: 22px;
  color: var(--verde-dk);
  flex-shrink: 0;
}
.error-contact-list strong {
  display: block;
  color: var(--gris);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.error-contact-list a {
  color: var(--noche);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}
.error-contact-list a:hover {
  color: var(--verde-dk);
}

@media (max-width: 540px) {
  .error-hero { padding: var(--s-5) 0 var(--s-4); }
  .error-links { padding: var(--s-5) 0; }
}

/* ============================================================
   FAQ · /preguntas-frecuentes/
   ============================================================ */
.faq-pills-bar {
  background: white;
  border-bottom: 1px solid var(--gris-lt);
  padding: 18px 0;
  position: sticky;
  top: 114px;
  z-index: 50;
}
.faq-pills-bar nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.faq-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--fondo);
  color: var(--noche);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid var(--gris-lt);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.faq-pill:hover {
  background: var(--verde-lt);
  border-color: var(--verde);
  color: var(--verde-dk);
}

.faq-content {
  padding: var(--s-6) 0 var(--s-7);
}
.faq-category {
  margin-bottom: 40px;
  scroll-margin-top: 180px;
}
.faq-category:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  .faq-category {
    margin-bottom: var(--s-4);
  }
}
.faq-cat-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--verde);
}
.faq-cat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-lt);
  color: var(--verde-dk);
  border-radius: 12px;
  flex-shrink: 0;
}
.faq-cat-icon svg {
  width: 24px;
  height: 24px;
}
.faq-cat-head h2 {
  font-size: 1.4rem;
  color: var(--noche);
  margin: 0;
  border-top: none;
  padding-top: 0;
}
.faq-category .faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faq-category .faq-item {
  background: white;
  border: 1px solid var(--gris-lt);
  border-radius: 12px;
  overflow: hidden;
}
.faq-category .faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--noche);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-category .faq-item summary::-webkit-details-marker { display: none; }
.faq-category .faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--verde-dk);
  font-weight: 700;
  flex-shrink: 0;
}
.faq-category .faq-item[open] summary::after { content: "−"; }
.faq-category .faq-item[open] summary {
  border-bottom: 1px solid var(--gris-lt);
}
.faq-category .faq-item .faq-respuesta {
  padding: 16px 20px;
}
.faq-category .faq-item .faq-respuesta p {
  margin: 0;
  color: var(--gris);
  line-height: 1.7;
}

/* ============================================================
   GLOSARIO · /glosario-energia-solar/
   ============================================================ */
.glossary-nav-bar {
  background: white;
  border-bottom: 1px solid var(--gris-lt);
  padding: 18px 0;
  position: sticky;
  top: 114px;
  z-index: 50;
}
.glossary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.glossary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fondo);
  color: var(--noche);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--gris-lt);
  transition: all 0.15s;
}
.glossary-pill:hover:not(.disabled) {
  background: var(--verde);
  border-color: var(--verde);
  color: white;
}
.glossary-pill.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.glossary-content {
  padding: var(--s-6) 0 var(--s-7);
}
.glossary-letter {
  margin-bottom: var(--s-5);
  scroll-margin-top: 180px;
}
.glossary-letter-head {
  display: flex;
  align-items: center;
  margin-bottom: var(--s-3);
}
.big-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--verde);
  color: white;
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 12px;
}
.glossary-letter-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gris-lt);
  margin-left: 16px;
}
.glossary-terms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.glossary-term {
  background: white;
  border: 1px solid var(--gris-lt);
  border-radius: 12px;
  padding: 20px 24px;
  scroll-margin-top: 180px;
}
.glossary-term h3 {
  font-size: 1.15rem;
  color: var(--noche);
  margin: 0 0 8px;
}
.glossary-term p {
  margin: 0;
  color: var(--gris);
  line-height: 1.7;
}

/* ============================================================
   QUIÉNES SOMOS · /quienes-somos/
   ============================================================ */
.about-content {
  padding: var(--s-6) 0 var(--s-7);
}
.about-block {
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--gris-lt);
}
.about-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.about-eyebrow {
  display: inline-block;
  background: var(--verde-lt);
  color: var(--verde-dk);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.about-block h2 {
  font-size: 1.7rem;
  color: var(--noche);
  margin: 0 0 8px;
  border-top: none;
  padding-top: 0;
}
.about-role {
  color: var(--verde-dk);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 var(--s-3);
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: var(--s-3);
  padding: 20px;
  background: var(--fondo);
  border-radius: 12px;
}
.about-meta .meta-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gris);
  font-weight: 700;
  margin-bottom: 4px;
}
.about-meta strong {
  color: var(--noche);
  font-size: 0.95rem;
  line-height: 1.4;
}
.about-meta a {
  color: var(--verde-dk);
  text-decoration: none;
}
.about-meta a:hover {
  text-decoration: underline;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: var(--s-3);
}
@media (max-width: 768px) {
  .about-pillars { grid-template-columns: 1fr; }
}
.about-pillar {
  padding: 24px;
  background: white;
  border: 1px solid var(--gris-lt);
  border-radius: 12px;
}
.pillar-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-lt);
  color: var(--verde-dk);
  border-radius: 10px;
  margin-bottom: 16px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.about-pillar h3 {
  font-size: 1.05rem;
  color: var(--noche);
  margin: 0 0 8px;
}
.about-pillar p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--gris);
  line-height: 1.6;
}

.about-list {
  margin: var(--s-2) 0 0;
  padding-left: 0;
  list-style: none;
}
.about-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gris-lt);
  color: var(--gris);
  line-height: 1.7;
}
.about-list li:last-child { border-bottom: none; }
.about-list strong { color: var(--noche); }

/* ============================================================
   CONTACTO · /contacto/
   ============================================================ */
.contact-grid-section {
  padding: var(--s-6) 0 var(--s-5);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info-card {
  background: white;
  border: 1px solid var(--gris-lt);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.contact-info-card.contact-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border-color: transparent;
}
.contact-info-card.contact-whatsapp .contact-icon {
  background: rgba(255,255,255,0.2);
  color: white;
}
.contact-info-card.contact-whatsapp h2,
.contact-info-card.contact-whatsapp p,
.contact-info-card.contact-whatsapp a {
  color: white;
}
.contact-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--verde-lt);
  color: var(--verde-dk);
  border-radius: 50%;
  margin-bottom: 16px;
}
.contact-icon svg {
  width: 28px;
  height: 28px;
}
.contact-info-card h2 {
  font-size: 1.2rem;
  color: var(--noche);
  margin: 0 0 8px;
  border-top: none;
  padding-top: 0;
}
.contact-info-card p {
  color: var(--gris);
  font-size: 0.95rem;
  margin: 0 0 16px;
  line-height: 1.5;
}
.contact-big-link {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--verde-dk);
  text-decoration: none;
  margin-bottom: 8px;
  word-break: break-word;
}
.contact-big-link:hover {
  text-decoration: underline;
}
.contact-small {
  font-size: 0.85rem;
  color: var(--gris);
  margin: 0;
}
.contact-info-card.contact-whatsapp .contact-big-link {
  color: white;
  text-decoration: underline;
}
.contact-info-card.contact-whatsapp .contact-small {
  color: rgba(255,255,255,0.85);
}

/* Hero sub para todas las nuevas páginas */
.legal-hero .hero-sub {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: 1.1rem;
  color: var(--gris);
  line-height: 1.6;
  text-align: center;
}
.legal-hero .eyebrow {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}
.legal-hero h1 {
  text-align: center;
}

@media (max-width: 768px) {
  .faq-pills-bar, .glossary-nav-bar { top: 64px; }
  .big-letter { width: 44px; height: 44px; font-size: 1.4rem; }
  .faq-category { margin-bottom: 32px; }
  .faq-cat-head { margin-bottom: 16px; padding-bottom: 10px; }
  .faq-cat-head h2 { font-size: 1.2rem; }
  .faq-cat-icon { width: 40px; height: 40px; }
  .faq-cat-icon svg { width: 20px; height: 20px; }
}

/* ============================================================
   COOKIE CONSENT BANNER · Trilingüe ES/EN/DE
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  max-width: 1100px;
  margin: 0 auto;
  background: #1A2B35;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .15);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), opacity .32s ease;
  pointer-events: auto;
}

.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 280px;
}

.cookie-banner-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #FFB830;
  letter-spacing: .02em;
}

.cookie-banner-message {
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
  color: #dce8e4;
}

.cookie-banner-more {
  color: #2EC4A5;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
}

.cookie-banner-more:hover {
  color: #6ee0c5;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 11px 22px;
  border-radius: 50px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  min-height: 44px; /* touch target */
}

.cookie-btn-primary {
  background: #2EC4A5;
  color: #1A2B35;
}

.cookie-btn-primary:hover {
  background: #6ee0c5;
  transform: translateY(-1px);
}

.cookie-btn-secondary {
  background: transparent;
  color: #dce8e4;
  border-color: rgba(220, 232, 228, .3);
}

.cookie-btn-secondary:hover {
  background: rgba(220, 232, 228, .08);
  border-color: rgba(220, 232, 228, .5);
}

.cookie-btn:focus-visible {
  outline: 2px solid #FFB830;
  outline-offset: 2px;
}

/* Mobile */
@media (max-width: 720px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    border-radius: 14px;
  }
  .cookie-banner-inner {
    padding: 18px 20px;
    gap: 16px;
  }
  .cookie-banner-title {
    font-size: .95rem;
  }
  .cookie-banner-message {
    font-size: .85rem;
  }
  .cookie-banner-actions {
    width: 100%;
    flex-direction: column-reverse; /* aceptar arriba en móvil */
  }
  .cookie-btn {
    width: 100%;
  }
}

/* Si el WhatsApp flotante está visible, no se solape */
@media (max-width: 720px) {
  body:has(.cookie-banner.is-visible) .wa-float {
    bottom: 200px;
    transition: bottom .32s ease;
  }
}

/* Respeta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: opacity .15s ease;
    transform: none;
  }
}


.footer-coverage {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-coverage .fb-title {
  color: #fff;
  font-weight: 700;
  margin-bottom: var(--s-2);
  font-size: .95rem;
}
.footer-coverage-list {
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.9;
  margin: 0;
}
.footer-coverage-list a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
}
.footer-coverage-list a:hover {
  color: var(--ambar);
  text-decoration: underline;
}

/* Imagen inline dentro de artículos del blog */
.article-img-inline {
  margin: 32px 0;
  text-align: center;
}
.article-img-inline img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.article-img-inline figcaption {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 12px;
  font-style: italic;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}


/* ================================================================
   STICKY SHARE BUTTONS · refuerzo robusto (mayo 2026)
   Garantiza que el sidebar de compartir se quede fijo al hacer scroll
   ================================================================ */
@media (min-width: 1025px) {
  .share-buttons-wrap {
    position: sticky !important;
    top: 130px !important;
    align-self: start !important;
    height: fit-content !important;
    max-height: calc(100vh - 150px) !important;
    z-index: 5 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
  }
}

@media (max-width: 1024px) {
  .share-buttons-wrap {
    display: none !important;
  }
  .share-buttons-inline {
    display: flex !important;
  }
}


/* ━━━ QUE-TENER: 4 feature cards grid 2x2 sin imagen ━━━ */
.que-tener-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.que-tener-card {
  background: var(--blanco);
  border: 1px solid var(--gris-lt);
  border-radius: 16px;
  padding: 28px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.que-tener-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
  border-color: var(--verde);
}

.que-tener-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--verde-dk);
}

.que-tener-icon svg {
  width: 28px;
  height: 28px;
}

.que-tener-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--noche);
  margin: 0 0 10px;
  line-height: 1.3;
}

.que-tener-card p {
  font-size: 0.95rem;
  color: var(--gris);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .que-tener-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .que-tener-card {
    padding: 22px 20px;
  }
}


/* ━━━ PROYECTOS · carrusel de trabajos reales ━━━ */
.proyectos-section {
  padding: 72px 0;
  background: var(--blanco);
}

.proyectos-carrusel {
  position: relative;
  margin: 40px 0 24px;
}

.proyectos-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.proyectos-track::-webkit-scrollbar { display: none; }

.proyecto-card {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--blanco);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.proyecto-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.1);
}

.proyecto-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.proyecto-card figcaption {
  padding: 16px 18px;
  font-size: 0.92rem;
  color: var(--noche);
  line-height: 1.4;
  background: var(--blanco);
}
.proyecto-card figcaption strong {
  color: var(--verde-dk);
  font-weight: 700;
}

.proyectos-btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ambar);
  color: var(--blanco);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  z-index: 5;
  transition: background .2s, transform .2s;
}
.proyectos-btn:hover {
  background: #d97706;
  transform: translateY(-50%) scale(1.05);
}
.proyectos-btn:focus-visible {
  outline: 3px solid var(--verde-dk);
  outline-offset: 2px;
}
.proyectos-btn svg { width: 22px; height: 22px; }
.proyectos-btn-prev { left: -16px; }
.proyectos-btn-next { right: -16px; }

.proyectos-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.proyectos-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--gris-lt);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.proyectos-dot:hover { background: var(--gris); }
.proyectos-dot.active {
  background: var(--ambar);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .proyecto-card { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 600px) {
  .proyectos-section { padding: 56px 0; }
  .proyecto-card { flex: 0 0 85%; }
  .proyectos-btn-prev { left: 4px; }
  .proyectos-btn-next { right: 4px; }
  .proyectos-btn { width: 42px; height: 42px; }
  .proyecto-card figcaption { font-size: 0.88rem; padding: 14px 16px; }
}



/* ━━━ LIGHTBOX para el carrusel de proyectos ━━━ */
.lightbox {
  position: fixed;
  inset: 0;
  background: #0a0e1a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 80px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.lightbox-caption {
  color: #fff;
  font-size: 1rem;
  text-align: center;
  max-width: 720px;
  line-height: 1.5;
  pointer-events: auto;
}
.lightbox-caption strong {
  color: var(--ambar);
  font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 2;
  padding: 0;
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--ambar);
  border-color: var(--ambar);
}
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid var(--ambar);
  outline-offset: 2px;
}
.lightbox-close svg,
.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

.lightbox-close { top: 28px; right: 28px; }
.lightbox-prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 28px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover { transform: scale(1.05); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

.lightbox-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 100px;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox { padding: 20px 12px 70px; }
  .lightbox-close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; width: 44px; height: 44px; }
  .lightbox-next { right: 8px; width: 44px; height: 44px; }
  .lightbox-img { max-height: 68vh; }
  .lightbox-caption { font-size: 0.92rem; padding: 0 16px; }
  .lightbox-counter { bottom: 16px; font-size: 0.85rem; }
}


/* ━━━ Infographic-grid modificador 3 columnas (responsive correcto) ━━━ */
.article-infographic .infographic-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 540px) {
  .article-infographic .infographic-grid--3col {
    grid-template-columns: 1fr;
  }
}
