:root {
  --navy:        #05101f;
  --navy-mid:    #0d1e38;
  --navy-alt:    #0a1628;
  --navy-light:  #152944;
  --gold:        #c9a84c;
  --gold-light:  #dfc278;
  --ivory:       #f2ede4;
  --ivory-dark:  #e6e0d4;
  --white:       #ffffff;
  --silver:      #b8bcc8;
  --silver-light:#d0d4e0;
  --gray:        #7a8599;
  --text-dim:    rgba(255,255,255,0.82);
  --text-dimmer: rgba(255,255,255,0.55);

  /* ── Spacing scale (4px base) ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;

  /* ── Letter-spacing scale ── */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.2em;

  /* ── Border opacity tokens (gold) ── */
  --border-subtle:  rgba(201,168,76,0.12);
  --border-default: rgba(201,168,76,0.25);
  --border-strong:  rgba(201,168,76,0.50);

  /* ── Text size tokens ── */
  --text-body: 14px;
  --text-sm:   12px;
  --text-xs:   11px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-body);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Grain overlay global (depth / premium feel) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1.5px 1.5px;
  opacity: 0.55;
  mix-blend-mode: overlay;
}
[data-theme="light"] body::after {
  background-image:
    radial-gradient(rgba(13,30,56,0.07) 1px, transparent 1px),
    radial-gradient(rgba(13,30,56,0.035) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1.5px 1.5px;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 64px;
  background: rgba(5,16,31,0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: padding 0.3s, background 0.3s;
}
nav.scrolled {
  padding: 8px 64px;
  background: rgba(5,16,31,0.99);
  border-bottom-color: var(--border-default);
}
nav.scrolled .nav-logo-img {
  width:  70px;
  height: 70px;
}
nav.scrolled .nav-logo-name {
  font-size: 22px;
}
nav.scrolled .nav-logo-sub {
  font-size: 9.5px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.nav-logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(110deg, #d0d4e0 0%, #b8bcc8 40%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo-sub {
  font-size: 11px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  background: linear-gradient(110deg, #b8bcc8 0%, #9b9fa8 50%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.60);
  font-size: 11.5px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: linear-gradient(90deg, #9b2335, var(--gold));
  transition: width 0.35s ease;
  border-radius: 2px;
}
.nav-links a:hover        { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
/* Sección activa en scroll */
.nav-links a.active        { color: var(--white); }
.nav-links a.active::after { width: 100%; }

/* Login button */
.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #e8d080 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 16px rgba(201,168,76,0.30);
  transition: background-position 0.4s, box-shadow 0.3s, transform 0.2s;
}
.nav-login-btn:hover {
  background-position: right center;
  box-shadow: 0 4px 24px rgba(201,168,76,0.50);
  transform: translateY(-1px);
}

/* Modal Próximamente */
.proximamente-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,12,27,0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.proximamente-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.proximamente-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 52px 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.proximamente-overlay.active .proximamente-modal {
  transform: translateY(0);
}
.proximamente-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none;
  border: none;
  color: var(--gray);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.proximamente-close:hover { color: var(--white); }
.proximamente-icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.proximamente-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}
.proximamente-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.proximamente-cta {
  padding: 11px 32px;
  background: linear-gradient(135deg, #9b2335 0%, #7d1921 100%);
  border: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: filter 0.2s;
}
.proximamente-cta:hover { filter: brightness(1.15); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--gold);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,16,31,0.98);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.active { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s, opacity 0.4s, transform 0.4s;
  opacity: 0;
  transform: translateY(18px);
}
.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.active a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.30s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.36s; }
.mobile-menu.active .mobile-login-btn {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu a:hover { color: var(--silver); }
.mobile-login-btn {
  opacity: 0;
  transform: translateY(18px);
  transition: background-position 0.4s, box-shadow 0.3s, opacity 0.4s 0.42s, transform 0.4s 0.42s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 36px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--gold) 0%, #e8d080 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  transition: background-position 0.4s, box-shadow 0.3s;
}
.mobile-login-btn:hover {
  background-position: right center;
  box-shadow: 0 4px 28px rgba(201,168,76,0.55);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#inicio {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(5,16,31,0.91) 0%, rgba(13,30,56,0.83) 55%, rgba(5,16,31,0.91) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
}

.hero-bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.058) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.058) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}
/* Líneas diagonales animadas */
.hero-bg-lines::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 80px,
    rgba(201,168,76,0.018) 80px,
    rgba(201,168,76,0.018) 81px
  );
  animation: diagonalDrift 24s linear infinite;
}
@keyframes diagonalDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(113px); }
}
/* Línea de luz que barre el hero */
.hero-bg-lines::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(201,168,76,0.04) 50%,
    transparent 70%
  );
  animation: lightSweep 8s ease-in-out infinite;
}
@keyframes lightSweep {
  0%, 100% { transform: translateX(-100%); }
  50%       { transform: translateX(100%); }
}

.hero-orb {
  position: absolute;
  width: 820px; height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, rgba(155,35,53,0.04) 45%, transparent 68%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%,-50%) scale(1);    opacity: 0.65; }
  50%       { transform: translate(-50%,-50%) scale(1.15); opacity: 1;    }
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 40px 24px 0;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  border: 1px solid var(--border-strong);
  background: rgba(201,168,76,0.06);
  padding: 9px 24px;
  margin-top: 18px;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.45s forwards;
  opacity: 0;
}

.hero-logo-wrap {
  animation: logoReveal 1.1s cubic-bezier(0.22,1,0.36,1) 0.1s forwards;
  opacity: 0;
  margin-bottom: -44px;
}
.hero-logo-img {
  height: 200px; width: auto;
  filter: drop-shadow(0 0 44px rgba(201,168,76,0.22));
  transition: opacity 0.25s;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(62px, 9.5vw, 130px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-title-main {
  display: block;
  background: linear-gradient(110deg, #d0d4e0 0%, #b8bcc8 40%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideFromLeft 0.9s cubic-bezier(0.22,1,0.36,1) 0.18s forwards;
  opacity: 0;
  transform: translateX(-60px);
}
.hero-title-sub {
  display: block;
  background: linear-gradient(110deg, #d0d4e0 0%, #b8bcc8 40%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideFromRight 0.9s cubic-bezier(0.22,1,0.36,1) 0.32s forwards;
  opacity: 0;
  transform: translateX(60px);
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-subtitle {
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  margin-top: 22px;
  animation: subtitleGlow 1s cubic-bezier(0.22,1,0.36,1) 0.55s forwards;
  opacity: 0;
}

.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  margin-top: 14px;
  font-weight: 300;
  letter-spacing: 0.4px;
  animation: fadeUp 0.8s ease 0.50s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
  animation: fadeUp 0.8s ease 0.62s forwards;
  opacity: 0;
}

.hero-cta-primary {
  display: inline-block;
  padding: 15px 42px;
  background: linear-gradient(135deg, #9b2335 0%, #7d1921 100%);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(155,35,53,0.30);
}
.hero-cta-primary:hover {
  background: linear-gradient(135deg, #b02a3d 0%, #9b2335 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(155,35,53,0.40);
}

.hero-cta-secondary {
  display: inline-block;
  padding: 15px 42px;
  background: transparent;
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.42);
  transition: all 0.3s;
}
.hero-cta-secondary:hover {
  border-color: var(--silver);
  color: var(--silver);
  background: rgba(255,255,255,0.04);
}

.hero-divider {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(201,168,76,0.3), transparent);
  margin: 48px auto 0;
  animation: fadeUp 0.8s ease 0.76s forwards;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s ease 1.3s forwards;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(201,168,76,0.55), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; height: 40px; }
  50%       { opacity: 1;   height: 56px; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes logoReveal {
  0%   { opacity: 0; transform: scale(0.82); filter: blur(8px) drop-shadow(0 0 0px rgba(201,168,76,0)); }
  60%  { opacity: 1; transform: scale(1.04); filter: blur(0px) drop-shadow(0 0 60px rgba(201,168,76,0.45)); }
  100% { opacity: 1; transform: scale(1);    filter: blur(0px) drop-shadow(0 6px 40px rgba(0,0,0,0.60)); }
}
@keyframes subtitleGlow {
  0%   { opacity: 0; transform: translateY(16px); letter-spacing: 2px; }
  100% { opacity: 1; transform: translateY(0);    letter-spacing: 5px; }
}

/* ═══════════════════════════════════════
   SEPARADORES DE SECCIÓN
═══════════════════════════════════════ */
section + section::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.12) 20%,
    rgba(201,168,76,0.35) 50%,
    rgba(201,168,76,0.12) 80%,
    transparent 100%);
  margin: 0 10%;
}

#servicios,
#nosotros,
#blog,
#proceso,
#sectores {
  position: relative;
}
#servicios::before,
#nosotros::before,
#blog::before,
#proceso::before,
#sectores::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   STATS BAND
═══════════════════════════════════════ */
#stats {
  background: var(--navy);
  padding: 96px 64px;
}

/* ─── Stats header ─────────────────────────────── */
.stats-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}
.stats-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #e8394f;
  text-shadow: 0 0 40px rgba(232,57,79,0.30);
  margin-bottom: 12px;
  line-height: 1;
}
.stats-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e8394f;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 4px;
}
.stats-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #ffffff;
  margin-bottom: 20px;
}
.stats-title-line {
  width: 48px; height: 4px;
  background: #e8394f;
  border-radius: 999px;
  margin: 0 auto 18px;
  box-shadow: 0 0 16px rgba(232,57,79,0.50);
}
.stats-subtitle {
  font-size: 15px;
  line-height: 1.78;
  color: #ffffff;
}

/* ─── Stats card container ──────────────────────── */
.stats-card {
  max-width: 1100px;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  background: rgba(13,28,48,0.72);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 52px 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.30);
}
.stat-sep {
  width: 1px;
  background: rgba(255,255,255,0.08);
  align-self: stretch;
  margin: 0 8px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 8px 28px;
  background: transparent;
  position: relative;
}

/* ─── Stat icon ─────────────────────────────────── */
.stat-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(155,35,53,0.12);
  border: 2px solid rgba(155,35,53,0.32);
  color: #c0394e;
  margin-bottom: 4px;
  transition: background 0.25s, border-color 0.25s;
}
.stat-item:hover .stat-icon {
  background: rgba(155,35,53,0.20);
  border-color: rgba(155,35,53,0.55);
}

/* ─── Stat number ───────────────────────────────── */
.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  color: #f5f5f5;
  display: inline;
}
@keyframes statShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.stat-num--guinda {
  background: linear-gradient(110deg, #f5f5f5 0%, #d0d4e0 30%, #9b2335 60%, #f5f5f5 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: statShimmer 6s linear infinite;
}
.stat-plus {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--guinda, #9b2335);
  display: inline;
}

/* ─── Stat label & desc ─────────────────────────── */
.stat-label {
  font-size: 10.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  font-weight: 600;
  margin-top: 0;
}
.stat-desc {
  font-size: 13px;
  line-height: 1.60;
  color: rgba(255,255,255,0.58);
  max-width: 190px;
  margin: 0 auto;
}
.stats-note { display: none; }

/* ═══════════════════════════════════════
   SECTIONS — GENERAL
═══════════════════════════════════════ */
section { padding: 100px 64px; }

.section-label {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before {
  content: '';
  width: 28px; height: 2px;
  background: linear-gradient(90deg, #9b2335, var(--gold));
  display: block;
  flex-shrink: 0;
  border-radius: 2px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 5.5vw, 78px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -1.5px;
  color: #ffffff;
}

.section-intro {
  font-size: clamp(14px, 1.2vw, 15px);
  line-height: 1.85;
  color: var(--text-dim);
  font-weight: 300;
  max-width: 580px;
}

/* ═══════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════ */
#servicios {
  background: radial-gradient(ellipse 70% 60% at 85% 20%, rgba(201,168,76,0.055) 0%, transparent 65%), var(--navy-mid);
  position: relative;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(201,168,76,0.08);
  margin-top: 56px;
  border: 1px solid rgba(201,168,76,0.08);
}

.servicio-card {
  background: var(--navy-mid);
  padding: 40px 36px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.4s;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, #9b2335, var(--gold), #b8bcc8);
  transition: opacity 0.4s;
  opacity: 0.4;
}
.servicio-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #9b2335, var(--gold));
  transition: width 0.4s;
}
.servicio-card:hover {
  background: rgba(155,35,53,0.045);
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(155,35,53,0.28);
  transform: translateY(-5px);
  z-index: 1;
}
.servicio-card:hover::before { opacity: 1; }
.servicio-card:hover::after  { width: 100%; }

.servicio-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 68px;
  font-weight: 700;
  color: rgba(201,168,76,0.58);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.servicio-icon-wrap {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver-light);
  margin-bottom: 22px;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.servicio-card:hover .servicio-icon-wrap {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.45);
  color: var(--gold);
  transform: scale(1.08);
}
.servicio-icon-wrap svg { width: 28px; height: 28px; }

.servicio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.servicio-desc {
  font-size: 14px;
  line-height: 1.88;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
}

/* Instituciones */
.instituciones-wrap { margin-top: 56px; }
.inst-label {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  margin-bottom: 18px;
}
.instituciones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.inst-badge {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.16);
  color: var(--silver-light);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 10px 28px;
  text-transform: uppercase;
  transition: all 0.3s;
}
.inst-badge:hover {
  background: rgba(201,168,76,0.13);
  border-color: var(--silver);
  color: var(--silver);
}

/* ═══════════════════════════════════════
   NOSOTROS
═══════════════════════════════════════ */
#nosotros { background: var(--navy); }

.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nosotros-boxes {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
}

.mision-box, .vision-box {
  padding: 36px 40px;
  position: relative;
}
.mision-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.07), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.17);
  border-left: 3px solid var(--gold);
}
.vision-box {
  background: rgba(255,255,255,0.018);
  border: 1px solid rgba(255,255,255,0.055);
  border-left: 3px solid rgba(201,168,76,0.32);
}
.box-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 14px;
}
.box-text {
  font-size: 14px;
  line-height: 1.95;
  color: rgba(255,255,255,0.74);
  font-weight: 300;
}

/* Nosotros — imagen lateral */
.nosotros-img-frame {
  position: relative;
  border: 1px solid rgba(201,168,76,0.14);
}
.nosotros-img-frame::before {
  content: '';
  position: absolute;
  top: -14px; right: -14px;
  width: 100%; height: 100%;
  border: 1px solid rgba(201,168,76,0.09);
  z-index: -1;
}
.nosotros-img-frame::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%; height: 45%;
  background: linear-gradient(225deg, rgba(155,35,53,0.18) 0%, rgba(201,168,76,0.06) 55%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.nosotros-img-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(0.80) contrast(1.06) saturate(0.80);
}

.nosotros-img-badge {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(105deg, rgba(13,30,56,0.96) 0%, rgba(155,35,53,0.88) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(201,168,76,0.28);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 3;
}
.badge-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  flex-shrink: 0;
}
.badge-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.55), transparent);
  flex-shrink: 0;
}
.badge-text {
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.90);
  font-weight: 500;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   VALORES
═══════════════════════════════════════ */
#valores {
  background: var(--navy);
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  margin-top: 56px;
  background: rgba(10,22,40,0.07);
}

.valor-card {
  background: var(--ivory);
  padding: 48px 32px 40px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.valor-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}
.valor-card:hover { background: var(--white); }
.valor-card:hover::after { width: 100%; }

.valor-icon-wrap {
  width: 38px; height: 38px;
  color: var(--silver);
  margin-bottom: 16px;
  transition: color 0.3s;
}
.valor-icon-wrap svg { width: 100%; height: 100%; }
.valor-card:hover .valor-icon-wrap { color: var(--gold); }
.valor-icon-line {
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201,168,76,0.2));
  border-radius: 2px;
  margin-bottom: 20px;
  transition: width 0.4s;
}
.valor-card:hover .valor-icon-line { width: 56px; }

.valor-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}
.valor-desc {
  font-size: 13px;
  line-height: 1.88;
  color: rgba(10,22,40,0.55);
  font-weight: 300;
}

/* ═══════════════════════════════════════
   POR QUÉ NOSOTROS
═══════════════════════════════════════ */
#porque {
  background: linear-gradient(160deg, rgba(155,35,53,0.07) 0%, rgba(5,16,31,0) 60%), var(--navy-alt);
  padding: 100px 64px;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(201,168,76,0.08);
  margin-top: 56px;
  border: 1px solid rgba(201,168,76,0.08);
}

.porque-card {
  background: rgba(13,30,56,0.6);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s, transform 0.22s ease, box-shadow 0.22s ease;
}
.porque-card:hover { background: rgba(201,168,76,0.045); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

.porque-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}
.porque-card:hover::after { width: 100%; }

.porque-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 110px;
  font-weight: 700;
  color: rgba(201,168,76,0.42);
  line-height: 1;
  position: absolute;
  top: 8px; right: 20px;
  pointer-events: none;
  letter-spacing: -4px;
  user-select: none;
}

.porque-icon-wrap {
  width: 48px; height: 48px;
  border: 1px solid rgba(201,168,76,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  margin-bottom: 28px;
}
.porque-icon-wrap svg { width: 22px; height: 22px; }

.porque-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.15;
}

.porque-desc {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
  font-weight: 300;
}

/* ═══════════════════════════════════════
   TESTIMONIOS
═══════════════════════════════════════ */
#testimonios {
  background: linear-gradient(180deg, #071526 0%, #05101f 60%, #0a0812 100%);
  padding: 100px 64px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.testimonio-card {
  background: var(--navy);
  border: 1px solid rgba(201,168,76,0.10);
  padding: 40px 36px;
  position: relative;
  transition: border-color 0.35s, transform 0.35s;
}
.testimonio-card::before {
  content: '\201C';
  position: absolute;
  top: 6px; left: 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  line-height: 1;
  color: rgba(201,168,76,0.22);
  pointer-events: none;
}
.testimonio-card:hover::before {
  color: rgba(201,168,76,0.45);
}
.testimonio-card:hover {
  border-color: rgba(201,168,76,0.28);
  transform: translateY(-5px);
}

.testimonio-stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 3px;
  margin-bottom: 20px;
  padding-top: 36px;
}

.testimonio-text {
  font-size: 14px;
  line-height: 1.92;
  color: rgba(255,255,255,0.80);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 28px;
}

.testimonio-divider {
  width: 32px; height: 1px;
  background: rgba(201,168,76,0.22);
  margin-bottom: 16px;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonio-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(155,35,53,0.22), rgba(201,168,76,0.08));
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px rgba(155,35,53,0.40), 0 0 0 3px rgba(201,168,76,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}
/* Color único por testimonio */
.testimonio-card:nth-child(1) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(40,85,160,0.28), rgba(40,85,160,0.08));
  box-shadow: 0 0 0 2px rgba(40,85,160,0.45), 0 0 0 3px rgba(40,85,160,0.16);
  color: #6b9ae8;
}
.testimonio-card:nth-child(2) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(201,168,76,0.28), rgba(201,168,76,0.08));
  box-shadow: 0 0 0 2px rgba(201,168,76,0.50), 0 0 0 3px rgba(201,168,76,0.18);
  color: var(--gold);
}
.testimonio-card:nth-child(3) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(155,35,53,0.28), rgba(155,35,53,0.08));
  box-shadow: 0 0 0 2px rgba(155,35,53,0.50), 0 0 0 3px rgba(155,35,53,0.18);
  color: #d4606f;
}

[data-theme="light"] .testimonio-avatar {
  background: linear-gradient(135deg, rgba(155,35,53,0.12), rgba(201,168,76,0.06));
  box-shadow: 0 0 0 2px rgba(155,35,53,0.28), 0 0 0 3px rgba(201,168,76,0.14);
  color: #9b2335;
}
[data-theme="light"] .testimonio-card:nth-child(1) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(40,85,160,0.16), rgba(40,85,160,0.05));
  box-shadow: 0 0 0 2px rgba(40,85,160,0.35), 0 0 0 3px rgba(40,85,160,0.12);
  color: #2855a0;
}
[data-theme="light"] .testimonio-card:nth-child(2) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.06));
  box-shadow: 0 0 0 2px rgba(201,168,76,0.40), 0 0 0 3px rgba(201,168,76,0.14);
  color: #8a6d1a;
}
[data-theme="light"] .testimonio-card:nth-child(3) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(155,35,53,0.16), rgba(155,35,53,0.05));
  box-shadow: 0 0 0 2px rgba(155,35,53,0.35), 0 0 0 3px rgba(155,35,53,0.12);
  color: #9b2335;
}

.testimonio-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2px;
}

.testimonio-role {
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 5px;
}

/* ═══════════════════════════════════════
   CONTACTO
═══════════════════════════════════════ */
#contacto {
  background: var(--navy);
  text-align: center;
  padding: 120px 64px 0;
  position: relative;
  overflow: hidden;
}
#contacto .section-label { justify-content: center; }
#contacto .section-intro  { text-align: center; margin: 0 auto; }
#contacto::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(155,35,53,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(201,168,76,0.06) 0%, transparent 60%),
    url('https://images.unsplash.com/photo-1554224155-8d04cb21cd6c?w=1600&q=60&auto=format&fit=crop&sat=-20') center/cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}

/* Card 2 columnas */
.contacto-card {
  max-width: 1200px;
  margin: 56px auto 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.07), transparent);
  border: 1px solid rgba(201,168,76,0.17);
  position: relative;
  text-align: left;
}
.contacto-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 2px;
  background: var(--gold);
}

.contacto-inner {
  display: grid;
  grid-template-columns: 300px 1fr 2.5fr;
  gap: 0 24px;
}

/* Columna izquierda — perfil */
.contacto-perfil {
  padding: 64px 48px;
  text-align: center;
  border-right: 1px solid rgba(201,168,76,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Foto placeholder — círculo con iniciales */
.cp-photo {
  width: 116px; height: 116px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(201,168,76,0.13) 0%, rgba(201,168,76,0.03) 100%);
  border: 1.5px solid rgba(201,168,76,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Cuando el usuario ponga su foto real:
   <img src="foto.jpg" class="cp-photo cp-photo-img"> */
.cp-photo-img {
  width: 116px; height: 116px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 1.5px solid rgba(201,168,76,0.28);
  display: block;
  margin: 0 auto 24px;
}

.cp-photo-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--silver);
  line-height: 1;
  pointer-events: none;
}

.cp-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 6px;
  line-height: 1.2;
}
.cp-title {
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}
.contact-buttons .cta-btn,
.contact-buttons .cta-btn-wa {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 13px 20px;
}

/* Columna derecha — detalles */
.contacto-detalles {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.detail-label {
  font-size: 9.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(201,168,76,0.55);
  margin-bottom: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.80);
}
.contact-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.25s;
}
.contact-link:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-icon {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  background: rgba(201,168,76,0.06);
}
.contact-icon svg { width: 15px; height: 15px; }

/* Mapa Google Maps */
.maps-wrap {
  margin-top: 56px;
  border: 1px solid rgba(201,168,76,0.12);
  border-top: none;
  overflow: hidden;
  line-height: 0;
}
.maps-wrap iframe {
  width: 100%;
  height: 380px;
  display: block;
  filter: grayscale(0.3) contrast(1.05);
}

/* Padding inferior de la sección */
#contacto > .maps-wrap {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

/* Espacio inferior debajo del mapa */
#contacto .maps-wrap {
  margin-bottom: -1px;
}

.cta-btn {
  display: inline-block;
  padding: 15px 44px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,168,76,0.30);
}

.cta-btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 36px;
  background: transparent;
  color: #25d366;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(37,211,102,0.32);
  transition: all 0.3s;
}
.cta-btn-wa svg { width: 18px; height: 18px; }
.cta-btn-wa:hover {
  background: rgba(37,211,102,0.07);
  border-color: #25d366;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   LOGO  (logo-h.png — sello circular "H")
   La imagen es landscape 1707×938px.
   Nav/Footer: recorte circular con cover → muestra solo el sello.
   Hero: imagen completa en contenedor proporcional.
═══════════════════════════════════════ */

/* NAV — recorte circular del sello */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  width:  90px;
  height: 90px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.50));
  transition: filter 0.3s, transform 0.3s, opacity 0.25s;
}
.nav-logo-img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 3px 14px rgba(201,168,76,0.45)) drop-shadow(0 0 22px rgba(201,168,76,0.25));
}

/* HERO — imagen completa proporcional */
.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto -44px;
  animation: fadeUp 0.8s ease 0.12s forwards;
  opacity: 0;
}
.hero-logo-wrap .hero-logo-img {
  animation: none;
  opacity: 1;
}
.hero-logo-img {
  height: 290px;
  width:  auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 40px rgba(0,0,0,0.60));
  display: block;
  margin: 0 auto;
}

/* FOOTER — recorte circular igual que nav */
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  width:  148px;
  height: 148px;
  object-fit: contain;
  display: block;
  opacity: 0.88;
  filter: drop-shadow(0 1px 6px rgba(0,0,0,0.40));
  transition: opacity 0.25s;
}

/* ═══════════════════════════════════════
   FORMULARIO DE CONTACTO
═══════════════════════════════════════ */
.contacto-form-wrap {
  padding: 64px 48px;
  border-left: 1px solid rgba(255,255,255,0.06);
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver-light);
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px;
  padding: 16px 20px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.25);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(201,168,76,0.55);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
  outline: none;
}
.form-group select option {
  background: var(--navy-mid);
  color: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #9b2335, #7d1921);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.form-submit:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .contacto-inner { grid-template-columns: 280px 1fr; }
  .contacto-form-wrap { grid-column: 1 / -1; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
  .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .contacto-inner { grid-template-columns: 1fr; }
  .contacto-form-wrap { padding: 36px 24px; }
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   WHATSAPP FLOTANTE
═══════════════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 80px; right: 32px;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  z-index: 90;
  box-shadow: 0 4px 20px rgba(37,211,102,0.40);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.10);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.wa-float::before {
  content: '¿Hablamos?';
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5,16,31,0.92);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.20);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.wa-float:hover::before { opacity: 1; }
.wa-float svg { width: 28px; height: 28px; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  background: #020c1b;
  padding: 56px 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  border-top: 1px solid rgba(201,168,76,0.08);
}
.footer-logo { display: flex; align-items: center; justify-content: center; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-links a {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-dimmer);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact-item:hover { color: var(--gold); }
.footer-contact-item:hover svg { animation: iconBounce 0.4s ease; }
@keyframes iconBounce {
  0%   { transform: translateY(0); }
  35%  { transform: translateY(-4px); }
  65%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}
.footer-divider {
  width: 40px; height: 1px;
  background: rgba(201,168,76,0.18);
}
.footer-text {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 1px;
  text-align: center;
}
.footer-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}
.footer-cta-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.3px;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #25d366 0%, #1da851 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.30);
  transition: box-shadow 0.3s, transform 0.2s;
}
.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
}

/* ═══════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════ */
#cta-strip {
  background: linear-gradient(110deg, #9b2335 0%, #7d1921 50%, #c9a84c 100%);
  padding: 40px 64px;
}
#cta-strip::before { display: none; }
.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.cta-strip-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}
.cta-strip-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #fff;
  color: #9b2335;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.cta-strip-btn:hover {
  background: var(--gold);
  color: var(--navy);
  transform: translateY(-2px);
}
@media (max-width: 768px) {
  .cta-strip-inner { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
#faq {
  background: #0b1520;
  padding: 100px 64px;
}
#faq::before { display: none; }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── Imagen lateral FAQ ── */
.faq-img-wrap { position: relative; }
.faq-img-frame {
  position: relative;
  border: 1px solid rgba(201,168,76,0.14);
  overflow: hidden;
}
.faq-img-frame::before {
  content: '';
  position: absolute;
  top: -14px; left: -14px;
  width: 100%; height: 100%;
  border: 1px solid rgba(201,168,76,0.09);
  z-index: -1;
}
.faq-img-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
  filter: brightness(0.82) contrast(1.04) saturate(0.88);
  transition: transform 0.6s ease;
}
.faq-img-frame:hover img { transform: scale(1.03); }

.faq-img-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
  background: linear-gradient(
    to top,
    rgba(5,16,31,0.88) 0%,
    rgba(5,16,31,0.35) 40%,
    transparent 100%
  );
}
.faq-overlay-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.faq-overlay-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--white);
  margin-bottom: 16px;
}
.faq-overlay-firma {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.faq-content { display: flex; flex-direction: column; }

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media (max-width: 1024px) {
  .faq-inner { grid-template-columns: 1fr; gap: 48px; }
  .faq-img-frame img { height: 320px; }
}
@media (max-width: 768px) {
  #faq { padding: 80px 24px; }
}
.faq-item {
  border: 1px solid rgba(201,168,76,0.10);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item.open { border-color: rgba(201,168,76,0.30); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: rgba(255,255,255,0.025);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s;
}
.faq-question:hover { background: rgba(255,255,255,0.045); }
.faq-item.open .faq-question { background: rgba(201,168,76,0.06); }
.faq-question span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.faq-icon {
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  padding: 0 28px 22px;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  font-weight: 300;
}

/* light mode */
[data-theme="light"] #faq { background: #ede7da; }
[data-theme="light"] .faq-img-frame { border-color: rgba(155,35,53,0.18); }
[data-theme="light"] .faq-question { background: rgba(13,30,56,0.03); }
[data-theme="light"] .faq-question:hover { background: rgba(13,30,56,0.06); }
[data-theme="light"] .faq-item.open .faq-question { background: rgba(201,168,76,0.10); }
[data-theme="light"] .faq-question span { color: #0d1e38; }
[data-theme="light"] .faq-item { border-color: rgba(13,30,56,0.10); }
[data-theme="light"] .faq-item.open { border-color: rgba(155,35,53,0.30); }
[data-theme="light"] .faq-icon { color: #9b2335; }
[data-theme="light"] .faq-answer p { color: rgba(13,30,56,0.68); }

@media (max-width: 768px) {
  .faq-question { padding: 18px 20px; }
  .faq-answer p { padding: 0 20px 18px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .nosotros-inner { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-image { order: -1; }
  .nosotros-img-frame img { height: 380px; }
}

@media (max-width: 1024px) {
  nav { padding: 16px 32px; }
  .stats-grid,
  .servicios-grid,
  .testimonios-grid,
  .proceso-grid,
  .sectores-grid,
  .blog-grid { padding: 0 32px; }
  .servicios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  nav { padding: 16px 28px; }
  nav.scrolled { padding: 12px 28px; }
  .nav-links { display: none; }
  .nav-login-btn {
    padding: 8px;
    border-radius: 50%;
    gap: 0;
    box-shadow: 0 2px 12px rgba(201,168,76,0.30);
  }
  .nav-login-btn span { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  section { padding: 80px 28px; }
  #stats { padding: 64px 28px; }
  #porque { padding: 80px 28px; }
  #testimonios { padding: 80px 28px; }
  .stats-grid { grid-template-columns: 1fr auto 1fr; }
  .stats-grid .stat-item:nth-child(6),
  .stats-grid .stat-sep:nth-child(5),
  .stats-grid .stat-sep:nth-child(7) { display: none; }
  footer { padding: 40px 20px; flex-direction: column; text-align: center; }
  .footer-links { gap: 8px 20px; }
  .footer-contact { flex-direction: column; align-items: center; gap: 10px; }
  .nav-logo-img { width: 72px; height: 72px; }
  nav.scrolled .nav-logo-img { width: 56px; height: 56px; }
  .nav-logo-sub { font-size: 9px; letter-spacing: 1.8px; }
  .hero-logo-img { height: 200px; }
  #inicio { padding-top: 100px; }
  .footer-logo-img { width: 100px; height: 100px; }
}

@media (max-width: 1024px) {
  .porque-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 768px) {
  .contacto-inner { grid-template-columns: 1fr; }
  .contacto-perfil {
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.10);
    padding: 48px 32px 40px;
  }
  .contact-buttons { flex-direction: row; flex-wrap: wrap; }
  .contact-buttons .cta-btn,
  .contact-buttons .cta-btn-wa { width: auto; flex: 1; min-width: 140px; }
  .contacto-detalles { padding: 40px 32px 48px; }
  .maps-wrap iframe { height: 300px; }
}

@media (max-width: 480px) {
  .servicios-grid,
  .proceso-grid,
  .sectores-grid,
  .blog-grid,
  .porque-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-cta-primary, .hero-cta-secondary { width: 100%; text-align: center; max-width: 280px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .stat-sep { display: none; }
  .stats-card { padding: 0 4px; }
  #contacto { padding: 80px 20px 0; }
  .contacto-perfil { padding: 40px 20px 32px; }
  .contacto-detalles { padding: 32px 20px 40px; }
  .contact-buttons { flex-direction: column; }
  .contact-buttons .cta-btn,
  .contact-buttons .cta-btn-wa { width: 100%; }
  .wa-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .wa-float svg { width: 24px; height: 24px; }
  .nav-logo-img { width: 64px; height: 64px; }
  nav.scrolled .nav-logo-img { width: 52px; height: 52px; }
  .nav-logo-name { font-size: 17px; }
  nav.scrolled .nav-logo-name { font-size: 17px; }
  .nav-logo-sub { font-size: 8px; letter-spacing: 1.4px; }
  .hero-logo-img { height: 160px; }
  #inicio { padding-top: 90px; padding-bottom: 40px; }
  .hero-title { font-size: clamp(42px, 12vw, 72px); letter-spacing: -1px; }
  .hero-content { padding: 20px 16px 0; }
  .footer-logo-img { width: 90px; height: 90px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0; padding: 32px 8px; border-radius: 16px; }
  .stat-item { padding: 28px 16px; }
  .stat-desc { font-size: 12px; }
}

/* ═══════════════════════════════════════
   PROCESO
═══════════════════════════════════════ */
#proceso {
  background: var(--navy-alt);
}
.proceso-line-wrap {
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 48px;
}
.proceso-line-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #9b2335 0%, var(--gold) 50%, #9b2335 100%);
  background-size: 200% auto;
  transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: lineGlow 3s ease-in-out infinite;
}
.proceso-line-fill.active { width: 100%; }
@keyframes lineGlow {
  0%, 100% { filter: brightness(1);   }
  50%       { filter: brightness(1.4); }
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.proceso-step {
  padding: 44px 32px;
  background: var(--navy);
  transition: background 0.3s;
  position: relative;
}
.proceso-step:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid rgba(201,168,76,0.40);
  border-top: 2px solid rgba(201,168,76,0.40);
  transform: translateY(-50%) rotate(45deg);
  z-index: 2;
}
.proceso-step::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #9b2335, var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.proceso-step:hover {
  background: var(--navy-light);
}
.proceso-step:hover::after {
  opacity: 1;
}
.proceso-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 700;
  color: rgba(201,168,76,0.36);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}
.proceso-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--silver-light);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.proceso-step:hover .proceso-icon {
  background: rgba(201,168,76,0.14);
  border-color: rgba(201,168,76,0.45);
  color: var(--gold);
}
.proceso-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.proceso-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   SECTORES
═══════════════════════════════════════ */
#sectores {
  background: var(--navy);
}

/* Header dos columnas */
.sectores-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 52px;
}
.sectores-header-left {}
.sectores-title { margin-bottom: 0; }
.sectores-title-accent { color: var(--gold); }
.sectores-header-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 32px;
  border-left: 1px solid rgba(201,168,76,0.20);
}
.sectores-header-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.80);
}
.sectores-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1.5px solid #e8394f;
  color: #e8394f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.2s, color 0.2s;
}
.sectores-btn:hover {
  background: #e8394f;
  color: #ffffff;
}

/* Grid 3x3 */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sector-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: rgba(13,28,48,0.60);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 14px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.sector-item::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(155,35,53,0.70), transparent);
  opacity: 0;
  transition: opacity 0.22s;
}
.sector-item:hover {
  transform: translateY(-4px);
  border-color: rgba(155,35,53,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.sector-item:hover::after { opacity: 1; }
.sector-icon {
  width: 62px; height: 62px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(155,35,53,0.12);
  border: 1.5px solid rgba(155,35,53,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8394f;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
}
.sector-item:hover .sector-icon {
  background: rgba(155,35,53,0.22);
  border-color: rgba(155,35,53,0.60);
  color: #ff5570;
}
.sector-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sector-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.22s;
}
.sector-item:hover .sector-name { color: var(--gold); }
.sector-desc {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,0.60);
}

@media (max-width: 900px) {
  .proceso-grid { grid-template-columns: repeat(2, 1fr); }
  .sectores-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-step:not(:last-child)::before { display: none; }
  .sectores-header {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 36px;
  }
  .sectores-header-right {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(201,168,76,0.20);
    padding-top: 24px;
  }
}
@media (max-width: 480px) {
  .proceso-grid { grid-template-columns: 1fr; }
  .sectores-grid { grid-template-columns: 1fr; gap: 10px; }
  .sector-item { padding: 20px 16px; gap: 14px; }
  .sector-icon { width: 50px; height: 50px; }
  .sectores-header { margin-bottom: 28px; }
  .proceso-step { padding: 32px 24px; }
}

/* ═══════════════════════════════════════
   BLOG / ARTÍCULOS
═══════════════════════════════════════ */
#blog {
  background: linear-gradient(170deg, var(--navy-alt) 0%, var(--navy-mid) 50%, var(--navy-alt) 100%);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.blog-card {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.40), 0 0 0 1px rgba(201,168,76,0.22);
  border-color: rgba(201,168,76,0.20);
}
.blog-card-img {
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 12px 12px 0 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.blog-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(155,35,53,0.0) 0%, rgba(155,35,53,0.55) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 12px 12px 0 0;
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}
.blog-card:hover .blog-card-img::after {
  opacity: 1;
}
.blog-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}
.blog-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-date, .blog-topic {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}
.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 12px;
}
.blog-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
  transition: color 0.3s, gap 0.3s;
}
.blog-read-more:hover {
  color: var(--white);
  gap: 10px;
}
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
  .blog-card-img { height: 160px; }
}

/* ═══════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 60%, rgba(201,168,76,0.4) 100%);
  z-index: 200;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para ítems dentro de grids */
.servicios-grid   .servicio-card.visible  { transition-delay: calc(var(--i, 0) * 60ms); }
.testimonios-grid .testimonio-card.visible { transition-delay: calc(var(--i, 0) * 80ms); }
.valores-grid     .valor-card.visible      { transition-delay: calc(var(--i, 0) * 55ms); }
.porque-grid      .porque-card.visible     { transition-delay: calc(var(--i, 0) * 70ms); }
.sectores-grid    .sector-item.visible     { transition-delay: calc(var(--i, 0) * 45ms); }
.blog-grid        .blog-card.visible       { transition-delay: calc(var(--i, 0) * 75ms); }


/* ═══════════════════════════════════════
   FOCUS (ACCESIBILIDAD)
═══════════════════════════════════════ */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.nav-links a:focus-visible,
.theme-toggle:focus-visible,
.servicio-link:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 3px;
  border-radius: 3px;
}

@media (max-width: 480px) {
  .nav-logo-img { width: 52px; height: 52px; }
  nav.scrolled .nav-logo-img { width: 44px; height: 44px; }
  .hero-logo-img { height: 130px; }
  .hero-title { font-size: clamp(36px, 13vw, 60px); }
  .stats-grid { grid-template-columns: 1fr; gap: 0; }
  .stats-header { padding: 0 8px; }
  .stats-eyebrow { font-size: 2rem; }
  .stats-title { font-size: 1rem; }
  #stats { padding: 56px 16px; }
}

/* ═══════════════════════════════════════
   PRINT
═══════════════════════════════════════ */
@media print {
  nav, .wa-float, .scroll-progress, .hero-scroll,
  .hero-actions, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
  #inicio { min-height: auto; padding: 40px 0; background: #fff !important; }
  .hero-title, .hero-subtitle { color: #000 !important; }
  .hero-title span { color: #8a6820 !important; }
  section { page-break-inside: avoid; }
}

/* ═══════════════════════════════════════
   FORM SUCCESS MESSAGE
═══════════════════════════════════════ */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
}
.form-success svg {
  color: #4caf82;
  flex-shrink: 0;
}
.form-success strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
}
.form-success p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   VOLVER ARRIBA
═══════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 152px; right: 32px;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(5,16,31,0.90);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  backdrop-filter: blur(8px);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.65);
}

/* ═══════════════════════════════════════
   BARRA CTA MÓVIL
═══════════════════════════════════════ */
.mobile-cta-bar {
  display: none;
}
@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 101;
    height: 56px;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.4);
  }
  .mobile-cta-call,
  .mobile-cta-wa {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: filter 0.2s;
  }
  .mobile-cta-call {
    background: var(--navy-light);
    color: var(--white);
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  .mobile-cta-wa {
    background: #1fbe5e;
    color: #fff;
  }
  .mobile-cta-call:active,
  .mobile-cta-wa:active { filter: brightness(0.88); }
  /* Espacio para que el footer no quede tapado */
  footer { padding-bottom: 72px; }
  /* Ocultar botón flotante WA en móvil (la barra ya lo cubre) */
  .wa-float { display: none; }
}

/* ═══════════════════════════════════════
   SERVICIO LINK (CTA en cards)
═══════════════════════════════════════ */
.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: gap 0.3s, color 0.3s;
  position: relative;
}
.servicio-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.servicio-link:hover { gap: 10px; color: var(--gold-light); }
.servicio-link:hover::after { width: 100%; }

[data-theme="light"] .servicio-link { color: #9b2335; }
[data-theme="light"] .servicio-link::after { background: #9b2335; }
[data-theme="light"] .servicio-link:hover { color: #7d1921; }

/* ═══════════════════════════════════════
   AVISO DE PRIVACIDAD (modal)
═══════════════════════════════════════ */
.aviso-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,12,27,0.85);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.aviso-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.aviso-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.18);
  padding: 48px 44px;
  max-width: 560px;
  width: 92%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
  max-height: 85vh;
  overflow-y: auto;
}
.aviso-overlay.active .aviso-modal { transform: translateY(0); }
.aviso-close {
  position: absolute;
  top: 14px; right: 18px;
  background: none; border: none;
  color: var(--gray);
  font-size: 22px; cursor: pointer;
  line-height: 1; transition: color 0.2s;
}
.aviso-close:hover { color: var(--white); }
.aviso-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 700;
  color: var(--white);
  margin-bottom: 24px;
  padding-right: 24px;
}
.aviso-body p {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.aviso-body p strong { color: var(--silver-light); }
.aviso-body a { color: var(--gold); text-decoration: underline; }
.aviso-cta {
  margin-top: 10px;
  padding: 11px 32px;
  background: linear-gradient(135deg, #9b2335 0%, #7d1921 100%);
  border: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 1px; cursor: pointer;
  transition: filter 0.2s;
}
.aviso-cta:hover { filter: brightness(1.15); }

/* Modo claro */
[data-theme="light"] .aviso-overlay { background: rgba(13,30,56,0.65); }
[data-theme="light"] .aviso-modal {
  background: #d2d5e2;
  border-color: rgba(13,30,56,0.12);
}
[data-theme="light"] .aviso-title { color: #0d1e38; }
[data-theme="light"] .aviso-body p { color: rgba(13,30,56,0.70); }
[data-theme="light"] .aviso-body p strong { color: #0d1e38; }
[data-theme="light"] .aviso-body a { color: #2855a0; }
[data-theme="light"] .aviso-close { color: #6b7a99; }
[data-theme="light"] .aviso-close:hover { color: #0d1e38; }
[data-theme="light"] .aviso-cta {
  background: linear-gradient(135deg, #2855a0, #1a3a7a);
}

/* ═══════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(201,168,76,0.30);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.35s;
}
.theme-toggle:hover {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.65);
  transform: rotate(22deg);
}
/* En modo oscuro: mostrar sol (para cambiar a claro) */
.theme-toggle .icon-sun  { display: block; }
.theme-toggle .icon-moon { display: none; }
/* En modo claro: mostrar luna (para cambiar a oscuro) */
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

@media (max-width: 900px) {
  .theme-toggle { width: 34px; height: 34px; }
}

/* ═══════════════════════════════════════
   MODO CLARO — VARIABLES Y OVERRIDES
   Paleta inspirada en el logo: plata, navy, guinda, bronce
═══════════════════════════════════════ */

/* Transición suave al cambiar tema */
body,
nav, nav *, footer, footer *,
section, .servicio-card, .porque-card,
.testimonio-card, .blog-card, .sector-item,
.proceso-step, .stat-item, .mision-box,
.vision-box, .valor-card, .contacto-card,
.form-group input, .form-group select,
.form-group textarea {
  transition-property: background, background-color, color, border-color, box-shadow, filter;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

/* ── Body ── */
[data-theme="light"] body {
  background: #f0ebe0;
  color: #0d1e38;
}

/* ── Nav ── */
[data-theme="light"] nav {
  background: rgba(248,243,236,0.97);
  border-bottom: 1px solid rgba(13,30,56,0.09);
  box-shadow: 0 2px 20px rgba(13,30,56,0.07);
}
[data-theme="light"] nav.scrolled {
  background: rgba(244,239,230,0.99);
  border-bottom-color: rgba(155,35,53,0.14);
}
[data-theme="light"] .nav-logo-name {
  background: linear-gradient(110deg, #0d1e38 0%, #2a3f6e 40%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .nav-logo-sub {
  background: linear-gradient(110deg, #3a4f78 0%, #6b7a99 50%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .nav-links a { color: rgba(13,30,56,0.58); }
[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active { color: #0d1e38; }
[data-theme="light"] .theme-toggle {
  border-color: rgba(40,85,160,0.30);
  color: #2855a0;
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(40,85,160,0.09);
  border-color: rgba(40,85,160,0.55);
}
[data-theme="light"] .hamburger span { background: #2855a0; }
[data-theme="light"] .mobile-menu {
  background: rgba(248,243,236,0.99);
}
[data-theme="light"] .mobile-menu a { color: rgba(13,30,56,0.72); }
[data-theme="light"] .mobile-menu a:hover { color: #0d1e38; }

/* ── Logo — tamaño y filtros en modo claro ──
   El logo oscuro es landscape (1707×938) → en un box 148px
   el contenido visible es ≈ 148×81px.
   El logo claro es circular (1:1) → a 85px ocupa lo mismo visualmente.
   Hero oscuro: height 290px × width auto ≈ 290×528px.
   Hero claro:  height 160px mantiene proporción visual equivalente.
── */
[data-theme="light"] .nav-logo-img {
  width:  90px;
  height: 90px;
  object-fit: contain;
  transform: scale(0.42);
  filter: drop-shadow(0 2px 10px rgba(13,30,56,0.14));
}
[data-theme="light"] nav.scrolled .nav-logo-img {
  width:  70px;
  height: 70px;
}
[data-theme="light"] .nav-logo-img:hover {
  transform: scale(0.84);
  filter: drop-shadow(0 3px 16px rgba(155,35,53,0.30)) drop-shadow(0 0 20px rgba(155,35,53,0.16));
}
[data-theme="light"] .hero-logo-img {
  height: 290px;
  width:  auto;
  max-height: none;
  max-width:  none;
  transform: scale(0.58);
  filter:
    drop-shadow(0 0 18px rgba(13,30,56,0.25))
    drop-shadow(0 6px 28px rgba(13,30,56,0.20))
    drop-shadow(0 2px 6px rgba(13,30,56,0.30));
}
[data-theme="light"] .footer-logo-img {
  width:  148px;
  height: 148px;
  object-fit: contain;
  transform: scale(0.43);
  filter: drop-shadow(0 2px 10px rgba(13,30,56,0.14));
  opacity: 1;
}
@media (max-width: 900px) {
  [data-theme="light"] .nav-logo-img { width: 80px; height: 80px; transform: scale(0.68); }
  [data-theme="light"] nav.scrolled .nav-logo-img { width: 66px; height: 66px; transform: scale(0.64); }
  [data-theme="light"] .hero-logo-img { height: 200px; }
}
@media (max-width: 768px) {
  [data-theme="light"] .nav-logo-img { width: 76px; height: 76px; transform: scale(0.70); }
  [data-theme="light"] nav.scrolled .nav-logo-img { width: 62px; height: 62px; transform: scale(0.66); }
  [data-theme="light"] .hero-logo-img { height: 160px; }
}
@media (max-width: 480px) {
  [data-theme="light"] .nav-logo-img { width: 72px; height: 72px; transform: scale(0.72); }
  [data-theme="light"] nav.scrolled .nav-logo-img { width: 60px; height: 60px; transform: scale(0.68); }
  [data-theme="light"] .hero-logo-img { height: 130px; }
}


/* ── Scroll progress ── */
[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, #9b2335 0%, #c9a84c 60%, rgba(155,35,53,0.4) 100%);
}

/* ── Hero logo wrap — logo más pequeño, margin compensa para que el texto quede igual ── */
[data-theme="light"] .hero-logo-wrap {
  margin-bottom: -44px;
}

/* ── Hero ── */
[data-theme="light"] #inicio {
  background:
    linear-gradient(160deg, rgba(240,235,224,0.78) 0%, rgba(228,220,205,0.72) 55%, rgba(240,235,224,0.78) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
}
[data-theme="light"] .hero-bg-lines {
  background-image:
    linear-gradient(rgba(13,30,56,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,30,56,0.035) 1px, transparent 1px);
}
[data-theme="light"] .hero-bg-lines::before {
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 80px,
    rgba(13,30,56,0.015) 80px,
    rgba(13,30,56,0.015) 81px
  );
}
[data-theme="light"] .hero-bg-lines::after {
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(155,35,53,0.035) 50%,
    transparent 70%
  );
}
[data-theme="light"] .hero-orb {
  background: radial-gradient(circle, rgba(155,35,53,0.10) 0%, transparent 62%);
}
[data-theme="light"] .hero-title-main,
[data-theme="light"] .hero-title-sub {
  background: linear-gradient(110deg, #0d1e38 0%, #1e3460 40%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .hero-tag {
  color: rgba(13,30,56,0.82);
  border-color: rgba(13,30,56,0.18);
  background: rgba(13,30,56,0.05);
}
[data-theme="light"] .hero-subtitle { color: rgba(13,30,56,0.72); }
[data-theme="light"] .hero-desc { color: rgba(13,30,56,0.65); }
[data-theme="light"] .hero-cta-primary {
  background: linear-gradient(135deg, #2855a0 0%, #1a3a7a 100%);
  box-shadow: 0 4px 20px rgba(40,85,160,0.30);
}
[data-theme="light"] .hero-cta-primary:hover {
  background: linear-gradient(135deg, #3465b8 0%, #2855a0 100%);
  box-shadow: 0 14px 36px rgba(40,85,160,0.40);
}
[data-theme="light"] .form-submit {
  background: linear-gradient(135deg, #2855a0, #1a3a7a);
}
[data-theme="light"] .hero-cta-secondary {
  color: #0d1e38;
  border-color: rgba(13,30,56,0.22);
}
[data-theme="light"] .hero-cta-secondary:hover {
  border-color: #2855a0;
  color: #2855a0;
}
[data-theme="light"] .hero-divider {
  background: linear-gradient(90deg, transparent, #9b2335, rgba(155,35,53,0.3), transparent);
}

/* ── Stats ── */
[data-theme="light"] #stats {
  background: #e8e2d4;
  border-color: rgba(13,30,56,0.10);
}
[data-theme="light"] .stats-grid { background: rgba(13,30,56,0.07); }
[data-theme="light"] .stat-item {
  background: #e8e2d4;
}
[data-theme="light"] .stat-item:hover { background: rgba(40,85,160,0.05); }
[data-theme="light"] .stat-icon { color: rgba(155,35,53,0.45); }
[data-theme="light"] .stat-item:hover .stat-icon { color: #9b2335; }
[data-theme="light"] .stat-num {
  background: linear-gradient(110deg, #0d1e38 0%, #2a3f6e 45%, #c9a84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .stat-num--guinda {
  background: linear-gradient(110deg, #0d1e38 0%, #2a3f6e 40%, #9b2335 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .stat-plus { color: rgba(13,30,56,0.50); }
[data-theme="light"] .stat-label { color: #6b7a99; }
[data-theme="light"] .stats-note { color: rgba(13,30,56,0.38); }

/* ── Sections general ── */
[data-theme="light"] .section-label { color: #9b2335; }
[data-theme="light"] .section-label::before { background: linear-gradient(90deg, #7d1921, #9b2335, #c9a84c); }
[data-theme="light"] .section-title {
  background: linear-gradient(110deg, #0d1e38 0%, #1e3460 55%, #2855a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .section-intro { color: rgba(13,30,56,0.60); }

[data-theme="light"] section + section::before {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(13,30,56,0.04) 20%,
    rgba(13,30,56,0.10) 50%,
    rgba(13,30,56,0.04) 80%,
    transparent 100%);
}

/* ── Servicios ── */
[data-theme="light"] #servicios { background: #ede7da; }
[data-theme="light"] .servicios-grid {
  background: rgba(13,30,56,0.08);
  border-color: rgba(13,30,56,0.08);
}
[data-theme="light"] .servicio-card { background: #ede7da; }
[data-theme="light"] .servicio-card:hover {
  background: #f5f0e6;
  box-shadow: 0 8px 40px rgba(13,30,56,0.09), 0 0 0 1px rgba(155,35,53,0.22);
}
[data-theme="light"] .servicio-num { color: rgba(40,85,160,0.18); }
[data-theme="light"] .servicio-name { color: #0d1e38; }
[data-theme="light"] .servicio-desc { color: rgba(13,30,56,0.55); }
[data-theme="light"] .servicio-icon-wrap {
  background: rgba(155,35,53,0.06);
  border-color: rgba(155,35,53,0.22);
  color: #9b2335;
}
[data-theme="light"] .servicio-card:hover .servicio-icon-wrap {
  background: rgba(155,35,53,0.12);
  border-color: rgba(155,35,53,0.45);
  color: #7d1921;
}
[data-theme="light"] .inst-label { color: rgba(13,30,56,0.30); }
[data-theme="light"] .inst-badge {
  background: rgba(13,30,56,0.05);
  border-color: rgba(13,30,56,0.12);
  color: #3a4f78;
}
[data-theme="light"] .inst-badge:hover {
  background: rgba(13,30,56,0.10);
  border-color: #3a4f78;
  color: #0d1e38;
}

/* ── Por qué nosotros ── */
[data-theme="light"] #porque {
  background: #e3dcd0;
  border-bottom-color: rgba(13,30,56,0.10);
}
[data-theme="light"] .porque-grid {
  background: rgba(13,30,56,0.08);
  border-color: rgba(13,30,56,0.08);
}
[data-theme="light"] .porque-card { background: rgba(232,226,215,0.85); }
[data-theme="light"] .porque-card:hover { background: #f0ebe0; }
[data-theme="light"] .porque-num { color: rgba(40,85,160,0.18); }
[data-theme="light"] .porque-icon-wrap {
  background: rgba(155,35,53,0.06);
  border-color: rgba(155,35,53,0.22);
  color: #9b2335;
}
[data-theme="light"] .porque-title { color: #0d1e38; }
[data-theme="light"] .porque-desc { color: rgba(13,30,56,0.62); }

/* ── Nosotros ── */
[data-theme="light"] #nosotros { background: #ede7da; }
[data-theme="light"] .mision-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.09), rgba(201,168,76,0.03));
  border-color: rgba(201,168,76,0.28);
  border-left-color: #c9a84c;
}
[data-theme="light"] .vision-box {
  background: rgba(13,30,56,0.03);
  border-color: rgba(13,30,56,0.07);
  border-left-color: rgba(155,35,53,0.30);
}
[data-theme="light"] .box-label { color: #6b7a99; }
[data-theme="light"] .box-text { color: rgba(13,30,56,0.62); }
[data-theme="light"] .nosotros-img-badge {
  background: linear-gradient(105deg, rgba(13,30,56,0.94) 0%, rgba(155,35,53,0.88) 100%);
  border-top-color: rgba(201,168,76,0.32);
}
[data-theme="light"] .badge-num { color: var(--gold); }
[data-theme="light"] .badge-text { color: rgba(255,255,255,0.90); }
[data-theme="light"] .cp-name,
[data-theme="light"] .cp-photo-initials { color: #3a4f78; }
[data-theme="light"] .cp-title { color: #6b7a99; }

/* ── Valores ── */
[data-theme="light"] #valores { background: #cfc8b8; }
[data-theme="light"] .valores-grid { background: rgba(13,30,56,0.10); }
[data-theme="light"] .valor-card { background: #f0ebe0; }
[data-theme="light"] .valor-card:hover { background: #f8f4ec; }

/* ── Proceso ── */
[data-theme="light"] #proceso { background: #e3dcd0; }
[data-theme="light"] .proceso-grid {
  background: rgba(13,30,56,0.08);
  border-color: rgba(13,30,56,0.10);
}
[data-theme="light"] .proceso-step { background: #ede7da; }
[data-theme="light"] .proceso-step:not(:last-child)::before {
  border-color: rgba(13,30,56,0.28);
}
[data-theme="light"] .proceso-step:hover { background: #f5f0e6; }
[data-theme="light"] .proceso-num { color: rgba(40,85,160,0.18); }
[data-theme="light"] .proceso-title { color: #0d1e38; }
[data-theme="light"] .proceso-desc { color: rgba(13,30,56,0.62); }
[data-theme="light"] .proceso-icon {
  background: rgba(155,35,53,0.06);
  border-color: rgba(155,35,53,0.22);
  color: #9b2335;
}
[data-theme="light"] .proceso-step:hover .proceso-icon {
  background: rgba(155,35,53,0.13);
  border-color: rgba(155,35,53,0.45);
  color: #7d1921;
}

/* ── Sectores ── */
[data-theme="light"] #sectores { background: #ede7da; }
[data-theme="light"] .sector-item {
  background: #f5f0e6;
  border-color: rgba(13,30,56,0.10);
}
[data-theme="light"] .sector-item:hover {
  box-shadow: 0 16px 36px rgba(13,30,56,0.10), 0 0 0 1px rgba(40,85,160,0.22);
  border-color: rgba(40,85,160,0.26);
}
[data-theme="light"] .sector-icon {
  background: rgba(155,35,53,0.06);
  border-color: rgba(155,35,53,0.18);
  color: #9b2335;
}
[data-theme="light"] .sector-item:hover .sector-icon {
  background: rgba(155,35,53,0.13);
  border-color: rgba(155,35,53,0.45);
  color: #7d1921;
}
[data-theme="light"] .sector-name { color: rgba(13,30,56,0.65); }
[data-theme="light"] .sector-item:hover .sector-name { color: #9b2335; }

/* ── Testimonios ── */
[data-theme="light"] #testimonios { background: #ede7da; }
[data-theme="light"] .testimonio-card {
  background: #f5f0e6;
  border-color: rgba(13,30,56,0.10);
}
[data-theme="light"] .testimonio-card:hover {
  border-color: rgba(40,85,160,0.26);
}
[data-theme="light"] .testimonio-card::before { color: rgba(40,85,160,0.16); }
[data-theme="light"] .testimonio-card:hover::before { color: rgba(40,85,160,0.36); }
[data-theme="light"] .testimonio-stars { color: #c9a84c; }
[data-theme="light"] .testimonio-text { color: rgba(13,30,56,0.62); }
[data-theme="light"] .testimonio-name { color: #9b2335; }
[data-theme="light"] .testimonio-role { color: #6b7a99; }
[data-theme="light"] .testimonio-divider { background: rgba(40,85,160,0.20); }

/* ── Blog ── */
[data-theme="light"] #blog { background: #e3dcd0; }
[data-theme="light"] .blog-card {
  background: #f5f0e6;
  border-color: rgba(13,30,56,0.10);
}
[data-theme="light"] .blog-card:hover {
  box-shadow: 0 16px 48px rgba(13,30,56,0.10), 0 0 0 1px rgba(40,85,160,0.18);
  border-color: rgba(40,85,160,0.18);
}
[data-theme="light"] .blog-date, [data-theme="light"] .blog-topic { color: #6b7a99; }
[data-theme="light"] .blog-card-title { color: #0d1e38; }
[data-theme="light"] .blog-card-desc { color: rgba(13,30,56,0.60); }
[data-theme="light"] .blog-read-more { color: #6b7a99; }
[data-theme="light"] .blog-read-more:hover { color: #0d1e38; }

/* ── Contacto ── */
[data-theme="light"] #contacto { background: #e3dcd0; }
[data-theme="light"] .contacto-card {
  background: linear-gradient(135deg, rgba(245,240,230,0.92), rgba(232,224,210,0.75));
  border-color: rgba(13,30,56,0.12);
}
[data-theme="light"] .contacto-perfil {
  border-right-color: rgba(13,30,56,0.08);
}
[data-theme="light"] .detail-label { color: rgba(40,85,160,0.70); }
[data-theme="light"] .contact-item,
[data-theme="light"] .contact-link { color: rgba(13,30,56,0.78); }
[data-theme="light"] .contact-link:hover { color: #0d1e38; }
[data-theme="light"] .contact-icon {
  border-color: rgba(40,85,160,0.28);
  color: #2855a0;
  background: rgba(40,85,160,0.07);
}
[data-theme="light"] .contacto-form-wrap {
  border-left-color: rgba(13,30,56,0.08);
  border-top-color: rgba(13,30,56,0.08);
}
[data-theme="light"] .form-title { color: #0d1e38; }
[data-theme="light"] .form-subtitle { color: rgba(13,30,56,0.60); }
[data-theme="light"] .form-group label { color: #3a4f78; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255,252,247,0.85);
  border-color: rgba(13,30,56,0.14);
  color: #0d1e38;
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: rgba(13,30,56,0.28);
}
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: rgba(155,35,53,0.55);
  background: rgba(255,252,247,0.95);
  box-shadow: 0 0 0 3px rgba(155,35,53,0.10), 0 0 0 5px rgba(201,168,76,0.06);
}
[data-theme="light"] .form-group select option {
  background: #f5f0e6;
  color: #0d1e38;
}
[data-theme="light"] .maps-wrap {
  border-color: rgba(13,30,56,0.10);
}

/* ── Modal próximamente ── */
[data-theme="light"] .proximamente-overlay {
  background: rgba(13,30,56,0.65);
}
[data-theme="light"] .proximamente-modal {
  background: #ede7da;
  border-color: rgba(13,30,56,0.12);
}
[data-theme="light"] .proximamente-close { color: #6b7a99; }
[data-theme="light"] .proximamente-close:hover { color: #0d1e38; }
[data-theme="light"] .proximamente-title { color: #0d1e38; }
[data-theme="light"] .proximamente-desc { color: rgba(13,30,56,0.62); }

/* ── WA float ── */
[data-theme="light"] .wa-float::before {
  background: rgba(13,30,56,0.90);
  border-color: rgba(13,30,56,0.18);
}

/* ── Back to top ── */
[data-theme="light"] .back-to-top {
  background: rgba(240,235,224,0.92);
  border-color: rgba(155,35,53,0.30);
  color: #9b2335;
}
[data-theme="light"] .back-to-top:hover {
  background: rgba(155,35,53,0.07);
  border-color: rgba(155,35,53,0.55);
}

/* ── Mobile CTA bar ── */
[data-theme="light"] .mobile-cta-call {
  background: #0d1e38;
  color: #ffffff;
}

/* ── Footer ── */
[data-theme="light"] footer {
  background: #d8d2c5;
  border-top-color: rgba(13,30,56,0.12);
}
[data-theme="light"] .footer-cta-text { color: #0d1e38; }
[data-theme="light"] .footer-links a { color: #6b7a99; }
[data-theme="light"] .footer-links a:hover { color: #2855a0; }
[data-theme="light"] .footer-contact-item { color: rgba(13,30,56,0.48); }
[data-theme="light"] .footer-contact-item:hover { color: #2855a0; }
[data-theme="light"] .footer-divider { background: rgba(13,30,56,0.12); }
[data-theme="light"] .footer-text { color: #6b7a99; }

/* ── Form success ── */
[data-theme="light"] .form-success { color: #0d1e38; }
[data-theme="light"] .form-success p { color: rgba(13,30,56,0.62); }

/* ═══════════════════════════════════════
   SKIP LINK (ACCESIBILIDAD)
═══════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════
   SMOOTH THEME TRANSITION
═══════════════════════════════════════ */
body {
  transition: background-color 0.35s ease, color 0.35s ease;
}

/* ═══════════════════════════════════════
   BLOG READ MORE — button style
═══════════════════════════════════════ */
button.blog-read-more {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
}

/* ═══════════════════════════════════════
   MODAL ARTÍCULOS (BLOG)
═══════════════════════════════════════ */
.articulo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2,10,22,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.articulo-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.articulo-modal {
  background: var(--navy-mid);
  border: 1px solid rgba(201,168,76,0.16);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}
.articulo-overlay.active .articulo-modal {
  transform: translateY(0);
}
.articulo-close {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(5,16,31,0.85);
  border: none;
  color: var(--gray);
  font-size: 22px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  margin: 12px 12px 0 0;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.articulo-close:hover { color: var(--white); background: rgba(155,35,53,0.4); }
.articulo-content {
  padding: 32px 40px 24px;
  clear: both;
}
.articulo-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.articulo-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.articulo-lead {
  font-size: 15px;
  line-height: 1.80;
  color: var(--text-dim);
  margin-bottom: 28px;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
.articulo-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--silver-light);
  margin: 24px 0 12px;
}
.articulo-content ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.articulo-content li {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
}
.articulo-content li strong { color: var(--silver-light); }
.articulo-cta-wrap {
  padding: 24px 40px 32px;
  border-top: 1px solid rgba(201,168,76,0.12);
  text-align: center;
}
.articulo-cta-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.articulo-cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #9b2335, #7d1921);
  color: var(--white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 6px;
  transition: filter 0.2s, transform 0.2s;
}
.articulo-cta-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }

/* ═══════════════════════════════════════
   PORTAL LEAD FORM
═══════════════════════════════════════ */
.portal-lead-form { margin-top: 4px; }
.portal-input-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.portal-email-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 11px 16px;
  outline: none;
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.portal-email-input::placeholder { color: rgba(255,255,255,0.30); }
.portal-email-input:focus {
  border-color: rgba(201,168,76,0.55);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.10);
}
.portal-submit-btn {
  background: linear-gradient(135deg, var(--gold), #e8d080);
  color: var(--navy);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 11px 20px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.2s;
}
.portal-submit-btn:hover { filter: brightness(1.1); }
.portal-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.30);
  letter-spacing: 0.3px;
}
.portal-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 14px;
  padding: 8px 0;
}
.portal-success p { color: rgba(255,255,255,0.70); }

/* ═══════════════════════════════════════
   FOOTER SOCIAL
═══════════════════════════════════════ */
.footer-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}
.footer-social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.18);
  background: rgba(201,168,76,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  text-decoration: none;
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.footer-social-link:hover {
  background: rgba(201,168,76,0.14);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
[data-theme="light"] .footer-social-link {
  border-color: rgba(13,30,56,0.16);
  background: rgba(13,30,56,0.04);
  color: #6b7a99;
}
[data-theme="light"] .footer-social-link:hover {
  background: rgba(155,35,53,0.08);
  border-color: #9b2335;
  color: #9b2335;
}

/* ═══════════════════════════════════════
   LIGHT MODE — MODAL ARTÍCULOS
═══════════════════════════════════════ */
[data-theme="light"] .articulo-modal {
  background: #ede7da;
  border-color: rgba(13,30,56,0.12);
}
[data-theme="light"] .articulo-close {
  background: rgba(240,235,224,0.90);
  color: #6b7a99;
}
[data-theme="light"] .articulo-close:hover { background: rgba(155,35,53,0.10); color: #9b2335; }
[data-theme="light"] .articulo-title { color: #0d1e38; }
[data-theme="light"] .articulo-lead { color: rgba(13,30,56,0.70); }
[data-theme="light"] .articulo-content h3 { color: #0d1e38; }
[data-theme="light"] .articulo-content li { color: rgba(13,30,56,0.65); }
[data-theme="light"] .articulo-content li strong { color: #0d1e38; }
[data-theme="light"] .articulo-cta-wrap { border-top-color: rgba(13,30,56,0.10); }
[data-theme="light"] .articulo-cta-text { color: rgba(13,30,56,0.60); }

/* ── LIGHT MODE portal ── */
[data-theme="light"] .portal-email-input {
  background: rgba(255,252,247,0.85);
  border-color: rgba(13,30,56,0.18);
  color: #0d1e38;
}
[data-theme="light"] .portal-email-input::placeholder { color: rgba(13,30,56,0.30); }
[data-theme="light"] .portal-disclaimer { color: rgba(13,30,56,0.35); }
[data-theme="light"] .portal-success { color: #9b2335; }

/* ═══════════════════════════════════════
   LIGHT MODE — MEJORAS V2
   Texto invisible, sombras, fondos
═══════════════════════════════════════ */

/* ── Fondo general más claro y neutro ── */
[data-theme="light"] body { background: #f7f2ec; }

/* ── Hero más limpio ── */
[data-theme="light"] #inicio {
  background:
    linear-gradient(160deg, rgba(252,249,244,0.84) 0%, rgba(240,232,220,0.76) 55%, rgba(252,249,244,0.84) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
}

/* ── Stats: fondo diferenciado + texto invisible corregido ── */
[data-theme="light"] #stats {
  background: #eee8de;
  border-color: rgba(13,30,56,0.07);
}
[data-theme="light"] .stats-grid {
  background: rgba(255,255,255,0.78);
  border-color: rgba(13,30,56,0.08);
  box-shadow: 0 6px 32px rgba(13,30,56,0.07), 0 1px 0 rgba(13,30,56,0.04);
}
[data-theme="light"] .stat-item { background: transparent; }
[data-theme="light"] .stats-eyebrow {
  color: #9b2335;
  text-shadow: none;
}
[data-theme="light"] .stats-eyebrow-dot { background: #9b2335; }
[data-theme="light"] .stats-title {
  color: rgba(13,30,56,0.80);
}
[data-theme="light"] .stats-subtitle { color: rgba(13,30,56,0.66); }
[data-theme="light"] .stats-title-line {
  background: #9b2335;
  box-shadow: none;
}
[data-theme="light"] .stat-desc { color: rgba(13,30,56,0.56); }

/* ── Servicios: cards blancas sobre fondo crema ── */
[data-theme="light"] #servicios { background: #f7f2ec; }
[data-theme="light"] .servicio-card { background: #faf7f2; }
[data-theme="light"] .servicio-card:hover {
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(13,30,56,0.09), 0 0 0 1px rgba(155,35,53,0.22);
}

/* ── Por qué nosotros: cards claras ── */
[data-theme="light"] #porque { background: #eee8de; }
[data-theme="light"] .porque-card { background: rgba(252,249,244,0.90); }
[data-theme="light"] .porque-card:hover { background: #ffffff; }

/* ── Nosotros ── */
[data-theme="light"] #nosotros { background: #f7f2ec; }

/* ── Valores: más claro (antes muy oscuro #cfc8b8) ── */
[data-theme="light"] #valores { background: #e8e1d3; }
[data-theme="light"] .valor-card { background: #faf7f2; }
[data-theme="light"] .valor-card:hover { background: #ffffff; }

/* ── Proceso ── */
[data-theme="light"] #proceso { background: #f0ebe1; }
[data-theme="light"] .proceso-step { background: #faf7f2; }
[data-theme="light"] .proceso-step:hover { background: #ffffff; }

/* ── Sectores: texto invisible corregido ── */
[data-theme="light"] #sectores { background: #eee8de; }
[data-theme="light"] .sectores-header-desc { color: rgba(13,30,56,0.72); }
[data-theme="light"] .sectores-header-right {
  border-left-color: rgba(155,35,53,0.20);
}
[data-theme="light"] .sectores-title-accent { color: #9b2335; }
[data-theme="light"] .sectores-btn {
  border-color: #9b2335;
  color: #9b2335;
}
[data-theme="light"] .sectores-btn:hover {
  background: #9b2335;
  color: #ffffff;
}
[data-theme="light"] .sector-item { background: rgba(255,255,255,0.80); }
[data-theme="light"] .sector-item:hover { background: #ffffff; }
[data-theme="light"] .sector-desc { color: rgba(13,30,56,0.56); }

/* ── Testimonios ── */
[data-theme="light"] #testimonios { background: #f7f2ec; }
[data-theme="light"] .testimonio-card { background: #faf7f2; }
[data-theme="light"] .testimonio-card:hover { background: #ffffff; }

/* ── Blog ── */
[data-theme="light"] #blog { background: #eee8de; }
[data-theme="light"] .blog-card { background: #faf7f2; }
[data-theme="light"] .blog-card:hover { background: #ffffff; }

/* ── Contacto ── */
[data-theme="light"] #contacto { background: #f7f2ec; }
[data-theme="light"] .contacto-card { background: rgba(255,255,255,0.70); }
[data-theme="light"] .contacto-form-wrap { background: rgba(255,255,255,0.70); }

/* ── FAQ ── */
[data-theme="light"] #faq { background: #eee8de; }

/* ═══════════════════════════════════════
   LIGHT MODE — ACENTO AZUL (logo)
   Reemplaza guinda/rojo por azul en modo claro
═══════════════════════════════════════ */

/* ── Scroll progress ── */
[data-theme="light"] .scroll-progress {
  background: linear-gradient(90deg, #2855a0 0%, #c9a84c 60%, rgba(40,85,160,0.4) 100%);
}

/* ── Hero divider ── */
[data-theme="light"] .hero-divider {
  background: linear-gradient(90deg, transparent, #2855a0, rgba(40,85,160,0.30), transparent);
}

/* ── Section label ── */
[data-theme="light"] .section-label { color: #2855a0; }
[data-theme="light"] .section-label::before {
  background: linear-gradient(90deg, #1a3a7a, #2855a0, #c9a84c);
}

/* ── Stats eyebrow y línea ── */
[data-theme="light"] .stats-eyebrow { color: #2855a0; text-shadow: none; }
[data-theme="light"] .stats-eyebrow-dot { background: #2855a0; }
[data-theme="light"] .stats-title-line { background: #2855a0; }
[data-theme="light"] .stat-item:hover .stat-icon { color: #2855a0; }
[data-theme="light"] .stat-num--guinda {
  background: linear-gradient(110deg, #0d1e38 0%, #1e3460 40%, #2855a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Servicios — iconos azules ── */
[data-theme="light"] .servicio-icon-wrap {
  background: rgba(40,85,160,0.07);
  border-color: rgba(40,85,160,0.22);
  color: #2855a0;
}
[data-theme="light"] .servicio-card:hover .servicio-icon-wrap {
  background: rgba(40,85,160,0.12);
  border-color: rgba(40,85,160,0.45);
  color: #1a3a7a;
}
[data-theme="light"] .servicio-link { color: #2855a0; }
[data-theme="light"] .servicio-link::after { background: #2855a0; }
[data-theme="light"] .servicio-link:hover { color: #1a3a7a; }

/* ── Por qué — iconos azules ── */
[data-theme="light"] .porque-icon-wrap {
  background: rgba(40,85,160,0.07);
  border-color: rgba(40,85,160,0.22);
  color: #2855a0;
}

/* ── Proceso — iconos azules ── */
[data-theme="light"] .proceso-icon {
  background: rgba(40,85,160,0.07);
  border-color: rgba(40,85,160,0.22);
  color: #2855a0;
}
[data-theme="light"] .proceso-step:hover .proceso-icon {
  background: rgba(40,85,160,0.13);
  border-color: rgba(40,85,160,0.45);
  color: #1a3a7a;
}

/* ── Sectores — iconos y botón azules ── */
[data-theme="light"] .sector-icon {
  background: rgba(40,85,160,0.07);
  border-color: rgba(40,85,160,0.18);
  color: #2855a0;
}
[data-theme="light"] .sector-item:hover .sector-icon {
  background: rgba(40,85,160,0.13);
  border-color: rgba(40,85,160,0.45);
  color: #1a3a7a;
}
[data-theme="light"] .sector-item:hover .sector-name { color: #2855a0; }
[data-theme="light"] .sectores-title-accent { color: #2855a0; }
[data-theme="light"] .sectores-btn { border-color: #2855a0; color: #2855a0; }
[data-theme="light"] .sectores-btn:hover { background: #2855a0; color: #ffffff; }
[data-theme="light"] .sectores-header-right { border-left-color: rgba(40,85,160,0.20); }

/* ── Testimonios ── */
[data-theme="light"] .testimonio-name { color: #2855a0; }
[data-theme="light"] .testimonio-card:nth-child(3) .testimonio-avatar {
  background: linear-gradient(135deg, rgba(40,85,160,0.16), rgba(40,85,160,0.05));
  box-shadow: 0 0 0 2px rgba(40,85,160,0.35), 0 0 0 3px rgba(40,85,160,0.12);
  color: #2855a0;
}

/* ── FAQ ── */
[data-theme="light"] .faq-icon { color: #2855a0; }
[data-theme="light"] .faq-item.open { border-color: rgba(40,85,160,0.30); }
[data-theme="light"] .faq-item.open .faq-question { background: rgba(40,85,160,0.07); }

/* ── Back to top ── */
[data-theme="light"] .back-to-top {
  border-color: rgba(40,85,160,0.30);
  color: #2855a0;
}
[data-theme="light"] .back-to-top:hover {
  background: rgba(40,85,160,0.08);
  border-color: rgba(40,85,160,0.55);
}

/* ── Footer social ── */
[data-theme="light"] .footer-social-link:hover {
  background: rgba(40,85,160,0.10);
  border-color: #2855a0;
  color: #2855a0;
}

/* ── Modales ── */
[data-theme="light"] .articulo-close:hover { background: rgba(40,85,160,0.10); color: #2855a0; }
[data-theme="light"] .portal-success { color: #2855a0; }

/* ═══════════════════════════════════════
   LIGHT MODE — BLANCO / CREAM ALTERNADO
   #ffffff ↔ #f0e9de, patrón limpio
═══════════════════════════════════════ */

[data-theme="light"] body { background: #f8f4ee; }
[data-theme="light"] #inicio {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.82) 0%, rgba(240,232,218,0.74) 55%, rgba(255,255,255,0.82) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
}
[data-theme="light"] #stats        { background: #f0e9de; border-color: rgba(13,30,56,0.07); }
[data-theme="light"] #servicios    { background: #ffffff; }
[data-theme="light"] #porque       { background: #f0e9de; }
[data-theme="light"] #nosotros     { background: #ffffff; }
[data-theme="light"] #valores      { background: #f0e9de; }
[data-theme="light"] #proceso      { background: #ffffff; }
[data-theme="light"] #sectores     { background: #f0e9de; }
[data-theme="light"] #testimonios  { background: #ffffff; }
[data-theme="light"] #blog         { background: #f0e9de; }
[data-theme="light"] #contacto     { background: #ffffff; }
[data-theme="light"] #faq          { background: #f0e9de; }

/* Cards — blancas sobre cream, cream sobre blanco */
[data-theme="light"] .stats-grid {
  background: rgba(255,255,255,0.78);
  border-color: rgba(13,30,56,0.07);
  box-shadow: 0 6px 32px rgba(13,30,56,0.07);
}
[data-theme="light"] .stat-item         { background: transparent; }
[data-theme="light"] .stat-item:hover   { background: rgba(40,85,160,0.04); }
[data-theme="light"] .stats-eyebrow     { color: #2855a0; text-shadow: none; }
[data-theme="light"] .stats-eyebrow-dot { background: #2855a0; }
[data-theme="light"] .stats-title       { color: rgba(13,30,56,0.80); }
[data-theme="light"] .stats-subtitle    { color: rgba(13,30,56,0.66); }
[data-theme="light"] .stats-title-line  { background: #2855a0; box-shadow: none; }
[data-theme="light"] .stat-desc         { color: rgba(13,30,56,0.56); }
[data-theme="light"] .stat-icon         { color: rgba(40,85,160,0.50); background: rgba(40,85,160,0.07); border-color: rgba(40,85,160,0.20); }
[data-theme="light"] .stat-item:hover .stat-icon { color: #2855a0; }
[data-theme="light"] .stat-num {
  background: linear-gradient(110deg, #0d1e38 0%, #2a3f6e 45%, #c9a84c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .stat-num--guinda {
  background: linear-gradient(110deg, #0d1e38 0%, #1e3460 40%, #2855a0 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .stat-plus  { color: rgba(13,30,56,0.45); }
[data-theme="light"] .stat-label { color: #6b7a99; }

[data-theme="light"] .servicio-card   { background: #f8f4ee; }
[data-theme="light"] .servicio-card:hover { background: #f0e9de; }
[data-theme="light"] .porque-card     { background: #ffffff; }
[data-theme="light"] .porque-card:hover { background: #faf7f2; }
[data-theme="light"] .sector-item     { background: rgba(255,255,255,0.90); }
[data-theme="light"] .sector-item:hover { background: #ffffff; }
[data-theme="light"] .testimonio-card { background: #f8f4ee; }
[data-theme="light"] .testimonio-card:hover { background: #f0e9de; }
[data-theme="light"] .valor-card      { background: #ffffff; }
[data-theme="light"] .valor-card:hover { background: #faf7f2; }
[data-theme="light"] .proceso-step    { background: #f8f4ee; }
[data-theme="light"] .proceso-step:hover { background: #f0e9de; }
[data-theme="light"] .blog-card       { background: #ffffff; }
[data-theme="light"] .blog-card:hover { background: #faf7f2; }

/* Contacto — blanco, tarjetas cream */
[data-theme="light"] .contacto-card       { background: rgba(240,233,222,0.55); border-color: rgba(13,30,56,0.08); }
[data-theme="light"] .contacto-perfil     { border-color: rgba(13,30,56,0.08); }
[data-theme="light"] .detail-label        { color: rgba(40,85,160,0.75); }
[data-theme="light"] .contact-item,
[data-theme="light"] .contact-link        { color: rgba(13,30,56,0.78); }
[data-theme="light"] .contact-link:hover  { color: #0d1e38; }
[data-theme="light"] .contact-icon        { background: rgba(40,85,160,0.08); border-color: rgba(40,85,160,0.22); color: #2855a0; }
[data-theme="light"] .contacto-form-wrap  { background: rgba(240,233,222,0.55); border-color: rgba(13,30,56,0.08); }
[data-theme="light"] .form-title          { color: #0d1e38; }
[data-theme="light"] .form-subtitle       { color: rgba(13,30,56,0.60); }
[data-theme="light"] .form-group label    { color: #3a4f78; }
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: rgba(255,255,255,0.80);
  border-color: rgba(13,30,56,0.16);
  color: #0d1e38;
}
[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder { color: rgba(13,30,56,0.35); }
[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group select:focus,
[data-theme="light"] .form-group textarea:focus {
  border-color: rgba(40,85,160,0.50);
  box-shadow: 0 0 0 3px rgba(40,85,160,0.12);
}
[data-theme="light"] .form-group select option { background: #ffffff; color: #0d1e38; }
[data-theme="light"] .maps-wrap { border-color: rgba(13,30,56,0.10); }
[data-theme="light"] .form-submit { background: linear-gradient(135deg, #2855a0 0%, #1a3a7a 100%); }
[data-theme="light"] .cp-name,
[data-theme="light"] .cp-photo-initials { color: #3a4f78; }
[data-theme="light"] .cp-title { color: #6b7a99; }

/* ═══════════════════════════════════════
   LIGHT MODE — PARCHMENT V3
   Radial gradient limpio, sin textura grid
═══════════════════════════════════════ */

/* ── Desactivar dot-grain en light ── */
[data-theme="light"] body::after { display: none; }

/* ── Body ── */
[data-theme="light"] body { background: #f7f0e5; }

/* ── Hero ── */
[data-theme="light"] #inicio {
  background:
    linear-gradient(160deg, rgba(255,252,248,0.92) 0%, rgba(240,230,212,0.82) 55%, rgba(255,252,248,0.92) 100%),
    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
}

/* ── Cream sections — radial glow suave, sin grid ── */
[data-theme="light"] #stats,
[data-theme="light"] #porque,
[data-theme="light"] #valores,
[data-theme="light"] #sectores,
[data-theme="light"] #blog,
[data-theme="light"] #faq {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255,255,255,0.92) 0%, rgba(255,250,242,0.70) 40%, rgba(240,230,214,0.85) 100%),
    #f0e6d2;
  border-color: rgba(13,30,56,0.06);
}

/* ── White sections — blanco cálido limpio ── */
[data-theme="light"] #servicios,
[data-theme="light"] #nosotros,
[data-theme="light"] #proceso,
[data-theme="light"] #testimonios,
[data-theme="light"] #contacto {
  background: #fffcf6;
}

/* ── Section titles — navy sólido ── */
[data-theme="light"] .section-title {
  background: none;
  -webkit-text-fill-color: #12376d;
  color: #12376d;
  font-weight: 600;
}

/* ── Stats header — ornamento con diamante ── */
[data-theme="light"] .stats-eyebrow {
  color: #12376d;
  text-shadow: none;
  font-weight: 700;
}
[data-theme="light"] .stats-eyebrow-dot {
  background: #d7bd82;
  width: 7px; height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
/* Línea con diamante central */
[data-theme="light"] .stats-title-line {
  position: relative;
  width: 160px;
  height: auto;
  background: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 20px;
}
[data-theme="light"] .stats-title-line::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7bd82);
}
[data-theme="light"] .stats-title-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #d7bd82, transparent);
}
/* Diamante usando box-shadow del div (sin pseudo-elemento) */
[data-theme="light"] .stats-title-line > * { display: none; }
/* Hack: insertar el diamante como background-image centrado */
[data-theme="light"] .stats-title-line {
  background-image: none;
}

[data-theme="light"] .stats-title {
  color: rgba(18,55,109,0.48);
  font-size: 0.78rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
[data-theme="light"] .stats-subtitle { color: rgba(13,30,56,0.66); font-size: 1rem; }

/* ── Números stats — navy #184a91 ── */
[data-theme="light"] .stat-num {
  background: linear-gradient(110deg, #12376d 0%, #184a91 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .stat-num--guinda {
  background: linear-gradient(110deg, #12376d 0%, #184a91 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
[data-theme="light"] .stat-plus  { color: #617188; }
[data-theme="light"] .stat-label { color: #12376d; letter-spacing: 0.12em; }
[data-theme="light"] .stat-desc  { color: #617188; }

/* ── Stats grid — premium glass card (warm shadows) ── */
[data-theme="light"] .stats-grid {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.84));
  border: 1px solid rgba(255,255,255,0.90);
  box-shadow:
    0 26px 70px rgba(84,64,38,0.12),
    0 8px 24px rgba(71,55,35,0.07),
    inset 0 1px 0 rgba(255,255,255,0.95);
  border-radius: 28px;
  backdrop-filter: blur(16px);
}

/* ── Stat icon — gold border, warm gradient ── */
[data-theme="light"] .stat-icon {
  background: linear-gradient(145deg, rgba(255,255,255,1), rgba(248,242,232,0.90));
  border: 1px solid rgba(215,189,130,0.55);
  box-shadow: 0 8px 20px rgba(75,59,37,0.08), inset 0 0 0 5px rgba(255,255,255,0.55);
  color: #184a91;
}
[data-theme="light"] .stat-item:hover .stat-icon {
  border-color: rgba(215,189,130,0.85);
  color: #12376d;
}

/* ── Stat sep (la línea vertical entre stats) ── */
[data-theme="light"] .stat-sep {
  background: linear-gradient(to bottom, transparent, rgba(24,74,145,0.13) 20%, rgba(24,74,145,0.13) 80%, transparent);
}

/* ── Cards ── */
[data-theme="light"] .servicio-card    { background: rgba(255,255,255,0.85); }
[data-theme="light"] .servicio-card:hover { background: #ffffff; }
[data-theme="light"] .porque-card      { background: rgba(255,252,246,0.90); }
[data-theme="light"] .porque-card:hover { background: #ffffff; }
[data-theme="light"] .proceso-step     { background: rgba(255,252,246,0.90); }
[data-theme="light"] .proceso-step:hover { background: #ffffff; }
[data-theme="light"] .sector-item      { background: rgba(255,255,255,0.85); }
[data-theme="light"] .sector-item:hover { background: #ffffff; }
[data-theme="light"] .testimonio-card  { background: rgba(255,252,246,0.90); }
[data-theme="light"] .testimonio-card:hover { background: #ffffff; }
[data-theme="light"] .valor-card       { background: rgba(255,252,246,0.90); }
[data-theme="light"] .valor-card:hover { background: #ffffff; }
[data-theme="light"] .blog-card        { background: rgba(255,255,255,0.85); }
[data-theme="light"] .blog-card:hover  { background: #ffffff; }
[data-theme="light"] .contacto-card    { background: rgba(240,232,218,0.55); border-color: rgba(13,30,56,0.07); }
[data-theme="light"] .contacto-form-wrap { background: rgba(240,232,218,0.55); border-color: rgba(13,30,56,0.07); }

/* ── Nav — ivory cálido ── */
[data-theme="light"] nav {
  background: rgba(247,241,230,0.97);
  border-bottom: 1px solid rgba(13,30,56,0.07);
}
[data-theme="light"] nav.scrolled { background: rgba(244,237,225,0.99); }

/* ── prefers-reduced-motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-scroll-line { animation: none; }
  .stat-num { transition: none; }
}
