/* ==========================================================================
   DEYANIRA DELGADO MANCO | CONSULTORÍA SENIOR & GESTIÓN PÚBLICA
   Hoja de Estilos de Alta Gama - Executive Glassmorphism & Mobile-First
   ========================================================================== */

:root {
  /* Paleta de Colores Ejecutiva */
  --bg-darkest: #050d18;
  --bg-dark: #071422;
  --bg-navy: #0b192c;
  --bg-navy-light: #132742;
  --bg-card: rgba(11, 25, 44, 0.72);
  --bg-card-hover: rgba(19, 39, 66, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-strong: rgba(255, 255, 255, 0.08);

  /* Acentos Dorados y Champagne */
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8214;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-border: rgba(212, 175, 55, 0.22);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e27a 50%, #b8860b 100%);
  --gold-gradient-hover: linear-gradient(135deg, #e5c158 0%, #fff0a8 50%, #c9971c 100%);

  /* Acentos Funcionales */
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --blue-accent: #38bdf8;
  --purple-accent: #a855f7;
  --rose-accent: #f43f5e;

  /* Escala de Neutros */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --line-subtle: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(212, 175, 55, 0.3);

  /* Sombras y Elevación */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 8px 32px rgba(212, 175, 55, 0.2);

  /* Tipografías */
  --font-serif: "Cinzel", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  /* Layout y Transiciones */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 76px;
}

/* ==========================================================================
   MODO CLARO (LIGHT THEME) - ALTA GAMA EJECUTIVA
   ========================================================================== */
[data-theme="light"] {
  --bg-darkest: #f1f5f9;
  --bg-dark: #f8fafc;
  --bg-navy: #ffffff;
  --bg-navy-light: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(15, 23, 42, 0.04);
  --bg-glass-strong: rgba(15, 23, 42, 0.08);

  /* Acentos Dorados con contraste óptimo sobre fondos claros */
  --gold-primary: #b8860b;
  --gold-light: #8c6800;
  --gold-dark: #6e5000;
  --gold-glow: rgba(184, 134, 11, 0.25);
  --gold-border: rgba(184, 134, 11, 0.35);
  --gold-gradient: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #8c6800 100%);
  --gold-gradient-hover: linear-gradient(135deg, #996515 0%, #c59b27 50%, #6e5000 100%);

  /* Neutros en Modo Claro */
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  --line-subtle: rgba(15, 23, 42, 0.12);
  --line-gold: rgba(184, 134, 11, 0.4);

  /* Sombras y Elevación Suave */
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.14);
  --shadow-gold: 0 8px 24px rgba(184, 134, 11, 0.16);
}

[data-theme="light"] body::before {
  background: 
    radial-gradient(circle at 15% 20%, rgba(184, 134, 11, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(226, 232, 240, 0.85) 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-darkest);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(19, 39, 66, 0.45) 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, 1200px);
  }
}

h1, h2, h3, h4, .font-serif {
  font-family: var(--font-serif);
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--gold-border);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}
.badge-emerald .badge-dot {
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}
.badge-purple .badge-dot {
  background: var(--purple-accent);
  box-shadow: 0 0 8px var(--purple-accent);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: #7dd3fc;
}
.badge-blue .badge-dot {
  background: var(--blue-accent);
  box-shadow: 0 0 8px var(--blue-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #06111e;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.28);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-gold:hover {
  background: var(--gold-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.42);
}

.btn-outline-gold {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--gold-border);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass-strong);
  border-color: var(--line-subtle);
  color: var(--text-main);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1fa463 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(31, 164, 99, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #25b871 0%, #15c98e 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(31, 164, 99, 0.45);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Header */
.nav-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(7, 20, 34, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-subtle);
  transition: all var(--transition-normal);
}

.nav-header.scrolled {
  background: rgba(5, 13, 24, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.monogram-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  border: 1.5px solid var(--gold-border);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
  transition: var(--transition-fast);
}

.brand-link:hover .monogram-badge {
  border-color: var(--gold-primary);
  box-shadow: 0 4px 22px rgba(212, 175, 55, 0.35);
  transform: rotate(-3deg) scale(1.05);
}

.monogram-text {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-light);
  font-weight: 600;
  margin-top: 3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold-primary);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after {
  width: 100%;
}

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

/* Botón Selector de Tema (Modo Claro / Modo Oscuro) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  outline: none;
}

.theme-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 14px var(--gold-glow);
}

.theme-toggle-btn .theme-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.theme-toggle-btn .icon-moon {
  display: none;
}

.theme-toggle-btn .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle-btn {
  background: rgba(184, 134, 11, 0.12);
  border-color: rgba(184, 134, 11, 0.35);
  color: var(--gold-primary);
}

[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.mobile-menu-btn:hover, .mobile-menu-btn:focus-visible {
  border-color: var(--gold-border);
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  outline: none;
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .mobile-nav-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(7, 20, 34, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 24px;
    border-bottom: 1px solid var(--gold-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal), visibility var(--transition-normal);
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-nav-panel.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .nav-actions .btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-title {
    font-size: 13.5px;
    letter-spacing: 0.02em;
  }
  .brand-subtitle {
    display: none;
  }
  .monogram-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .monogram-text {
    font-size: 16px;
  }
  .brand-link {
    gap: 10px;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 65px 0 85px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid var(--gold-border);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  width: fit-content;
}

.hero-person-name {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 15%, #f6e27a 50%, #d4af37 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .hero-person-name {
  background: linear-gradient(135deg, #071422 15%, #b8860b 55%, #785200 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-person-role {
  font-size: clamp(13.5px, 1.8vw, 16.5px);
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-top: -4px;
}

.hero-tagline {
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.2;
  color: var(--text-main);
  font-weight: 700;
  margin-top: 4px;
}

.hero-tagline .highlight, .hero-title .highlight {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-title {
  font-size: clamp(28px, 5.5vw, 60px);
  line-height: 1.08;
  color: var(--text-main);
  font-weight: 700;
  word-break: break-word;
}

.hero-description {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

@media (max-width: 640px) {
  .hero-cta-group .btn {
    width: 100%;
  }
}

.quick-contact-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-subtle);
  color: #e2e8f0;
  transition: var(--transition-fast);
}

.contact-pill:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-border);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.hero-visual-card {
  background: linear-gradient(135deg, rgba(19, 39, 66, 0.6) 0%, rgba(11, 25, 44, 0.85) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(212, 175, 55, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-visual-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.value-props-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 640px) {
  .value-props-grid {
    grid-template-columns: 1fr;
  }
}

.value-prop-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: var(--transition-fast);
}

.value-prop-item:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.value-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.value-prop-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.value-prop-desc {
  font-size: 11px;
  line-height: 1.4;
  color: #94a3b8;
}

.quote-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(7, 20, 34, 0.85);
  border-left: 3px solid var(--gold-primary);
  position: relative;
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 0.8;
  color: var(--gold-primary);
  margin-bottom: 6px;
  opacity: 0.85;
}

.quote-text {
  font-size: 13.5px;
  font-style: italic;
  color: #f1f5f9;
  line-height: 1.5;
  margin-bottom: 8px;
}

.quote-author {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Metrics Section */
.metrics-section {
  padding: 20px 0 65px;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.9) 0%, rgba(7, 20, 34, 0.95) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

@media (max-width: 992px) {
  .metrics-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .metric-item::after {
    display: none !important;
  }
  .metric-item:not(:last-child) {
    border-bottom: 1px solid var(--line-subtle);
  }
}

.metric-item {
  padding: 24px 16px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.metric-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line-subtle);
}

.metric-item:hover {
  background: rgba(212, 175, 55, 0.04);
}

.metric-val {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 170px;
}

/* Common Section Styles */
.section {
  padding: 85px 0;
  position: relative;
}

.section.alt-bg {
  background: linear-gradient(180deg, rgba(11, 25, 44, 0.45) 0%, rgba(7, 20, 34, 0.6) 100%);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

.section-header {
  margin-bottom: 42px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-header.with-action {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  color: var(--text-main);
}

.section-subtitle {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 680px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

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

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-wrap {
  transform: scale(1.08);
  background: var(--gold-gradient);
  color: #071422;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.service-number {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.18);
}

.service-card-title {
  font-size: 19px;
  color: var(--text-main);
  line-height: 1.25;
}

.service-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.service-card-action {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
}

.service-link-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  min-height: 44px;
  padding: 8px 4px;
  transition: var(--transition-fast);
}

@media (max-width: 480px) {
  .service-card {
    padding: 20px 18px;
  }
}

.service-link-btn:hover {
  color: #ffffff;
  gap: 10px;
}

/* Experience Grid */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

.experience-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
  position: relative;
}

.experience-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exp-org {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
}

.exp-role {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-primary);
}

.exp-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Education Grid */
.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.education-card {
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.7) 0%, rgba(7, 20, 34, 0.8) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: var(--transition-fast);
}

.education-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.edu-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: grid;
  place-items: center;
  font-size: 22px;
}


.edu-level-badge {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
}

.edu-title {
  font-size: 18px;
  color: var(--text-main);
  line-height: 1.25;
}

.edu-institution {
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
}

.edu-desc {
  font-size: 12px;
  color: var(--text-dim);
}

/* Leadership Grid */
.leadership-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

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

.leadership-card {
  background: linear-gradient(135deg, rgba(19, 39, 66, 0.5) 0%, rgba(7, 20, 34, 0.8) 100%);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-fast);
  position: relative;
}

.leadership-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.leadership-card.highlight {
  border-color: var(--gold-border);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(7, 20, 34, 0.85) 100%);
}

.leadership-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.leadership-logo {
  display: block;
  height: 60px;
  max-height: 60px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  margin: 0;
  background: transparent;
  border: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.leadership-logo:hover {
  transform: scale(1.04);
}

.leadership-role {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
}

.leadership-entity {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold-light);
}

.leadership-desc {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

/* Cases Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
}

.case-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.case-category {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
}

.case-entity {
  font-size: 17.5px;
  color: var(--text-main);
}

.case-block-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.case-block-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Updates / Portafolio Vivo */
.updates-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line-subtle);
  background: var(--bg-glass);
  color: var(--text-muted);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.tab-btn.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: #071422;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

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

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

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

.update-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-fast);
  position: relative;
}

.update-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.update-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.update-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-primary);
}

.update-title {
  font-size: 16.5px;
  color: var(--text-main);
  line-height: 1.3;
}

.update-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.update-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 4px;
}

.update-link:hover {
  color: #ffffff;
  gap: 10px;
}

.update-admin-bar {
  display: none;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-subtle);
}

body.admin-mode .update-admin-bar {
  display: flex;
}

.btn-mini {
  padding: 8px 14px;
  min-height: 38px;
  font-size: 11.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid var(--line-subtle);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transition: var(--transition-fast);
}

.btn-mini:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-mini-danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-mini-danger:hover {
  background: rgba(248, 113, 113, 0.15);
}

.admin-status-banner {
  display: none;
  background: linear-gradient(90deg, #b8860b 0%, #d4af37 100%);
  color: #071422;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 800;
  position: sticky;
  top: var(--nav-height);
  z-index: 990;
  box-shadow: var(--shadow-sm);
}

body.admin-mode .admin-status-banner {
  display: block;
}

.admin-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 640px) {
  .admin-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* Contact Section */
.contact-section {
  padding: 90px 0;
  background: radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(19, 39, 66, 0.5) 0%, transparent 60%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 45px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

.contact-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
}

.contact-item-val {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
}

.contact-form-card {
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.85) 0%, rgba(7, 20, 34, 0.95) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

@media (max-width: 600px) {
  .contact-form-card {
    padding: 22px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.form-label span.req {
  color: var(--gold-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-subtle);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
  }
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: #64748b;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background-color: #0b192c;
  color: #ffffff;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-status {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Footer */
.footer-main {
  background: #040911;
  border-top: 1px solid var(--line-subtle);
  padding: 60px 0 30px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .footer-main {
    margin-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand-copy {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 360px;
  margin-top: 14px;
}

.footer-heading {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links-list a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

/* Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5, 13, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--gold-border);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 6px;
  }
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #e2e8f0;
  padding: 8px 6px;
  min-height: 48px;
  min-width: 44px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  flex: 1;
  text-align: center;
}

.mobile-bottom-item.active-action {
  background: var(--gold-gradient);
  color: #071422;
  border-radius: var(--radius-full);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 20px;
}

@media (max-width: 600px) {
  .modal-backdrop {
    padding: 12px;
  }
}

.modal-backdrop.open {
  display: grid;
}

.modal-window {
  background: linear-gradient(135deg, #0b192c 0%, #071422 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .modal-window {
    border-radius: var(--radius-md);
  }
  .modal-header {
    padding: 16px 18px;
  }
  .modal-body {
    padding: 16px 18px;
    gap: 16px;
  }
  .modal-footer {
    padding: 14px 18px;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .modal-footer .btn {
    width: 100%;
  }
}

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-subtle);
  color: #ffffff;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #f87171;
  color: #fca5a5;
}

.modal-body {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid var(--line-subtle);
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal-tabs::-webkit-scrollbar {
  display: none;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 8px;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.modal-tab-btn.active {
  color: var(--gold-light);
}

.modal-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-primary);
}

.modal-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.modal-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.modal-list-item .item-bullet {
  color: var(--gold-primary);
  font-size: 15px;
  line-height: 1;
  margin-top: 2px;
}

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: rgba(5, 13, 24, 0.5);
}

/* Admin Drawer */
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: #081525;
  border-left: 1px solid var(--gold-border);
  z-index: 2100;
  box-shadow: none;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal), visibility var(--transition-normal), box-shadow var(--transition-normal);
}

.admin-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .admin-drawer {
  background: #ffffff;
  border-left-color: rgba(184, 134, 11, 0.3);
}

[data-theme="light"] .admin-drawer.open {
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.16);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-msg-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mobile Advanced */
@media (max-width: 480px) {
  .hero-title {
    font-size: 32px;
  }
  .value-props-grid {
    grid-template-columns: 1fr;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
  }
  .metric-item::after {
    display: none !important;
  }
  .metric-item:not(:last-child) {
    border-bottom: 1px solid var(--line-subtle);
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* ==========================================================================
   LOGOS DE ENTIDADES & UNIVERSIDADES (ALTO CONTRASTE Y NITIDEZ TOTAL)
   ========================================================================== */
.entity-logo-clean,
.edu-logo {
  display: inline-block;
  max-height: 44px;
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  margin-bottom: 0;
  /* Cápsula blanca limpia solo en modo oscuro para que letras oscuras y escudos se lean con total nitidez */
  background: #ffffff;
  padding: 5px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  filter: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.exp-header .entity-logo-clean {
  margin-bottom: 0;
  max-height: 38px;
  height: 34px;
}

.education-card .entity-logo-clean,
.education-card .edu-logo {
  margin-bottom: 12px;
  max-height: 44px;
  height: 40px;
}

.entity-logo-clean:hover,
.edu-logo:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* En Modo Claro: la tarjeta ya es blanca, se integra transparente y limpia sin cápsula */
[data-theme="light"] .entity-logo-clean,
[data-theme="light"] .edu-logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

[data-theme="light"] .entity-logo-clean:hover,
[data-theme="light"] .edu-logo:hover {
  transform: scale(1.04);
  box-shadow: none;
}

/* Certificado Oficial OGPAB */
.cert-preview-card {
  margin-top: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: rgba(11, 25, 44, 0.7);
  display: block;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  position: relative;
}

[data-theme="light"] .cert-preview-card {
  background: #f8fafc;
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.cert-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px var(--gold-glow);
}

.cert-preview-img-wrap {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #071422;
}

[data-theme="light"] .cert-preview-img-wrap {
  background: #e2e8f0;
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform var(--transition-base);
}

.cert-preview-card:hover .cert-preview-img {
  transform: scale(1.04);
}

.cert-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(7, 20, 34, 0.85);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

[data-theme="light"] .cert-preview-footer {
  background: #ffffff;
  color: #854d0e;
  border-top-color: rgba(184, 134, 11, 0.2);
}

[data-theme="light"] .cert-action {
  color: #0369a1;
  font-weight: 700;
}

.cert-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

/* ==========================================================================
   ACCESO SECRETO Y CONTROLES DEL CMS EN VIVO (SIN TOCAR CÓDIGO)
   ========================================================================== */
.discreet-admin-link {
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: none;
  opacity: 0.45;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.discreet-admin-link:hover {
  opacity: 1;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.cms-section-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cms-edit-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cms-edit-trigger:hover {
  background: var(--gold-primary);
  color: #071422;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--gold-glow);
}

body.admin-mode .cms-edit-trigger {
  display: inline-flex;
}

.cms-add-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px dashed var(--emerald);
  color: var(--emerald);
  font-size: 13px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  margin-top: 16px;
}

.cms-add-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

body.admin-mode .cms-add-btn {
  display: flex;
}

.cms-delete-btn {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition-fast);
  z-index: 10;
}

.cms-delete-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
}

body.admin-mode .cms-delete-btn {
  display: flex;
}

/* Modal de Inicio de Sesión Oculto */
.login-modal-window {
  max-width: 440px !important;
}

.login-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-alert {
  display: none;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
}

/* Modal del CMS para edición dinámica */
.cms-modal-window {
  max-width: 720px !important;
}

.cms-fields-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* ==========================================================================
   ADAPTACIONES DE MODO CLARO (LIGHT THEME) A COMPONENTES
   ========================================================================== */
[data-theme="light"] .nav-header {
  background: rgba(248, 250, 252, 0.94);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .monogram-badge {
  background: #0f172a;
  border-color: var(--gold-primary);
  color: #f6e27a;
}

[data-theme="light"] .brand-title {
  color: #0f172a;
}

[data-theme="light"] .brand-subtitle {
  color: #64748b;
}

[data-theme="light"] .nav-link {
  color: #334155;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: var(--gold-primary);
}

[data-theme="light"] .mobile-nav-panel {
  background: #f8fafc;
  border-bottom-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .hero-visual-card {
  background: #ffffff;
  border-color: rgba(184, 134, 11, 0.28);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .quote-card,
[data-theme="light"] .hero-quote-card {
  background: #f8fafc;
  border-color: rgba(184, 134, 11, 0.35);
  border-left: 3px solid var(--gold-primary);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .quote-text {
  color: #1e293b;
}

[data-theme="light"] .quote-author {
  color: #854d0e;
}

[data-theme="light"] .value-prop-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .value-prop-item:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 6px 18px rgba(184, 134, 11, 0.12);
}

[data-theme="light"] .value-prop-title {
  color: #0f172a;
}

[data-theme="light"] .value-prop-desc {
  color: #475569;
}

[data-theme="light"] .metric-val {
  color: #854d0e;
}

[data-theme="light"] .metrics-strip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .metric-label {
  color: #475569;
}

[data-theme="light"] .section.alt-bg {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .service-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .service-card:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(184, 134, 11, 0.18);
}

[data-theme="light"] .service-card-title {
  color: #0f172a;
}

[data-theme="light"] .service-number {
  color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .experience-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .experience-card:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .exp-org {
  color: #0f172a;
}

[data-theme="light"] .exp-role {
  color: #0f172a !important;
  font-weight: 700;
}

[data-theme="light"] .service-tag {
  color: #0f172a !important;
  font-weight: 800;
}

/* Badges en Modo Claro con Alto Contraste (Ratio > 7:1) */
[data-theme="light"] .badge {
  background: #fefce8 !important;
  border-color: #fde047 !important;
  color: #854d0e !important;
  font-weight: 700;
}

[data-theme="light"] .badge .badge-dot {
  background: #b45309 !important;
  box-shadow: 0 0 6px rgba(180, 83, 9, 0.4) !important;
}

[data-theme="light"] .hero-name-badge {
  background: #fefce8 !important;
  border-color: #fde047 !important;
  color: #854d0e !important;
  font-weight: 700;
}

[data-theme="light"] .hero-name-badge .badge-dot {
  background: #b45309 !important;
  box-shadow: 0 0 6px rgba(180, 83, 9, 0.4) !important;
}

[data-theme="light"] .badge-emerald {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #065f46 !important;
  font-weight: 700;
}

[data-theme="light"] .badge-emerald .badge-dot {
  background: #059669 !important;
  box-shadow: 0 0 6px rgba(5, 150, 105, 0.4) !important;
}

[data-theme="light"] .badge-purple {
  background: #f5f3ff !important;
  border-color: #c4b5fd !important;
  color: #5b21b6 !important;
  font-weight: 700;
}

[data-theme="light"] .badge-purple .badge-dot {
  background: #7c3aed !important;
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.4) !important;
}

[data-theme="light"] .badge-blue {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1e40af !important;
  font-weight: 700;
}

[data-theme="light"] .badge-blue .badge-dot {
  background: #2563eb !important;
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.4) !important;
}

[data-theme="light"] .education-card {
  background: #ffffff;
  border-color: rgba(184, 134, 11, 0.3);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .education-card:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 10px 30px rgba(184, 134, 11, 0.16);
}

[data-theme="light"] .edu-title {
  color: #0f172a;
}

[data-theme="light"] .edu-level-badge {
  color: #854d0e !important;
  font-weight: 800;
}


[data-theme="light"] .leadership-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .leadership-card.highlight {
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.06) 0%, #ffffff 100%);
  border-color: rgba(184, 134, 11, 0.35);
}

[data-theme="light"] .leadership-role {
  color: #0f172a;
}

[data-theme="light"] .leadership-entity {
  color: #0369a1 !important;
  font-weight: 700;
}

[data-theme="light"] .leadership-desc,
[data-theme="light"] .leadership-card p {
  color: #334155 !important;
}

[data-theme="light"] .leadership-logo {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

[data-theme="light"] .case-study-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .case-study-card:hover {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

[data-theme="light"] .case-title {
  color: #0f172a;
}

[data-theme="light"] .update-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .update-title {
  color: #0f172a;
}

[data-theme="light"] .section-title,
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: #0f172a !important;
}

[data-theme="light"] .section-subtitle,
[data-theme="light"] .hero-description {
  color: #475569 !important;
}

[data-theme="light"] .edu-institution {
  color: #0369a1 !important;
}

[data-theme="light"] .edu-desc,
[data-theme="light"] .exp-desc,
[data-theme="light"] .service-card-desc,
[data-theme="light"] .case-block-text,
[data-theme="light"] .update-text {
  color: #334155 !important;
}

[data-theme="light"] .case-entity {
  color: #0f172a !important;
}

[data-theme="light"] .case-block-title {
  color: #64748b !important;
}

[data-theme="light"] .contact-form-card,
[data-theme="light"] .contact-card {
  background: #ffffff !important;
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .contact-item-title {
  color: #0f172a;
}

[data-theme="light"] .contact-item-val {
  color: #0f172a !important;
}

[data-theme="light"] .contact-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

[data-theme="light"] .contact-pill:hover {
  border-color: var(--gold-primary);
  background: #f8fafc;
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.16);
  color: #0f172a;
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
  background: #ffffff;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

[data-theme="light"] .form-label {
  color: #1e293b;
}

[data-theme="light"] .form-select option {
  background-color: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.25);
  color: #0f172a;
}

[data-theme="light"] .btn-outline-gold:hover {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: #071422;
}

[data-theme="light"] .service-link-btn:hover,
[data-theme="light"] .update-link:hover {
  color: #92400e;
}

[data-theme="light"] .tab-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .tag-chip {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.12);
  color: #334155;
}

/* Footer en Modo Claro: Contraste Máximo y Legibilidad Impecable */
[data-theme="light"] .footer-main {
  background: #071422;
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

[data-theme="light"] .footer-main .brand-title {
  color: #ffffff !important;
}

[data-theme="light"] .footer-main .brand-subtitle,
[data-theme="light"] .footer-main .footer-heading,
[data-theme="light"] .footer-main h4 {
  color: #f6e27a !important;
}

[data-theme="light"] .footer-main .footer-brand-copy,
[data-theme="light"] .footer-main p {
  color: #cbd5e1 !important;
}

[data-theme="light"] .footer-main .footer-links-list a {
  color: #cbd5e1 !important;
}

[data-theme="light"] .footer-main .footer-links-list a:hover {
  color: #ffffff !important;
  transform: translateX(3px);
}

[data-theme="light"] .footer-main .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #94a3b8 !important;
}

[data-theme="light"] .footer-main .footer-bottom span,
[data-theme="light"] .footer-main .footer-bottom div {
  color: #94a3b8 !important;
}

[data-theme="light"] .footer-main .footer-bottom a {
  color: #f6e27a !important;
}

[data-theme="light"] .footer-main .footer-bottom a:hover {
  color: #ffffff !important;
}

[data-theme="light"] .footer-main .discreet-admin-link {
  color: #64748b !important;
}

[data-theme="light"] .footer-main .discreet-admin-link:hover {
  color: #cbd5e1 !important;
}

[data-theme="light"] .footer-main .monogram-badge {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.4);
}

[data-theme="light"] .footer-main .monogram-text {
  color: #f6e27a !important;
}

[data-theme="light"] .mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .mobile-bottom-item {
  color: #334155;
}

[data-theme="light"] .mobile-bottom-item .icon,
[data-theme="light"] .mobile-bottom-item svg {
  color: #334155;
}

[data-theme="light"] .mobile-bottom-item span {
  color: #334155;
  font-weight: 700;
}

[data-theme="light"] .mobile-bottom-item:hover,
[data-theme="light"] .mobile-bottom-item:active {
  color: #0f172a;
}

[data-theme="light"] .mobile-bottom-item:hover .icon,
[data-theme="light"] .mobile-bottom-item:active .icon {
  color: #0f172a;
}

[data-theme="light"] .mobile-bottom-item.active-action {
  background: var(--gold-gradient);
  color: #071422;
}

[data-theme="light"] .mobile-bottom-item.active-action .icon,
[data-theme="light"] .mobile-bottom-item.active-action svg,
[data-theme="light"] .mobile-bottom-item.active-action span {
  color: #071422 !important;
}

[data-theme="light"] .modal-window {
  background: #ffffff;
  border-color: rgba(184, 134, 11, 0.35);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .modal-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .modal-body p {
  color: #334155 !important;
}

[data-theme="light"] .modal-close-btn {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #f87171;
  color: #ef4444;
}

[data-theme="light"] .modal-list-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .modal-footer {
  background: #f8fafc;
  border-top-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .admin-drawer {
  background: #ffffff;
  border-left-color: rgba(184, 134, 11, 0.35);
}

[data-theme="light"] .drawer-header h3 {
  color: #0f172a !important;
}

[data-theme="light"] .admin-msg-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
  color: #1e293b;
}
