@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --color-primary: #0F172A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-accent-hover: #0284C7;
  --color-accent-light: rgba(3, 105, 161, 0.1);
  --color-energy: #D97706;
  --color-energy-bright: #F59E0B;
  --color-energy-glow: rgba(217, 119, 6, 0.3);
  --color-ink-on-energy: #241000;
  --color-bg: #FFFFFF;
  --color-bg-alt: #E7ECF3;
  --color-fg: #020617;
  --color-fg-muted: #3F4C61;
  --color-border: #C6CEDA;
  --color-card: #FFFFFF;
  --color-card-hover: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-success: #059669;
  --color-destructive: #DC2626;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1DA851;
  --night: #0B1120;
  --night-2: #101a30;
  --shadow-sm: 0 1px 4px rgba(2, 6, 23, 0.08);
  --shadow-md: 0 6px 8px -4px rgba(2, 6, 23, 0.18);
  --shadow-glow: 0 0 20px var(--color-energy-glow);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font-heading: 'Rubik', system-ui, sans-serif;
  --font-body: 'Nunito Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 220ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);
}

[data-theme="dark"] {
  --color-primary: #E2E8F0;
  --color-on-primary: #0F172A;
  --color-secondary: #94A3B8;
  --color-accent: #38BDF8;
  --color-accent-hover: #7DD3FC;
  --color-accent-light: rgba(56, 189, 248, 0.1);
  --color-bg: #0B1120;
  --color-bg-alt: #0E1526;
  --color-fg: #F8FAFC;
  --color-fg-muted: #A7B4C8;
  --color-border: #202D45;
  --color-card: #131D33;
  --color-card-hover: #1A2742;
  --color-surface: #131D33;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 6px 8px -4px rgba(0,0,0,0.5);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

::selection {
  background: var(--color-energy-bright);
  color: var(--color-ink-on-energy);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

/* ---- Section headers (asymmetric, no eyebrows) ---- */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--color-fg);
}

.sec-title em {
  font-style: normal;
  color: var(--color-energy-bright);
}

.sec-title--tagline {
  max-width: min(100%, 15ch);
  white-space: nowrap;
}

.sec-title--tagline em {
  display: block;
  margin-top: .65rem;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
  white-space: nowrap;
}

.sec-lead {
  font-size: 1.02rem;
  color: var(--color-fg-muted);
  line-height: 1.7;
  max-width: 46ch;
  text-wrap: pretty;
  padding-bottom: 6px;
}

.sec-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.sec-head--center .sec-lead { padding-bottom: 0; }

.sec-head--stacked {
  grid-template-columns: 1fr;
}
.sec-head--stacked .sec-lead { max-width: 52ch; padding-bottom: 0; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(11, 17, 32, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 10px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo svg {
  height: 40px;
  width: auto;
}

/* Logo — rayo ambar, texto segun modo */
.nav-logo .logo-bolt {
  fill: var(--color-energy-bright);
}
.nav-logo .logo-text {
  fill: #FFFFFF;
}
.nav-logo .logo-sub {
  fill: rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .nav-logo .logo-text {
  fill: #FFFFFF;
}
[data-theme="light"] .nav-logo .logo-sub {
  fill: rgba(255, 255, 255, 0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--transition);
  position: relative;
}

.nav-links a:hover { color: #FFFFFF; }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-energy-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active { color: #FFFFFF; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transform: rotate(15deg);
}

.theme-toggle svg { width: 20px; height: 20px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active { transform: translateY(1px); }

.btn-lg {
  padding: 15px 30px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #063;
  color: #0B3D22;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #2EE573;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.55);
}

.btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-fg);
}

.btn-outline:hover {
  border-color: var(--color-energy-bright);
  color: var(--color-energy-bright);
}

.btn-dark {
  background: var(--night);
  color: #FFFFFF;
}

.btn-dark:hover {
  background: #1B2A47;
  transform: translateY(-2px);
}

.btn-energy {
  background: var(--color-energy-bright);
  color: var(--color-ink-on-energy);
  font-weight: 700;
}

.btn-energy:hover {
  background: #D97706;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(245,158,11,.5);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.nav-cta-mobile { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.menu-toggle svg { width: 24px; height: 24px; }

/* ============================================
   HERO (sin cambios de concepto)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0B1120;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  z-index: 4;
  pointer-events: none;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-slide:nth-child(1) img { object-position: center 30%; }
.hero-slide:nth-child(2) img { object-position: center 32%; }
.hero-slide:nth-child(3) img { object-position: center 28%; }
.hero-slide:nth-child(4) img { object-position: center 30%; }
.hero-slide:nth-child(5) img { object-position: center 32%; }

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide.slide-exit {
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 1, 1);
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(8, 14, 30, 0.82) 0%,
      rgba(8, 14, 30, 0.60) 45%,
      rgba(8, 14, 30, 0.15) 100%);
  z-index: 2;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-energy);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-energy-glow);
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  10%  { opacity: 1; transform: translateY(90vh) scale(1); }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-10vh) scale(0); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-energy-bright);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  animation: fadeInUp 0.7s var(--ease-out) both;
}

.hero-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 18px;
  animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.hero h1 .text-energy {
  color: var(--color-energy-bright);
  text-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.78);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.65;
  animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.hero-cta .btn-whatsapp {
  font-size: 1rem;
  padding: 14px 28px;
}

.hero-cta .btn-outline {
  border-color: rgba(255,255,255,0.25);
  color: #FFFFFF;
  font-size: 1rem;
  padding: 14px 28px;
}

.hero-cta .btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  color: #FFFFFF;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   QUIENES SOMOS
   ============================================ */
.about-section {
  background: var(--color-bg-alt);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-content .sec-title { margin-bottom: 22px; }

.about-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-fg-muted);
  max-width: 54ch;
  text-wrap: pretty;
}

.about-text + .about-text { margin-top: 16px; }

.about-cert {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.about-cert-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-cert {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ============================================
   HOGARES
   ============================================ */
.hogar-section {
  background: var(--color-bg);
}

.hogar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hogar-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

.hogar-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.hogar-content .sec-title { margin-bottom: 18px; }

.hogar-list {
  list-style: none;
  margin: 20px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hogar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--color-fg);
}

.hogar-list li svg {
  flex-shrink: 0;
  color: var(--color-energy-bright);
}

@media (max-width: 960px) {
  .hogar-layout {
    grid-template-columns: 1fr;
  }
  .hogar-img-wrap {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ============================================
   SERVICIOS — Cards
   ============================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}

.svc-card:hover {
  border-color: var(--color-energy-bright);
  box-shadow: 0 8px 32px -8px rgba(245,158,11,.18);
  transform: translateY(-3px);
}

.svc-card--urgent { border-color: rgba(248,113,113,.4); }
.svc-card--urgent:hover { border-color: #F87171; box-shadow: 0 8px 32px -8px rgba(248,113,113,.2); }

.svc-card-icon {
  display: flex;
  align-items: flex-end;
  color: var(--color-energy-bright);
  flex-shrink: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-energy-bright);
  width: fit-content;
}

.svc-card--urgent .svc-card-icon { color: #F87171; border-bottom-color: #F87171; }
.svc-card-icon svg { width: 32px; height: 32px; }

.svc-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1.3;
}

.svc-card-desc {
  font-size: 0.88rem;
  color: var(--color-fg-muted);
  line-height: 1.65;
  flex: 1;
}

.svc-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-energy-bright);
  margin-top: 4px;
  transition: gap .2s;
}

.svc-card--urgent .svc-card-cta { color: #F87171; }
.svc-card:hover .svc-card-cta { gap: 10px; }

/* ============================================
   PROCESO — Timeline con linea dibujada
   ============================================ */
.proc-section {
  background: var(--color-bg-alt);
}

.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 8px;
}

.timeline-track {
  position: absolute;
  top: 31px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--color-border);
  overflow: hidden;
  border-radius: 2px;
}

.timeline-progress {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-energy-bright), var(--color-energy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease-out) 0.3s;
}

.timeline.visible .timeline-progress {
  transform: scaleX(1);
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  position: relative;
  padding: 0 12px;
}

.timeline-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-energy-bright);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.timeline-step:hover .timeline-number {
  background: var(--color-energy-bright);
  color: var(--color-ink-on-energy);
  border-color: var(--color-energy-bright);
  transform: scale(1.08);
}

.timeline-step h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--color-fg);
}

.timeline-step p {
  font-size: 0.86rem;
  color: var(--color-fg-muted);
  max-width: 170px;
}

/* ============================================
   SEGMENTOS — Cards
   ============================================ */
.seg-header {
  margin-bottom: clamp(32px, 4vw, 48px);
}

.seg-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--color-fg);
  margin-bottom: 12px;
}

.seg-sub {
  font-size: 0.98rem;
  color: var(--color-fg-muted);
  line-height: 1.7;
  max-width: 56ch;
  text-wrap: pretty;
}

.seg-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) { .seg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .seg-grid { grid-template-columns: repeat(2, 1fr); } }

.seg-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 20px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-out);
}

.seg-card:hover {
  border-color: var(--color-energy-bright);
  box-shadow: 0 8px 28px -8px rgba(245,158,11,.15);
  transform: translateY(-3px);
}

.seg-card-icon {
  display: flex;
  align-items: flex-end;
  color: var(--color-energy-bright);
  flex-shrink: 0;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-energy-bright);
  width: fit-content;
  margin-bottom: 4px;
}

.seg-card-icon svg { width: 28px; height: 28px; }

.seg-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-fg);
  line-height: 1.3;
}

.seg-card-desc {
  font-size: 0.82rem;
  color: var(--color-fg-muted);
  line-height: 1.6;
}

/* ============================================
   PAQUETES — featured + lista
   ============================================ */
.pack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.pack-featured {
  background: linear-gradient(160deg, var(--color-energy-bright), var(--color-energy));
  color: var(--color-ink-on-energy);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pack-featured::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  top: -160px;
  right: -120px;
  pointer-events: none;
}

.pack-featured-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(36, 16, 0, 0.85);
  color: #FDE68A;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}

.pack-featured h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.pack-featured > p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(36, 16, 0, 0.82);
  margin-bottom: 24px;
  max-width: 44ch;
}

.pack-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pack-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.93rem;
  font-weight: 600;
}

.pack-features li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pack-featured .btn { margin-top: auto; align-self: flex-start; }

.pack-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
}

.pack-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--color-border);
  transition: padding var(--transition), background var(--transition);
  flex: 1;
  width: 100%;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.pack-row:hover {
  padding-left: 18px;
  background: var(--color-card);
}

.pack-row-body { flex: 1; min-width: 0; }

.pack-row h4 {
  font-size: 1.08rem;
  color: var(--color-fg);
  margin-bottom: 4px;
  transition: color 200ms ease;
}

.pack-row:hover h4 { color: var(--color-energy-bright); }

.pack-row p {
  font-size: 0.88rem;
  color: var(--color-fg-muted);
  line-height: 1.55;
}

.pack-row-arrow {
  width: 20px;
  height: 20px;
  color: var(--color-fg-muted);
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform 280ms var(--ease-out), opacity 200ms ease, color 200ms ease;
}

.pack-row:hover .pack-row-arrow {
  opacity: 1;
  color: var(--color-energy-bright);
  transform: translateX(5px);
}

/* ============================================
   PORTAFOLIO — comparador antes/despues
   ============================================ */
.pack-section {
  background: var(--color-bg-alt);
}

.pf-section {
  background: var(--color-bg);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

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

.ba-card--wide { grid-column: 1 / -1; }
.ba-card--wide .ba-flip { aspect-ratio: 21 / 9; }

.ba-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ba-flip {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .8s ease;
}

.ba-img--before { opacity: 1; z-index: 1; }
.ba-img--after  { opacity: 0; z-index: 2; }

.ba-card.is-after .ba-img--before { opacity: 0; }
.ba-card.is-after .ba-img--after  { opacity: 1; }

.ba-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(11,17,32,.7);
  color: #fff;
  backdrop-filter: blur(4px);
  transition: background .4s ease, color .4s ease;
  pointer-events: none;
}

.ba-card.is-after .ba-badge {
  background: var(--color-energy-bright);
  color: var(--color-ink-on-energy);
}

.ba-card figcaption {
  padding: 20px 24px 22px;
}

.ba-card figcaption h4 {
  font-size: 1.08rem;
  color: var(--color-fg);
  margin-bottom: 4px;
}

.ba-card figcaption p {
  font-size: 0.88rem;
  color: var(--color-fg-muted);
}

/* ============================================
   CONFIANZA — banda de evidencia
   ============================================ */
.proof-band {
  background: var(--night);
  padding: clamp(72px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.proof-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 15% 30%, rgba(245, 158, 11, 0.09), transparent 65%);
  pointer-events: none;
}

.proof-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  position: relative;
}

.proof-statement {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-wrap: balance;
}

.proof-lines {
  display: flex;
  flex-direction: column;
}

.proof-line {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #B6C2D6;
  padding: 18px 0;
  text-wrap: pretty;
}

.proof-line + .proof-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proof-line strong {
  color: var(--color-energy-bright);
  font-weight: 700;
  font-family: var(--font-heading);
}

/* ============================================
   CTA FINAL — drench ambar
   ============================================ */
.cta-section {
  background: linear-gradient(150deg, var(--color-energy-bright) 0%, var(--color-energy) 100%);
  padding: clamp(72px, 9vw, 110px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 90% at 80% 10%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 70% at 10% 90%, rgba(36, 16, 0, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--color-ink-on-energy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(36, 16, 0, 0.78);
  margin-bottom: 36px;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-disclaimer {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.8);
  margin-top: 14px;
  letter-spacing: 0.01em;
}

.cta-disclaimer--dark {
  color: var(--color-fg);
}

.cta-section .btn-whatsapp {
  background: var(--night);
  color: #4ADE80;
}

.cta-section .btn-whatsapp:hover {
  background: #14203a;
  box-shadow: 0 10px 30px -10px rgba(11, 17, 32, 0.6);
}

.cta-section .btn-dark {
  background: transparent;
  border: 2px solid rgba(36, 16, 0, 0.4);
  color: var(--color-ink-on-energy);
}

.cta-section .btn-dark:hover {
  background: rgba(36, 16, 0, 0.9);
  border-color: transparent;
  color: #FDE68A;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 72px) 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--color-fg-muted);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 30ch;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-fg);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 10px; }

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-fg-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--color-energy-bright); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--color-fg-muted);
}

.footer-contact-item a:hover { color: var(--color-energy-bright); }

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-energy-bright);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-fg-muted);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0B3D22;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: whatsappPulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg { width: 28px; height: 28px; }

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 26px rgba(37, 211, 102, 0.65); }
}

@media (min-width: 769px) { .whatsapp-float { display: none; } }

/* ============================================
   SCROLL REVEAL (solo con JS activo)
   ============================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger: los hijos directos de [data-stagger] entran en cascada */
html.js .reveal [data-stagger] > *,
html.js .reveal[data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

html.js .reveal.visible [data-stagger] > *,
html.js .reveal.visible[data-stagger] > * {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .svc-explorer { grid-template-columns: 250px 1fr; }
  .pack-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .proof-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-cta-mobile { display: inline-flex; }
  .menu-toggle { display: flex; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--night);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
    animation: fadeInUp 0.3s var(--ease-out);
  }

  .hero h1 { font-size: 2.2rem; }
  .hero-description { font-size: 0.95rem; }

  .sec-head {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }
  .sec-title--tagline {
    max-width: 100%;
  }
  .sec-title--tagline em {
    font-size: clamp(.95rem, 4.2vw, 1.2rem);
  }
  .sec-lead { padding-bottom: 0; }

  .svc-explorer { grid-template-columns: 1fr; }
  .svc-nav { border-right: none; border-bottom: 1px solid var(--color-border); flex-direction: row; flex-wrap: wrap; gap: 4px; padding: 10px; }
  .svc-tab { flex: 1 1 auto; min-width: 140px; padding: 11px 12px; }
  .svc-tab::before { display: none; }
  .svc-tab-arrow { display: none; }
  .svc-panel { flex-direction: column; gap: 20px; padding: 28px 24px; }
  .svc-panel-body h3 { font-size: 1.3rem; }

  .timeline {
    flex-direction: column;
    gap: 28px;
  }

  .timeline-track {
    top: 0;
    bottom: 0;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-progress {
    width: 100%;
    height: 100%;
    transform: scaleY(0);
    transform-origin: top;
    background: linear-gradient(180deg, var(--color-energy-bright), var(--color-energy));
  }

  .timeline.visible .timeline-progress {
    transform: scaleY(1);
  }

  .timeline-step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }

  .timeline-number { flex-shrink: 0; margin-bottom: 0; }
  .timeline-step p { max-width: none; }

  .seg-header { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }

  .seg-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 16px;
    padding: 18px 4px;
  }
  .seg-row-title { grid-column: 1; grid-row: 1; }
  .seg-row-desc { grid-column: 1; grid-row: 2; }
  .seg-row-arrow { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .seg-row:hover, .seg-row:focus-visible { padding-left: 14px; padding-right: 12px; }

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

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { justify-content: center; }
  .pf-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MODAL COTIZACION
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.modal-backdrop.is-open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }

.modal-box {
  background: var(--color-surface);
  border-radius: 1.25rem;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .3s var(--ease-out);
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.modal-backdrop.is-open .modal-box { transform: none; }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-fg-muted);
  padding: .35rem;
  border-radius: .5rem;
  line-height: 0;
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--color-fg); background: var(--color-bg-alt); }

.modal-head { margin-bottom: 1.5rem; }
.modal-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-energy-bright);
  margin-bottom: .5rem;
}
.modal-title {
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  font-weight: 800;
  color: var(--color-fg);
  margin: 0 0 .5rem;
}
.modal-lead {
  font-size: .9rem;
  color: var(--color-fg-muted);
  margin: 0;
}

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--color-fg); }
.field-optional { font-weight: 400; color: var(--color-fg-muted); }
.field input,
.field textarea {
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: .6rem;
  padding: .65rem .85rem;
  font-size: .95rem;
  font-family: inherit;
  color: var(--color-fg);
  width: 100%;
  transition: border-color .15s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-energy-bright);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.field input.invalid,
.field textarea.invalid { border-color: #EF4444; }

.modal-error { color: #EF4444; font-size: .85rem; margin: -.5rem 0 1rem; }

.modal-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.modal-submit { width: 100%; justify-content: center; }
.modal-wa     { width: 100%; justify-content: center; }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-fg);
}
.btn-ghost:hover { border-color: var(--color-fg-muted); background: var(--color-bg-alt); }

.modal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem 0;
}
.modal-success h3 { font-size: 1.3rem; font-weight: 800; color: var(--color-fg); margin: 0; }
.modal-success p  { color: var(--color-fg-muted); font-size: .95rem; margin: 0; }
.modal-success[hidden] { display: none; }
.modal-form[hidden]    { display: none; }

.call-modal-box {
  max-width: 420px;
}

.call-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: .25rem;
}

.call-phone-number {
  display: inline-flex;
  color: var(--color-fg);
  max-width: 100%;
  font-size: clamp(1.75rem, 7vw, 2.45rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.call-phone-number:hover {
  color: var(--color-energy-bright);
}

.call-qr {
  display: inline-flex;
  padding: .75rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}

.call-qr img {
  display: block;
  width: min(220px, 68vw);
  height: auto;
}

.call-phone-button {
  width: 100%;
  justify-content: center;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .reveal,
  html.js .reveal [data-stagger] > *,
  html.js .reveal[data-stagger] > * {
    opacity: 1;
    transform: none;
  }
  .timeline-progress { transform: none !important; }
}
