/* ==========================================================================
   AUTOCONSUMO ECO-NÓMICO — Landing Page
   Tipografía: Fraunces (titulares) + Manrope (cuerpo/UI)
   Paleta: navy + verde eco (logo) + solar gold + cream
   ========================================================================== */

:root {
  /* Marca derivada del logo: navy oscuro + verde eco vibrante */
  --navy-900: #0E1F3D;
  --navy-800: #142A52;
  --navy-700: #1B3866;
  --navy-100: #DDE5F2;

  --green-600: #6CA934;
  --green-500: #8BC34A;
  --green-400: #A6D26A;
  --green-50:  #EEF7DD;

  --solar-600: #C68A1E;
  --solar-500: #D99A2B;
  --solar-300: #F0C063;

  --cream:     #FAF7F0;
  --cream-2:   #F4EFE3;
  --sand:      #E8DDC7;
  --ink:       #17211B;
  --ink-soft:  #3A4742;
  --gray:      #5F665F;
  --gray-soft: #8C928D;
  --line:      #E5DFD0;
  --white:     #FFFFFF;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(14, 31, 61, 0.06);
  --shadow:    0 12px 32px rgba(14, 31, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(14, 31, 61, 0.18);

  --easing: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.25s;
  --t-med:  0.5s;
  --t-slow: 0.8s;

  --container: 1180px;
  --gutter: 24px;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body:    "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  padding-top: 112px; /* compensa header fixed (logo 96px + padding 2×8px) */
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 720px) {
  body { padding-top: 84px; } /* logo 68px + padding */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--navy-900);
  margin: 0;
  line-height: 1.1;
}
p { margin: 0; }

/* Container — anti "pegado a la izquierda" */
.container {
  width: min(var(--container), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 12px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Selection */
::selection { background: var(--green-500); color: var(--navy-900); }

/* Eyebrow */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-900);        /* navy sobre green-50 → ratio ~8:1, WCAG AAA */
  margin-bottom: 18px;
  padding: 6px 12px;
  background: var(--green-50);
  border-radius: 999px;
}
.eyebrow-dark { color: var(--navy-900); background: rgba(217,154,43,.18); }
.eyebrow-light { color: var(--solar-300); background: rgba(240,192,99,.15); }

.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform var(--t-fast) var(--easing),
              box-shadow var(--t-fast) var(--easing),
              background-color var(--t-fast) var(--easing),
              color var(--t-fast) var(--easing);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(14, 31, 61, 0.22);
}
.btn-primary:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(14, 31, 61, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-ghost-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.btn-solar {
  background: var(--solar-500);
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgba(217, 154, 43, 0.35);
}
.btn-solar:hover { background: var(--solar-600); color: var(--white); transform: translateY(-2px); }

.btn:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(250, 247, 240, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}
.header.scrolled {
  background: rgba(250, 247, 240, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(14, 31, 61, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
}
.brand { display: inline-flex; align-items: center; margin-left: -8px; }
.brand img { height: 96px; width: auto; display: block; }
@media (max-width: 720px) {
  .brand img { height: 68px; }
}

.nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  position: relative;
  transition: color var(--t-fast);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--green-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--easing);
}
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-900);
}
.phone-link svg { color: var(--green-600); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  top: 84px; left: 0; right: 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
  z-index: 99;
}
.mobile-drawer ul { display: flex; flex-direction: column; gap: 14px; }
.mobile-drawer a { font-size: 18px; font-weight: 600; color: var(--navy-900); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(139, 195, 74, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(217, 154, 43, 0.14), transparent 60%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(14, 31, 61, 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 12px 0 22px;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--green-600);
}
.hero-text .lead { margin-bottom: 32px; }

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-bottom: 16px;
}
.hero-trust li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.hero-trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 14px;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(139, 195, 74, 0.18);
}
.hero-trust li strong { color: var(--navy-900); font-weight: 700; }
.hero-micro { font-size: 14px; color: var(--gray); }

.hero-visual {
  position: relative;
}
.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 40px 80px rgba(14, 31, 61, 0.35), 0 0 0 1px rgba(108, 169, 52, 0.12);
}
.hero-image-wrap:hover {
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg);
}
.hero-image-wrap img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.floating-card {
  position: absolute;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 2;
}
.floating-card-top {
  top: 24px;
  left: -28px;
  max-width: 240px;
}
.floating-card-bottom {
  bottom: 28px;
  right: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.fc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 4px;
}
.fc-value {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
}
.fc-value strong { color: var(--navy-900); font-size: 15px; }

.rating-stars { display: inline-flex; gap: 2px; color: var(--solar-500); }
.rating-stars svg { width: 16px; height: 16px; }

/* Stats bar hero */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.5rem;
  border: 1px solid rgba(14, 31, 61, 0.12);
  border-radius: var(--radius);
  background: rgba(250, 247, 240, 0.75);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.stat-item {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid rgba(14, 31, 61, 0.1);
  transition: background 0.2s ease;
  cursor: default;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(108, 169, 52, 0.06); }
.stat-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--solar-600);       /* oscurecido para mejorar contraste WCAG */
  line-height: 1;
  margin-bottom: 0.25rem;
  font-family: var(--font-heading);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  font-weight: 400;
  line-height: 1.3;
}

/* ==========================================================================
   TRUST BAND
   ========================================================================== */
.trust-band {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trust-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: transform var(--t-fast) var(--easing), box-shadow var(--t-fast);
}
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-card h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.trust-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ==========================================================================
   SECCIONES GENÉRICAS
   ========================================================================== */
section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 12px auto 16px;
  max-width: 22ch;
}
.section-head .lead { margin-inline: auto; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }

/* ==========================================================================
   PROBLEMA
   ========================================================================== */
.problem { padding: 120px 0; background: var(--cream); }
.problem-text h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  margin-bottom: 24px;
}
.problem-text p { margin-bottom: 16px; color: var(--ink-soft); }
.problem-text .highlight {
  margin-top: 24px;
  padding: 18px 22px;
  background: var(--green-50);
  border-left: 4px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--navy-900);
  font-style: italic;
}

.problem-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.problem-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--solar-600);
  margin-bottom: 20px;
}
.check-list li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  color: var(--ink);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 22px; height: 22px;
  background: var(--green-500);
  border-radius: 50%;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 21px;
  width: 10px; height: 5px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

/* ==========================================================================
   ANALYSIS
   ========================================================================== */
.analysis { background: var(--white); }
.analysis-image .image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--cream-2);
}
.analysis-image img { width: 100%; height: auto; display: block; }
.analysis-image .frame-tag {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}
.image-frame-second {
  margin-top: 20px;
}

.analysis-text h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  margin-bottom: 18px;
}
.analysis-text .lead { margin-bottom: 18px; }
.analysis-text p { margin-bottom: 16px; color: var(--ink-soft); }
.analysis-text .strong-line {
  margin: 24px 0;
  padding: 18px 20px;
  background: var(--cream);
  border-left: 4px solid var(--solar-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-weight: 600;
  color: var(--navy-900);
}

.steps-mini {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.steps-mini li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color var(--t-fast), transform var(--t-fast) var(--easing);
}
.steps-mini li:hover { border-color: var(--green-500); transform: translateY(-2px); }
.step-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--green-600);
  line-height: 1;
}
.steps-mini h4 { font-family: var(--font-body); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.steps-mini p { font-size: 14.5px; color: var(--ink-soft); }

/* ==========================================================================
   CALCULADORA
   ========================================================================== */
.calculator-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.calc-field { display: flex; flex-direction: column; gap: 8px; }
.calc-field label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
.calc-field select,
.form-row input,
.form-row select,
.form-row textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast);
  font-family: var(--font-body);
}
.calc-field select:focus,
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
}

.calc-result {
  background: var(--cream);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
}
.calc-result h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 12px;
}
.calc-result-empty p { color: var(--gray); font-size: 15px; }

.calc-result.ready {
  background: var(--navy-900);
  border: none;
  text-align: left;
  align-items: stretch;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--cream);
}
.calc-result.ready h3 { color: var(--white); }
.calc-result.ready p { color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.calc-result.ready .calc-saving {
  margin: 16px 0;
  padding: 16px 20px;
  background: rgba(139, 195, 74, 0.15);
  border-left: 3px solid var(--green-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--white);
}
.calc-result.ready .calc-saving strong { color: var(--green-400); }
.calc-result.ready .calc-disclaimer {
  font-size: 12.5px;
  color: rgba(255,255,255,0.6);
  margin-top: 16px;
  font-style: italic;
}

/* ── Calculadora: nuevos elementos ── */

/* Label de campo */
.calc-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 2px;
}
.calc-req {
  color: var(--solar-500);
  text-decoration: none;
  font-style: normal;
  margin-left: 2px;
}
.calc-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--gray-light, #9ca3af);
}
.calc-hint {
  font-size: 12.5px;
  color: var(--gray);
  margin: 0;
  font-style: italic;
}
.calc-legal {
  font-size: 11.5px;
  color: var(--gray);
  text-align: center;
  margin-top: -8px;
}

/* Pills selector */
.calc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 18px;
  border: 1.5px solid var(--line);
  border-radius: 40px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  line-height: 1.2;
  white-space: nowrap;
}
.calc-pill small {
  font-size: 10.5px;
  font-weight: 400;
  color: var(--gray);
  text-transform: none;
  display: block;
}
.calc-pill:hover {
  border-color: var(--green-500);
  background: var(--white);
}
.calc-pill.active {
  border-color: var(--green-600);
  background: var(--green-500);
  color: var(--navy-900);        /* navy sobre green-500 → ratio ~8:1, WCAG AAA */
}
.calc-pill.active small { color: var(--navy-800); }

/* Pills tamaño pequeño (potencias) */
.calc-pills-sm .calc-pill {
  padding: 8px 14px;
  font-size: 13px;
}

/* Select personalizado */
.calc-select-wrap {
  position: relative;
}
.calc-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color var(--t-fast);
  font-family: var(--font-body);
  appearance: none;
  cursor: pointer;
}
.calc-select:focus {
  outline: none;
  border-color: var(--green-500);
  background: var(--white);
}

/* Divisor entre obligatorios y opcionales */
.calc-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 4px 0 -4px;
}
.calc-divider::before,
.calc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Resultado vacío */
.calc-empty-icon {
  width: 68px;
  height: auto;
  color: var(--green-500);
  margin: 0 auto 16px;
  display: block;
}
.calc-empty-icon svg {
  width: 100%;
  height: auto;
  display: block;
}
.calc-preview-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.calc-preview-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.calc-preview-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

/* Resultado listo — cabecera */
.calc-res-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 20px;
}
.calc-res-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-400, #8bc34a);
  display: block;
  margin-bottom: 8px;
}
.calc-res-price {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.calc-res-price-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

/* Grid de stats */
.calc-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.calc-stat {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cstat-label {
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.3;
}
.cstat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.cstat-green { color: var(--green-400, #8bc34a); }
.cstat-highlight {
  grid-column: 1 / -1;
  background: rgba(108, 169, 52, 0.18);
  border: 1px solid rgba(108, 169, 52, 0.3);
}

/* Detalle componentes */
.calc-res-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.calc-res-detail span {
  font-size: 11.5px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  padding: 4px 10px;
  border-radius: 20px;
}

/* CTA del resultado */
.calc-res-cta {
  display: block;
  text-align: center;
  margin-top: 4px;
}

/* Responsive calculadora */
@media (max-width: 780px) {
  .calc-stats-grid {
    grid-template-columns: 1fr;
  }
  .cstat-highlight { grid-column: 1; }
}
@media (max-width: 640px) {
  .calc-pill { font-size: 13px; padding: 9px 14px; }
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--cream);
  transition: transform var(--t-fast) var(--easing), box-shadow var(--t-fast), border-color var(--t-fast);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-500);
}
.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-600);
  margin-bottom: 22px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; color: var(--ink-soft); }

/* ==========================================================================
   GALERÍA TRABAJOS
   ========================================================================== */
.works { background: var(--cream); }
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 280px 280px;
  gap: 20px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--easing);
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(14, 31, 61, 0.85);
  color: var(--cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.works-note {
  margin: 40px auto 28px;
  text-align: center;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 21px;
  color: var(--navy-900);
  max-width: 60ch;
}
.works-cta { text-align: center; }

/* ==========================================================================
   DIFF
   ========================================================================== */
.diff { background: var(--white); }
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.diff-col {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.diff-col h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.diff-col ul { display: grid; gap: 14px; }
.diff-col li {
  padding-left: 32px;
  position: relative;
  font-size: 16px;
  line-height: 1.5;
}
.diff-col-bad { background: var(--cream); }
.diff-col-bad h3 { color: var(--gray); }
.diff-col-bad li { color: var(--gray); }
.diff-col-bad li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 2px;
  background: var(--gray);
}
.diff-col-good {
  background: var(--navy-900);
  color: var(--cream);
  border-color: var(--navy-900);
  position: relative;
}
.diff-col-good::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 80px; height: 80px;
  background: var(--green-500);
  border-radius: 0 var(--radius-lg) 0 100%;
}
.diff-col-good h3 { color: var(--green-400); position: relative; }
.diff-col-good li { color: var(--cream); position: relative; }
.diff-col-good li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-500);
}
.diff-col-good li::after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 9px; height: 5px;
  border-left: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  transform: rotate(-45deg);
}

/* ==========================================================================
   PROCESO
   ========================================================================== */
.process { background: var(--cream); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-steps li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform var(--t-fast) var(--easing), border-color var(--t-fast);
}
.process-steps li:hover { transform: translateY(-4px); border-color: var(--green-500); }
.process-steps .step-num {
  font-size: 36px;
  color: var(--solar-500);
  font-family: var(--font-heading);
}
.process-steps h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 800;
}
.process-steps p { font-size: 14.5px; color: var(--ink-soft); }

.process-note {
  margin-top: 40px;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-inline: auto;
}

/* ==========================================================================
   TESTIMONIOS
   ========================================================================== */
.testimonials { background: var(--white); }

/* Barra agregada Google */
.reviews-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}
.reviews-score-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
}
.reviews-score-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1;
}
.reviews-stars-text {
  font-size: 1.25rem;
  color: var(--solar-500);
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.reviews-verified {
  font-size: 13px;
  color: var(--gray);
}
.reviews-google-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* Grid 3 columnas */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

/* Card base */
.testimonial {
  padding: 26px;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t-fast) var(--easing), box-shadow var(--t-fast);
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Cabecera de cada card */
.testimonial-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--av, var(--navy-900));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testimonial-guide {
  font-size: 10.5px;
  color: var(--green-600);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.testimonial-glogo { flex-shrink: 0; }

/* Estrellas dentro de card */
.testimonial .rating-stars { margin: 0; }
.testimonial .rating-stars svg { width: 15px; height: 15px; }

/* Texto de la reseña */
.testimonial blockquote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  flex: 1;
}
.testimonial blockquote strong {
  color: var(--navy-900);
  font-weight: 700;
}

/* Card destacada — Javier */
.testimonial-featured {
  background: var(--navy-900);
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(14, 31, 61, 0.25);
}
.testimonial-featured .testimonial-name { color: #fff; }
.testimonial-featured .testimonial-guide { color: var(--green-500); }
.testimonial-featured blockquote { color: rgba(255, 255, 255, 0.85); }
.testimonial-featured blockquote strong { color: #fff; }
.testimonial-featured:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(14, 31, 61, 0.35); }

/* Card dueño */
.owner-card {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 40px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  color: var(--cream);
  position: relative;
}
.owner-card p {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 16px;
}
.owner-tag { font-size: 13px; letter-spacing: 0.1em; color: var(--green-400); font-weight: 700; }

.testimonials-cta { text-align: center; }
.testimonials-cta .btn {
  white-space: normal;          /* evita desbordamiento en móvil */
  max-width: 100%;
  word-break: break-word;
  hyphens: auto;
}

/* ==========================================================================
   SEO LOCAL
   ========================================================================== */
.seo-local { background: var(--cream); }
.seo-local h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.seo-local p { color: var(--ink-soft); margin-bottom: 14px; }

.zones-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.zones-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--solar-600);
  margin-bottom: 20px;
}
.zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.zones li {
  padding: 12px 14px;
  background: var(--cream);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-left: 36px;
}
.zones li::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-500);
}
.zones-foot { font-size: 14px; color: var(--gray); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--white); }
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.faq-item[open] { background: var(--white); border-color: var(--green-500); box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 22px 28px;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-900);
  cursor: pointer;
  position: relative;
  list-style: none;
  padding-right: 64px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 28px; top: 50%;
  width: 14px; height: 14px;
  border-right: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-fast);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p { padding: 0 28px 24px; color: var(--ink-soft); font-size: 15.5px; }

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.final-cta {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(217, 154, 43, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.final-cta::after {
  content: "";
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139, 195, 74, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.final-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
  align-items: start;
}
.final-text h2 {
  color: var(--white);
  font-size: clamp(30px, 4vw, 46px);
  margin: 12px 0 22px;
}
.final-text p { color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.final-text .final-micro { color: var(--green-400); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; }
.final-actions {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.final-form {
  background: var(--white);
  color: var(--ink);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.final-form h3 {
  font-size: 24px;
  margin-bottom: 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-row label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.form-foot {
  font-size: 12.5px;
  color: var(--gray);
  margin-top: 12px;
  text-align: center;
}
.form-success {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--green-50);
  border: 1px solid var(--green-500);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--navy-900);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 14.5px; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--green-400); }
.footer-col li { font-size: 14.5px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-legal a { color: rgba(255,255,255,0.5); }
.footer-legal a:hover { color: var(--green-400); }

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: #25D366;
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.5);
  transition: transform var(--t-fast) var(--easing), box-shadow var(--t-fast);
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(37, 211, 102, 0.6); }

/* ==========================================================================
   ANIMACIONES SCROLL
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Animaciones de entrada del hero (always-visible, no IntersectionObserver) */
.hero-text {
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}
.hero-visual {
  animation: fadeInRight 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

/* Sin JS: todo visible. Con JS: animación reveal-on-scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--easing), transform var(--t-slow) var(--easing);
}
.js .reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-text, .hero-visual { animation: none; }
  .hero-image-wrap { transform: none; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0s !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-image-wrap img { height: 440px; }
  .floating-card-top { left: 16px; }
  .floating-card-bottom { right: 16px; }

  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reverse > *:first-child { order: 1; }
  .two-col.reverse > *:last-child { order: 2; }

  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 240px 240px 240px;
  }
  .gallery-item-large { grid-column: span 2; grid-row: span 1; }

  .diff-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .calculator { grid-template-columns: 1fr; padding: 32px; }

  .final-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
  .hero { padding: 56px 0 80px; }
  .nav { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero-image-wrap {
    transform: none;
    box-shadow: var(--shadow-lg);
    transition: none;
  }
  .hero-image-wrap img { height: 360px; }
  .floating-card-top { left: 12px; max-width: 200px; padding: 10px 14px; top: 14px; }
  .floating-card-bottom { right: 12px; bottom: 14px; padding: 10px 14px; }
  .floating-card-top .fc-value { font-size: 13px; }
  .hero-stats { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(14, 31, 61, 0.1); }
  .stat-item:last-child { border-bottom: none; }

  .hero-text h1 { font-size: clamp(36px, 9vw, 48px); }
  .lead { font-size: 17px; }

  .trust-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 240px);
  }
  .gallery-item-large { grid-column: span 1; }

  .process-steps { grid-template-columns: 1fr; }

  .calculator { padding: 24px; }
  .calc-result { padding: 24px; min-height: 220px; }

  .final-form { padding: 28px 22px; }
  .final-actions { flex-direction: column; }
  .final-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .wa-float span { display: none; }
  .wa-float { padding: 14px; }

  .section-head { margin-bottom: 48px; }
  .section-head h2 { font-size: clamp(28px, 7vw, 36px); }

  .testimonials-grid { grid-template-columns: 1fr; }
  .reviews-bar { padding: 20px; }
  .reviews-score-number { font-size: 2.4rem; }
  .owner-card { padding: 28px 22px; }
  .owner-card p { font-size: 20px; }

  /* Galería masonry mobile */
  .gallery-masonry { columns: 2; column-gap: 10px; margin-top: 32px; }
  .gm-item { margin-bottom: 10px; }
  .gallery-cta { padding: 40px 24px; margin-top: 48px; }
  .gallery-cta p { font-size: 16px; }
}

/* ==========================================================================
   GALERÍA PREMIUM — MASONRY + LIGHTBOX
   ========================================================================== */

/* ── Contador ──────────────────────────────────────────────────────────── */
.gallery-count {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  margin-top: 8px;
  margin-bottom: 0;
}
.gallery-count strong { color: var(--green-600); font-weight: 700; }

/* ── Masonry grid (CSS columns) ────────────────────────────────────────── */
.gallery-masonry {
  columns: 4;
  column-gap: 14px;
  margin-top: 48px;
}

/* ── Tarjetas ──────────────────────────────────────────────────────────── */
.gm-item {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--navy-100);
  transition: box-shadow 0.3s var(--easing), transform 0.3s var(--easing);
  /* Accesibilidad: visible focus ring */
  outline-offset: 3px;
}
.gm-item:focus-visible { outline: 2px solid var(--green-500); }

.gm-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.01);
}

.gm-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s var(--easing);
}
.gm-item:hover img { transform: scale(1.03); }

/* ── CTA de conversión ─────────────────────────────────────────────────── */
.gallery-cta {
  text-align: center;
  margin-top: 72px;
  padding: 64px 40px;
  background: var(--navy-900);
  border-radius: var(--radius-xl);
  color: var(--white);
}
.gallery-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 14px;
  line-height: 1.2;
}
.gallery-cta p {
  color: var(--navy-100);
  font-size: 18px;
  margin: 0 auto 36px;
  max-width: 500px;
  line-height: 1.55;
}

/* ── Masonry responsive ────────────────────────────────────────────────── */
@media (max-width: 1024px) { .gallery-masonry { columns: 3; } }
@media (max-width: 768px)  { .gallery-masonry { columns: 2; column-gap: 10px; } }

/* ── Lightbox ──────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(8, 14, 26, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: lbFadeIn 0.22s var(--easing);
}
.lightbox[hidden] { display: none; }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 86vh;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  animation: lbSlideIn 0.28s var(--easing);
  display: block;
}

@keyframes lbSlideIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  font-size: 32px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 9001;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 9001;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.lightbox-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-family: var(--font-body);
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 9001;
}

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; width: 44px; height: 44px; font-size: 26px; }
  .lightbox-next { right: 8px; width: 44px; height: 44px; font-size: 26px; }
  .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 26px; }
}

/* ==========================================================================
   VALIDACIÓN INLINE FORMULARIO
   ========================================================================== */
.form-error {
  display: block;
  color: #b91c1c;
  font-size: 13px;
  margin-top: 5px;
  font-weight: 500;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
  outline: none;
}
