/* ==========================================================================
   HARRY ALBERTO PEREA MERCADO — VISIÓN JURÍDICA. DIRECCIÓN ESTRATÉGICA.
   Hoja de Estilos Corporativa de Alta Gama | Dark Mode Default & Light Mode
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES CSS & SISTEMA DE DISEÑO (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Tipografía */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Cinzel', var(--font-serif);

  /* Transiciones y curvas */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-normal: 0.28s var(--ease-out);
  --transition-slow: 0.45s var(--ease-out);

  /* Medidas de contenedor y espaciados */
  --max-width: 1240px;
  --header-height: 88px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-arch: 240px 240px 10px 10px;

  /* ---------------- MODO OSCURO (Por Defecto) ---------------- */
  --bg-canvas: #071422;          /* Obsidiana marino profundo */
  --bg-surface: #0b1a29;         /* Midnight navy secundario */
  --bg-elevated: #102936;        /* Azul marino institucional */
  --bg-card: rgba(16, 41, 54, 0.65);
  --bg-card-hover: rgba(22, 54, 71, 0.85);
  --bg-card-solid: #0d2230;
  --bg-input: rgba(7, 20, 34, 0.75);
  --bg-modal: #081624;
  --bg-drawer: #071422;

  /* Textos */
  --text-primary: #f8fafc;       /* Blanco perla luminiscente */
  --text-secondary: #cbd5e1;     /* Pizarra claro */
  --text-muted: #8fa6b3;         /* Muted slate balanceado */
  --text-inverse: #071422;

  /* Cobre Cálido / Oro Champagne */
  --copper-light: #f4d3b6;       /* Cobre champán luminoso */
  --copper: #dfb48e;             /* Cobre cálido principal */
  --copper-hover: #efc9a6;       /* Hover cobre */
  --copper-medium: #c8956e;      /* Cobre medio estructurado */
  --copper-dark: #986242;        /* Cobre tostado */
  --copper-badge: rgba(223, 180, 142, 0.14);
  --copper-badge-text: #dfb48e;

  /* Bordes & Glassmorphism */
  --border-subtle: rgba(223, 180, 142, 0.14);
  --border-medium: rgba(223, 180, 142, 0.28);
  --border-strong: rgba(223, 180, 142, 0.55);
  --border-white: rgba(255, 255, 255, 0.12);
  --line-divider: rgba(255, 255, 255, 0.10);

  /* Sombras & Brillos */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.75);
  --copper-glow: 0 0 30px rgba(223, 180, 142, 0.15);

  /* Header & Navegación */
  --header-bg: rgba(7, 20, 34, 0.88);
  --header-border: rgba(223, 180, 142, 0.15);

  /* Footer */
  --footer-bg: #040d16;
  --footer-text: #8fa6b3;
  --footer-text-bright: #e2e8f0;

  /* Barra Móvil */
  --bottom-bar-bg: rgba(7, 20, 34, 0.94);
  --bottom-bar-border: rgba(223, 180, 142, 0.22);
  --bottom-bar-text: #cbd5e1;
  --bottom-bar-text-active: #dfb48e;

  /* Logos */
  --logo-card-bg: #ffffff;
  --logo-card-border: rgba(223, 180, 142, 0.25);
}

/* ---------------- MODO CLARO ([data-theme="light"]) ---------------- */
[data-theme="light"] {
  --bg-canvas: #f8fafc;          /* Blanco marfil arquitectónico */
  --bg-surface: #ffffff;         /* Blanco puro para tarjetas */
  --bg-elevated: #edf2f7;        /* Superficie sutil */
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --bg-drawer: #ffffff;

  /* Textos con WCAG AAA */
  --text-primary: #0b202c;       /* Azul marino profundo de alta legibilidad */
  --text-secondary: #334155;     /* Pizarra oscuro nítido */
  --text-muted: #566770;         /* Gris editorial equilibrado */
  --text-inverse: #ffffff;

  /* Cobre adaptado para contraste máximo en fondo claro */
  --copper-light: #dfb48e;
  --copper: #986242;             /* Tostado profundo para AAA */
  --copper-hover: #7a4c30;
  --copper-medium: #834f32;
  --copper-dark: #643820;
  --copper-badge: rgba(152, 98, 66, 0.12);
  --copper-badge-text: #643820;

  /* Bordes & Líneas */
  --border-subtle: rgba(11, 32, 44, 0.10);
  --border-medium: rgba(152, 98, 66, 0.26);
  --border-strong: rgba(152, 98, 66, 0.55);
  --border-white: rgba(11, 32, 44, 0.08);
  --line-divider: rgba(11, 32, 44, 0.12);

  /* Sombras suaves */
  --shadow-sm: 0 2px 6px rgba(11, 32, 44, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(11, 32, 44, 0.08);
  --shadow-lg: 0 20px 35px -10px rgba(11, 32, 44, 0.12);
  --copper-glow: 0 0 20px rgba(152, 98, 66, 0.10);

  /* Header Claro */
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: rgba(11, 32, 44, 0.10);

  /* Footer Ejecutivo (se mantiene en azul marino profundo prestigioso) */
  --footer-bg: #071422;
  --footer-text: #94a3b8;
  --footer-text-bright: #f8fafc;

  /* Barra Móvil Claro (iconos y textos en pizarra oscuro #334155) */
  --bottom-bar-bg: rgba(255, 255, 255, 0.96);
  --bottom-bar-border: rgba(11, 32, 44, 0.14);
  --bottom-bar-text: #334155;
  --bottom-bar-text-active: #986242;

  /* Logos */
  --logo-card-bg: #ffffff;
  --logo-card-border: rgba(11, 32, 44, 0.12);
}

/* --------------------------------------------------------------------------
   2. REINICIO GLOBAL & TIPOGRAFÍA BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

/* Prevenir cualquier desbordamiento horizontal garantizado */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Compensación de padding inferior en móvil por la barra fija */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

/* Tipografía de Encabezados */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: clamp(2.75rem, 5.8vw, 5.2rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  line-height: 1.12;
}

h2 em, h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--copper);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

p + p {
  margin-top: 1rem;
}

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

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

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

::selection {
  background-color: var(--copper);
  color: #071422;
}

/* --------------------------------------------------------------------------
   3. ICONOS SVG & ELEMENTOS DE UTILIDAD
   -------------------------------------------------------------------------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.65;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 26px; height: 26px; }

.container {
  width: min(var(--max-width), calc(100% - 64px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 36px);
  }
}

.section {
  padding: 100px 0;
  position: relative;
}

@media (max-width: 900px) {
  .section {
    padding: 70px 0;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 55px 0;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--copper);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background-color: currentColor;
}

/* Enlaces y Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 26px;
  min-height: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-copper {
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
  color: #071422;
  border-color: var(--copper);
  box-shadow: 0 4px 18px rgba(223, 180, 142, 0.25);
}

.btn-copper:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--copper-hover) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(223, 180, 142, 0.40);
  color: #071422;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--copper);
  color: var(--copper);
  background: rgba(223, 180, 142, 0.06);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  border-color: #25d366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background-color: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.40);
  color: #ffffff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--copper);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.text-link:hover {
  border-bottom-color: var(--copper);
  color: var(--copper-light);
  gap: 14px;
}

[data-theme="light"] .text-link:hover {
  color: var(--copper-hover);
}

.badge,
.badge-tag,
.badge-copper {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: var(--copper-badge);
  color: var(--copper-badge-text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border-subtle);
  line-height: 1.4;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background-color: rgba(223, 180, 142, 0.20);
  color: #f4d3b6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid var(--copper);
  line-height: 1.4;
}

/* Modo Claro: badges suaves con texto oscuro de alto contraste (>7:1, WCAG AAA) */
[data-theme="light"] .badge,
[data-theme="light"] .badge-tag,
[data-theme="light"] .badge-copper {
  background-color: rgba(152, 98, 66, 0.12);
  color: #643820;
  border-color: rgba(152, 98, 66, 0.28);
  font-weight: 700;
}

[data-theme="light"] .badge-accent {
  background-color: rgba(152, 98, 66, 0.16);
  color: #552d16;
  border-color: rgba(152, 98, 66, 0.45);
  font-weight: 700;
}

/* En la tarjeta oscura de Fundación ACHE, las insignias se preservan luminosas en modo claro */
[data-theme="light"] .ache-showcase-panel .badge,
[data-theme="light"] .ache-showcase-panel .badge-tag,
[data-theme="light"] .ache-showcase-panel .badge-copper,
[data-theme="light"] .ache-showcase-panel .badge-accent {
  background-color: rgba(223, 180, 142, 0.20);
  color: #f4d3b6;
  border-color: #dfb48e;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 1000;
  background: var(--copper);
  color: #071422;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 20px;
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVEGACIÓN
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Monograma & Identidad */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand-monogram {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.05em;
}

.brand-monogram span {
  color: var(--copper);
}

.brand-text {
  border-left: 1px solid var(--line-divider);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.35;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}

/* Navegación Desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--copper);
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

/* Header Controls (Theme Toggle & CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.theme-toggle-btn:hover {
  border-color: var(--copper);
  color: var(--copper);
  transform: rotate(18deg) scale(1.05);
}

.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

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

.header-cta {
  padding: 10px 20px;
  min-height: 42px;
  font-size: 0.8125rem;
}

/* Botón Hamburguesa Móvil */
.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  gap: 6px;
  padding: 10px;
}

.menu-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.menu-toggle-btn[aria-expanded="true"] .menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle-btn[aria-expanded="true"] .menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Menú Móvil Desplegable */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-medium);
  padding: 24px 20px 32px;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.mobile-nav-panel.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-family: var(--font-serif);
  color: var(--text-primary);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-divider);
}

.mobile-nav-link:hover {
  color: var(--copper);
  background: rgba(223, 180, 142, 0.05);
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .menu-toggle-btn { display: flex; }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (Identidad Ejecutiva y Visual Arquitectónico)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding-top: 40px;
  padding-bottom: 40px;
}

/* Halo sutil de fondo */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 180, 142, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-name {
  margin-top: 6px;
  margin-bottom: 20px;
}

.hero-name span {
  display: block;
  font-size: 0.65em;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.hero-name em {
  display: block;
  font-style: normal;
  color: var(--copper);
}

.hero-positioning {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  line-height: 1.35;
  color: var(--text-primary);
  border-left: 3px solid var(--copper);
  padding-left: 20px;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-divider);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.hero-badge-item .icon {
  color: var(--copper);
  width: 16px;
  height: 16px;
}

/* Marco Visual Arquitectónico */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}

.architecture-frame {
  position: relative;
  height: 560px;
  border-radius: var(--radius-arch);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-lg), var(--copper-glow);
  background: var(--bg-surface);
}

.architecture-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) brightness(0.95);
  transition: transform 0.8s var(--ease-out);
}

.architecture-frame:hover img {
  transform: scale(1.03);
}

.frame-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 20, 34, 0.85) 100%);
  pointer-events: none;
}

.frame-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* Sello Flotante 20+ Años */
.stamp-experience {
  position: absolute;
  bottom: 30px;
  right: -24px;
  z-index: 3;
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
  color: #071422;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-align: center;
  min-width: 145px;
}

.stamp-number {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  display: block;
}

.stamp-number span {
  font-size: 2rem;
  vertical-align: super;
}

.stamp-label {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 10px;
  }
  .hero-visual {
    max-width: 420px;
    margin-top: 10px;
  }
  .architecture-frame {
    height: 440px;
    border-radius: 180px 180px 10px 10px;
  }
  .stamp-experience {
    right: 0px;
    bottom: 20px;
    padding: 16px 18px;
    min-width: 125px;
  }
  .stamp-number {
    font-size: 2.8rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .architecture-frame {
    height: 360px;
    border-radius: 150px 150px 10px 10px;
  }
}

/* --------------------------------------------------------------------------
   6. SECCIÓN PERFIL PROFESIONAL & ESTADÍSTICAS (2x2 Móvil / 4-Col Desktop)
   -------------------------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.profile-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  border-left: 2px solid var(--copper);
  padding-left: 24px;
  margin: 28px 0;
}

.profile-signature {
  margin-top: 28px;
  padding-left: 24px;
}

.signature-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--copper);
}

.signature-role {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Grilla de Estadísticas Ejecutivas */
.stats-container {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--line-divider);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding-right: 16px;
  border-right: 1px solid var(--line-divider);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}

.stat-value span {
  color: var(--copper);
}

.stat-label {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 500;
}

/* Estadísticas en móvil: 2x2 equilibrado armónico */
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .stat-item {
    padding-right: 16px;
    border-right: 1px solid var(--line-divider);
  }
  .stat-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }
  .stat-value {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }
  .stat-label {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    gap: 20px 14px;
  }
  .stat-item {
    padding-right: 10px;
  }
  .stat-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }
  .stat-value {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
    margin-bottom: 6px;
  }
  .stat-label {
    font-size: 0.72rem;
    line-height: 1.35;
  }
}

/* --------------------------------------------------------------------------
   7. SECCIÓN ESPECIALIDADES (Acordeones Fluidos y Etiquetas)
   -------------------------------------------------------------------------- */
.specialties {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.specialties-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 70px;
}

.services-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-divider);
}

.service-card {
  border-bottom: 1px solid var(--line-divider);
  transition: background-color var(--transition-fast);
}

.service-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 8px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.service-summary::-webkit-details-marker {
  display: none;
}

.service-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.service-number {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--copper);
}

.service-title {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  transition: color var(--transition-fast);
}

.service-summary:hover .service-title {
  color: var(--copper);
}

.service-icon-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
  transition: transform var(--transition-normal), background-color var(--transition-fast);
}

.service-card[open] .service-icon-toggle {
  transform: rotate(45deg);
  background-color: var(--copper-badge);
}

.service-body {
  padding: 0 8px 28px 46px;
}

.service-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.service-action {
  display: inline-flex;
}

@media (max-width: 900px) {
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .service-body {
    padding-left: 20px;
  }
}

/* --------------------------------------------------------------------------
   8. SECCIÓN EXPERIENCIA APLICADA (Casos Estratégicos)
   -------------------------------------------------------------------------- */
.cases-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

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

.case-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--copper);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-medium);
  border-top-color: var(--copper-hover);
  box-shadow: var(--shadow-md), var(--copper-glow);
}

.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.case-index {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--copper);
}

.case-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.case-title {
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 16px;
  min-height: 58px;
}

.case-summary {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
  flex: 1;
}

.case-card .text-link {
  margin-top: auto;
}

@media (max-width: 900px) {
  .cases-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .case-title {
    min-height: auto;
  }
}

/* --------------------------------------------------------------------------
   9. SECCIÓN TRAYECTORIA (Cronología Vertical y Plegado Elegante)
   -------------------------------------------------------------------------- */
.trajectory {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.trajectory-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 70px;
}

.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-divider);
}

.timeline-period {
  display: flex;
  flex-direction: column;
}

.period-years {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--copper);
}

.period-status {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Insignia o logo de trayectoria */
.career-logo-badge {
  margin-top: 14px;
  width: 120px;
  height: 68px;
  background-color: var(--logo-card-bg);
  border: 1px solid var(--logo-card-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.career-logo-badge img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.timeline-content details summary {
  list-style: none;
  cursor: pointer;
}

.timeline-content details summary::-webkit-details-marker {
  display: none;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.job-role {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.25;
}

.job-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

.job-description {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-top: 16px;
}

.timeline-toggle-btn {
  margin-top: 24px;
  width: 100%;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-divider);
  border-bottom: 1px solid var(--copper);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
}

.timeline-toggle-btn:hover {
  color: var(--copper);
}

.timeline-toggle-btn span {
  font-size: 1.4rem;
  color: var(--copper);
}

@media (max-width: 900px) {
  .trajectory-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .timeline-period {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .career-logo-badge {
    margin-top: 0;
    margin-left: auto;
  }
}

/* --------------------------------------------------------------------------
   10. SECCIÓN FORMACIÓN ACADÉMICA (Tratamiento Nítido de Logos Institucionales)
   -------------------------------------------------------------------------- */
.education-container {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 70px;
}

.education-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.edu-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.edu-meta-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
  margin-bottom: 22px;
}

/* Contenedor nítido para logos institucionales (sin sombras que ensucien letras) */
.institution-logo-wrap {
  background-color: #ffffff;
  border: 1px solid var(--logo-card-border);
  border-radius: var(--radius-sm);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.institution-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

[data-theme="light"] .institution-logo-wrap {
  background-color: #ffffff;
  border: 1px solid rgba(11, 32, 44, 0.14);
  box-shadow: 0 3px 12px rgba(11, 32, 44, 0.06);
}

[data-theme="light"] .career-logo-badge {
  background-color: #ffffff;
  border: 1px solid rgba(11, 32, 44, 0.14);
  box-shadow: 0 2px 8px rgba(11, 32, 44, 0.05);
}

.edu-title {
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}

.edu-institution {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .education-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .education-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .institution-logo-wrap {
    height: 120px;
    padding: 14px 18px;
  }
}

/* --------------------------------------------------------------------------
   11. SECCIÓN LIDERAZGO SOCIAL (Showcase Fundación ACHE)
   -------------------------------------------------------------------------- */
.leadership {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

/* Panel Insignia de Fundación ACHE */
.ache-showcase-panel {
  position: relative;
  background: linear-gradient(135deg, #071422 0%, #102936 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--copper-glow);
}

/* Detalles geométricos de fondo */
.ache-showcase-panel::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(223, 180, 142, 0.18);
  bottom: -140px;
  right: -120px;
  pointer-events: none;
}

.ache-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ache-logo-container {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ache-logo-container img {
  max-width: 320px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
}

.ache-bottom-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  position: relative;
  z-index: 1;
}

.leadership-copy p {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

/* Acción hacia el portal oficial de Fundación ACHE */
.ache-portal-action {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ache-portal-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(223, 180, 142, 0.12);
  border: 1px solid var(--copper);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ache-portal-btn:hover {
  background: var(--copper);
  color: #071422;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(223, 180, 142, 0.45);
}

.badge-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dfb48e;
  margin-right: 6px;
  box-shadow: 0 0 8px rgba(223, 180, 142, 0.9);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px rgba(223, 180, 142, 1); }
}

/* Métricas de Impacto Social */
.impact-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
  margin-bottom: 24px;
}

.impact-stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.impact-stat-item:hover {
  border-color: var(--copper);
  transform: translateY(-2px);
}

.impact-stat-num {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--copper);
  line-height: 1.1;
}

.impact-stat-label {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Selector Interactivo de Ejes de Impacto */
.leadership-pillars-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.pillar-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 42px;
}

.pillar-tab-btn:hover {
  border-color: var(--copper);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pillar-tab-btn.active {
  background: var(--copper-badge);
  border-color: var(--copper);
  color: var(--copper);
  box-shadow: 0 0 16px rgba(223, 180, 142, 0.25);
}

[data-theme="light"] .pillar-tab-btn {
  background: #ffffff;
  border-color: rgba(11, 32, 44, 0.16);
  color: #0b202c;
}

[data-theme="light"] .pillar-tab-btn.active {
  background: rgba(152, 98, 66, 0.12);
  border-color: #986242;
  color: #643820;
  font-weight: 700;
}

/* Ficha Dinámica de Acción Comunitaria */
.pillar-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.pillar-card-header {
  margin-bottom: 12px;
}

.pillar-card-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.pillar-card-scope {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pillar-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.pillar-card-desc {
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  color: var(--text-secondary);
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

.pillar-card-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.pillar-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pillar-hl-item svg {
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="light"] .pillar-detail-card {
  background: #ffffff;
  border-color: rgba(11, 32, 44, 0.12);
  box-shadow: 0 4px 18px rgba(11, 32, 44, 0.06);
}

.leadership-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ache-showcase-panel {
    min-height: 380px;
    padding: 30px 24px;
  }
  .impact-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* --------------------------------------------------------------------------
   12. SECCIÓN CONTACTO & FORMULARIO INTERACTIVO
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 70px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  margin-top: 36px;
  border-top: 1px solid var(--line-divider);
}

.contact-info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-divider);
  transition: all var(--transition-fast);
}

.contact-info-item:hover .contact-info-value {
  color: var(--copper);
}

.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Formulario Corporativo */
.contact-form-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 26px;
}

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

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-input);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(223, 180, 142, 0.18);
  outline: none;
}

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

.form-submit-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-status-message {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: none;
}

.form-status-message.success {
  display: block;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.form-status-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .contact-form-card {
    padding: 26px 20px;
  }
}

/* --------------------------------------------------------------------------
   13. FOOTER EJECUTIVO (Prestigio Corporativo en Ambos Modos)
   -------------------------------------------------------------------------- */
.footer,
.footer-main {
  background-color: #071422;
  border-top: 1px solid rgba(223, 180, 142, 0.20);
  color: #cbd5e1;
  padding: 60px 0 40px;
}

.footer .brand-monogram,
.footer-main .brand-monogram {
  color: #ffffff !important;
}

.footer .brand-monogram span,
.footer-main .brand-monogram span {
  color: #dfb48e !important;
}

.footer .brand-title,
.footer-main .brand-title {
  color: #ffffff !important;
}

.footer .brand-subtitle,
.footer-main .brand-subtitle {
  color: #dfb48e !important;
}

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

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

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

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

[data-theme="light"] .footer-main .footer-copy,
[data-theme="light"] .footer-main .footer-nav a,
[data-theme="light"] .footer-main .back-to-top-btn {
  color: #cbd5e1 !important;
}

[data-theme="light"] .footer-main .back-to-top-btn:hover {
  color: #ffffff !important;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #cbd5e1;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: #dfb48e !important;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 30px;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.footer-copy {
  color: #ffffff !important;
}

.footer-copy span {
  color: #cbd5e1 !important;
  display: block;
  margin-top: 4px;
}

.footer-admin-link {
  color: #cbd5e1 !important;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
  transition: opacity var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}

.footer-admin-link:hover {
  opacity: 1;
  color: #dfb48e !important;
}

.back-to-top-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.back-to-top-btn:hover {
  color: #dfb48e !important;
}

/* --------------------------------------------------------------------------
   14. BARRA FIJA INFERIOR MÓVIL (.mobile-bottom-bar)
   -------------------------------------------------------------------------- */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bottom-bar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bottom-bar-border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.45);
}

.mobile-bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 10px;
  min-height: 50px;
  color: var(--bottom-bar-text);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  flex: 1;
  max-width: 85px;
}

.mobile-bar-btn .icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.mobile-bar-btn:active {
  color: var(--bottom-bar-text-active);
}

/* Modo Claro: Visibilidad nítida en pizarra #334155 / azul marino #0b202c */
[data-theme="light"] .mobile-bottom-bar {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(11, 32, 44, 0.15);
  box-shadow: 0 -4px 20px rgba(11, 32, 44, 0.08);
}

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

[data-theme="light"] .mobile-bar-btn .icon {
  stroke: #334155;
}

[data-theme="light"] .mobile-bar-btn:hover,
[data-theme="light"] .mobile-bar-btn:active {
  color: #0b202c;
}

[data-theme="light"] .mobile-bar-btn:hover .icon,
[data-theme="light"] .mobile-bar-btn:active .icon {
  stroke: #0b202c;
}

/* El botón de WhatsApp SIEMPRE preserva su verde oficial #25d366 en ambos modos */
.mobile-bar-btn.btn-wa-highlight,
[data-theme="light"] .mobile-bar-btn.btn-wa-highlight {
  color: #25d366 !important;
}

.mobile-bar-btn.btn-wa-highlight .icon,
[data-theme="light"] .mobile-bar-btn.btn-wa-highlight .icon {
  stroke: #25d366 !important;
}

.mobile-bar-btn.btn-wa-highlight span {
  font-weight: 700;
}

@media (max-width: 900px) {
  .mobile-bottom-bar {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   15. MÓDULO CMS: BARRA ADMIN, BOTONES DE EDICIÓN, MODALES & DRAWER
   -------------------------------------------------------------------------- */

/* Barra Superior de Modo Administrador */
.admin-top-bar {
  display: none;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #986242 0%, #102936 100%);
  color: #ffffff;
  padding: 8px 24px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.admin-mode .admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-badge-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #25d366;
  box-shadow: 0 0 8px #25d366;
}

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

.admin-sm-btn {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transition: background var(--transition-fast);
}

.admin-sm-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

/* Botones flotantes de "✏️ Editar" en cada sección */
.section-edit-trigger {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  padding: 6px 14px;
  background: var(--copper-dark);
  color: #ffffff;
  border: 1px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

body.admin-mode .section-edit-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.section-edit-trigger:hover {
  background: var(--copper);
  color: #071422;
  transform: translateY(-2px);
}

/* Modales Backdrop & Ventanas */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(4, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-window {
  background: var(--bg-modal);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--copper-glow);
  width: min(580px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}

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

.modal-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close-btn {
  color: var(--text-muted);
  padding: 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--copper);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line-divider);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Panel Lateral de Mensajes/CMS (.admin-drawer)
   REGLA DE ORO: Cuando está cerrado, DEBE tener box-shadow: none; visibility: hidden; pointer-events: none; */
.admin-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--bg-drawer);
  border-left: 1px solid var(--border-medium);
  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: -15px 0 45px rgba(0, 0, 0, 0.65);
}

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

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

.drawer-message-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.drawer-message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 6px;
}

/* Sistema de Notificaciones Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .toast-container {
    bottom: 80px;
    right: 16px;
    left: 16px;
  }
}

.toast {
  padding: 14px 20px;
  background: #102936;
  color: #f8fafc;
  border: 1px solid var(--copper);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(15px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   16. PREVENCIÓN DE ANIMACIONES (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;
  }
}

/* ==========================================================================
   MEJORAS CREATIVAS VISUALES, LIVE PREVIEW & CENTRO DE CONTROL CMS INTEGRAL
   ========================================================================== */

/* --------------------------------------------------------------------------
   BARRA DE PROGRESO DE LECTURA (Reading Progress Bar)
   -------------------------------------------------------------------------- */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--copper-dark) 0%, var(--copper) 50%, var(--copper-light) 100%);
  box-shadow: 0 0 10px rgba(223, 180, 142, 0.8), 0 0 4px rgba(244, 211, 182, 0.9);
  z-index: 9999;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* --------------------------------------------------------------------------
   SELLO FLOTANTE 20+ AÑOS (Gentle Floating Animation)
   -------------------------------------------------------------------------- */
@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 18px rgba(223, 180, 142, 0.2);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.55), 0 0 28px rgba(223, 180, 142, 0.35);
  }
}

.stamp-experience {
  animation: gentleFloat 5s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   CONTADORES NUMÉRICOS ANIMADOS EN MÉTRICAS EJECUTIVAS
   -------------------------------------------------------------------------- */
.stat-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s ease-out;
}

.stat-suffix {
  display: inline-block;
  color: var(--copper);
}

/* --------------------------------------------------------------------------
   WHATSAPP LIVE MESSAGE PREVIEWER (Mockup Business Alta Gama)
   -------------------------------------------------------------------------- */
.wa-live-preview-box {
  margin-top: 14px;
  background: #0b141a;
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .wa-live-preview-box {
  background: #efeae2;
  border-color: rgba(37, 211, 102, 0.35);
}

.wa-preview-header-bar {
  background: #1f2c34;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .wa-preview-header-bar {
  background: #008069;
}

.wa-preview-contact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--copper), var(--copper-dark));
  color: #071422;
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wa-contact-meta {
  display: flex;
  flex-direction: column;
}

.wa-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #e9edef;
  line-height: 1.2;
}

[data-theme="light"] .wa-name {
  color: #ffffff;
}

.wa-online {
  font-size: 0.7rem;
  color: #25d366;
  display: flex;
  align-items: center;
  gap: 5px;
}

[data-theme="light"] .wa-online {
  color: #d1f4cc;
}

.wa-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #25d366;
  display: inline-block;
  box-shadow: 0 0 6px #25d366;
}

.wa-badge-live {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 3px 8px;
  border-radius: 20px;
}

[data-theme="light"] .wa-badge-live {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.wa-preview-body {
  padding: 16px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  min-height: 80px;
  display: flex;
  align-items: flex-start;
}

[data-theme="light"] .wa-preview-body {
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.wa-bubble {
  background: #005c4b;
  color: #e9edef;
  padding: 10px 14px;
  border-radius: 8px 8px 2px 8px;
  max-width: 92%;
  margin-left: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  position: relative;
  word-break: break-word;
}

[data-theme="light"] .wa-bubble {
  background: #d9fdd3;
  color: #111b21;
}

.wa-bubble-text {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
  white-space: pre-wrap;
}

.wa-bubble-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 0.65rem;
  color: rgba(233, 237, 239, 0.65);
  margin-top: 4px;
}

[data-theme="light"] .wa-bubble-info {
  color: #667781;
}

.wa-check-marks {
  color: #53bdeb;
  font-weight: 700;
  letter-spacing: -0.1em;
}

.wa-preview-action-row {
  padding: 10px 16px;
  background: rgba(11, 20, 26, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

[data-theme="light"] .wa-preview-action-row {
  background: #f0f2f5;
  border-top-color: rgba(0, 0, 0, 0.06);
}

.wa-preview-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.btn-whatsapp-subtle {
  background: #25d366;
  color: #0b141a;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-whatsapp-subtle:hover {
  background: #22bf5b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* --------------------------------------------------------------------------
   CENTRO DE CONTROL EDITORIAL CMS INTEGRAL
   -------------------------------------------------------------------------- */
.cms-window {
  border-color: var(--border-medium);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(223, 180, 142, 0.2);
}

.cms-header {
  padding: 16px 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.cms-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--copper);
  background: var(--copper-badge);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
}

.cms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 8px #25d366;
  display: inline-block;
}

.cms-tabs-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--line-divider);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.cms-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.cms-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.cms-tab-btn.active {
  color: var(--copper);
  background: var(--copper-badge);
  font-weight: 700;
}

.cms-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--copper);
}

.cms-tab-btn-add {
  color: #25d366 !important;
  border: 1px dashed rgba(37, 211, 102, 0.35) !important;
  margin-left: 8px;
}

.cms-tab-btn-add:hover {
  background: rgba(37, 211, 102, 0.1) !important;
}

.cms-body {
  padding: 20px 24px;
  overflow-y: auto;
  max-height: calc(92vh - 180px);
}

.cms-panel-intro {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.cms-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.cms-panel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cms-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.cms-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color var(--transition-fast);
}

.cms-item-card:hover {
  border-color: var(--border-medium);
}

.cms-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cms-item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--copper);
  background: var(--copper-badge);
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-delete-item {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-delete-item:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ff6b6b;
}

.cms-add-box {
  background: rgba(223, 180, 142, 0.05);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 24px;
}

.cms-add-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cms-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  margin-top: 20px;
  border-top: 1px solid var(--line-divider);
  flex-wrap: wrap;
  gap: 12px;
}

.cms-sync-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--copper);
}

.cms-sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
}
