/* 
==================================================================
NEXUM LEGALES - ESTILO CORE PREMIUM (CSS3)
Diseño: Minimalismo, Contraste Alto, Lujo Moderno y Elegancia Legal
==================================================================
*/

/* 1. IMPORTAR FUENTES PREMIUM DE GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800&family=Montserrat:wght@200;300;400;500;600;700&display=swap');

/* 2. TOKENS DE DISEÑO (VARIABLES GLOBALES) */
:root {
  /* Paleta de Colores */
  --primary: #0D1B2A;          /* Azul marino ultra profundo, casi negro */
  --primary-rgb: 13, 27, 42;
  --secondary: #1B263B;        /* Azul corporativo de contraste */
  --accent: #C5A880;           /* Dorado Champagne satinado */
  --accent-rgb: 197, 168, 128;
  --accent-hover: #D9C3A3;     /* Dorado champán más claro/brillante */
  --accent-muted: #EADBC8;     /* Dorado pálido */
  --light: #FDFDFD;            /* Blanco puro satinado */
  --light-muted: #F5F6F8;      /* Gris seda suave */
  --dark-text: #111111;        /* Negro carbón para legibilidad */
  --light-text: #EAEAEA;       /* Gris claro para fondo oscuro */
  --muted-text: #666666;       /* Gris neutro para textos secundarios */
  --primary-contacto: #0c0c0c;
  
  /* Fuentes */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 10px 25px rgba(197, 168, 128, 0.25);
  
  /* Bordes y Esquinas */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --border-light: 1px solid rgba(224, 224, 224, 0.8);
  --border-accent: 1px solid var(--accent);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  
  /* Transiciones */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. RESET DE ESTILOS Y COMPORTAMIENTO BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--light);
  color: var(--dark-text);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

/* Scrollbar Personalizada Premium */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-muted);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* 4. ELEMENTOS TIPOGRÁFICOS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1px;
}

p {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--muted-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 5. BOTONES PREMIUM E INTERACTIVOS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Botón Primario Oscuro (Agendar Consulta) */
.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  border: 1px solid var(--primary);
}
.btn-primary::after {
  content: ' →';
  margin-left: 6px;
  transition: transform 0.3s ease;
}
.btn-primary:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover::after {
  transform: translateX(4px);
}

/* Botón Secundario (Borde Fino / WhatsApp) */
.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(13, 27, 42, 0.4);
}
.btn-secondary svg {
  margin-right: 8px;
  fill: currentColor;
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}
.btn-secondary:hover {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover svg {
  transform: scale(1.1);
}

/* Botón Blanco para Secciones Oscuras */
.btn-light-outline {
  background-color: transparent;
  color: var(--light);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-light-outline:hover {
  background-color: var(--light);
  color: var(--primary);
  border-color: var(--light);
  box-shadow: var(--shadow-md);
}

/* Botón de WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  z-index: 99;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* 6. CABECERA (HEADER & NAVBAR) */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
}

/* Header pegajoso (Sticky) con efecto vidrio */
header.sticky {
  position: fixed;
  top: 0;
  background-color: rgba(253, 253, 253, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  backdrop-filter: blur(10px);
  animation: slideDown 0.4s ease-out;
}
header.sticky .logo-text, header.sticky .nav-link {
  color: var(--primary);
}
header.sticky .logo-container img {
  height: 40px; /* Reducir levemente el logo */
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Contenedor del Logo */
.logo-container {
  display: flex;
  align-items: center;
}
.logo-container img {
  height: 52px;
  width: auto;
  transition: var(--transition);
}

/* Menú de Navegación */
nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  padding: 10px 0;
  position: relative;
}
/* Cabecera cuando está sobre el Hero Oscuro */
.dark-header .nav-link {
  color: var(--light-text);
}
.dark-header .logo-path-dark-auto {
  fill: #FDFDFD;
}
.dark-header .brand-title-auto {
  fill: #FDFDFD;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: var(--transition-fast);
}
.nav-link:hover {
  color: var(--accent);
}
.nav-link:hover::after {
  width: 100%;
}

/* Botón CTA del Header */
.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.7rem;
}
.dark-header .header-cta .btn {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--light);
}
.dark-header .header-cta .btn:hover {
  background-color: var(--light);
  color: var(--primary);
  border-color: var(--light);
}

/* Botón de Menú Móvil (Hamburger) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 102;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: var(--transition);
}
.dark-header .menu-toggle span {
  background-color: var(--light);
}

/* 7. SECCIÓN PORTADA (HERO SPLIT) */
.hero-split {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  position: relative;
  overflow: hidden;
}

.hero-left {
  width: 50%;
  background-color: var(--light);
  padding: 120px 10% 80px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-logo-big {
  width: 150px;
  margin-bottom: 35px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-left h1 {
  font-size: 3.5rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--primary);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-left .highlight {
  color: var(--accent);
}

.hero-left p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted-text);
  margin-bottom: 40px;
  max-width: 480px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-actions {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Lado Derecho (Imagen con Fusión) */
.hero-right {
  width: 50%;
  background-image: url('../assets/hero-light.webp?v=3');
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--light) 0%, rgba(253, 253, 253, 0) 100%);
  pointer-events: none;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 8. SEGUNDA SECCIÓN (PROPUESTA DE VALOR / POR QUÉ ELEGIRNOS) */
section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 15px;
  display: inline-block;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 50px;
  line-height: 1.3;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.why-card {
  padding: 40px 30px;
  border-left: 1px solid rgba(13, 27, 42, 0.1);
  transition: var(--transition);
}
.why-card:hover {
  border-left-color: var(--accent);
  background-color: var(--light-muted);
  transform: translateY(-5px);
}

.why-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.why-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.why-card p {
  font-size: 0.9rem;
}

/* 9. TERCERA SECCIÓN (ESPECIALIDADES - GRIDS) */
.bg-muted {
  background-color: var(--light-muted);
}

.services-intro {
  max-width: 700px;
  margin-bottom: 60px;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.service-card {
  background-color: var(--light);
  border: var(--border-light);
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: var(--transition);
}

/* El elemento con índice 4 (o sea 3, 5, etc.) que ocupa más espacio */
.service-card.span-2 {
  grid-column: span 2;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-card-top .num {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 500;
}

.service-card p {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}
.service-link::after {
  content: ' →';
  margin-left: 5px;
  transition: transform 0.2s ease;
}
.service-card:hover .service-link {
  color: var(--accent);
}
.service-card:hover .service-link::after {
  transform: translateX(4px);
}

/* Banner de consulta rápida */
.cta-banner {
  background-color: var(--light);
  border: 1px solid rgba(137, 137, 137, 0.15);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  margin-top: 40px;
}
.cta-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cta-banner-icon {
  width: 50px;
  height: 50px;
  background-color: var(--light-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.cta-banner-text h4 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.cta-banner-actions {
  display: flex;
  gap: 15px;
}

/* 10. CUARTA SECCIÓN (FRASE + CÓMO TRABAJAMOS) */
.dark-section {
  background-color: var(--primary);
  color: var(--light-text);
  overflow: hidden;
}

.dark-section h2 {
  color: var(--light);
}

/* Bloque Frase */
.quote-container {
  display: flex;
  min-height: 450px;
  margin-bottom: 80px;
}
.quote-left {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 50px;
}
.quote-left blockquote {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 400;
}
.quote-left blockquote span {
  color: var(--accent);
}
.quote-left p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}
.quote-right {
  width: 40%;
  background-image: url('../assets/hero-dark.webp?v=4');
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); /* Da un efecto flotante a la papelería */
}
.quote-right::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: transparent;
  display: none; /* Remueve el velo oscuro para que se vea claro el bodegón de papelería */
}

/* Línea de Tiempo de Proceso */
.timeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  margin-top: 50px;
}
.timeline-row::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
}
.timeline-num {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}
.timeline-step:hover .timeline-num {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--primary);
  box-shadow: var(--shadow-accent);
}
.timeline-step h3 {
  color: var(--light);
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 500;
}
.timeline-step p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Sub-frase final en la sección */
.timeline-footer {
  margin-top: 80px;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timeline-footer p {
  font-size: 1rem;
  font-family: var(--font-serif);
  color: rgba(255, 255, 255, 0.8);
}
.timeline-footer p span {
  color: var(--accent);
  font-style: italic;
}

/* Estilos para Sección Nosotros Oscura con el logo de Nexum */
#nosotros {
  background-color: #0c0e14; /* Un negro azulado profundo que combina con la pared de concreto */
  color: var(--light-text);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

#nosotros h2 {
  color: var(--light);
}

#nosotros p {
  color: rgba(255, 255, 255, 0.75);
}

/* 11. QUINTA SECCIÓN (FILOSOFÍA / PILARES) */
.split-invert {
  display: flex;
  align-items: stretch;
  gap: 5%;
  margin-bottom: 80px;
}
.split-invert-left {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split-invert-left h2 {
  font-size: 2.2rem;
  line-height: 1.3;
  margin-bottom: 30px;
}
.split-invert-left p {
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.split-invert-right {
  width: 40%;
  /* background-image: url('../assets/logo-full-dark.png');
  background-size: cover;
  background-position: center; /* Centrado para mostrar el cuaderno, lápiz y tarjeta */
  min-height: 380px;
  border-radius: var(--radius-sm);
  position: relative;
  box-shadow: var(--shadow-md); /* Sombra suave para un efecto flotante realista */
}

/* Grid de Pilares de Filosofía */
.pilars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pilar-card {
  border: var(--border-light);
  padding: 35px 25px;
  transition: var(--transition);
}
.pilar-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  background-color: var(--light-muted);
}
.pilar-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.pilar-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pilar-card p {
  font-size: 0.85rem;
}

.philosophy-banner {
  text-align: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
}
.philosophy-banner p {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--primary);
}
.philosophy-banner p span {
  font-style: italic;
  color: var(--accent);
}

/* 12. SEXTA SECCIÓN (CONTACTO) */
.contact-layout {
  display: flex;
  gap: 10%;
}
.contact-info {
  width: 40%;
}
.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}
.contact-info p {
  margin-bottom: 40px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.contact-channel {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.channel-icon {
  width: 44px;
  height: 44px;
  background-color: var(--light-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.channel-details h4 {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-text);
  margin-bottom: 5px;
}
.channel-details p, .channel-details a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}
.channel-details a:hover {
  color: var(--accent);
}

/* Formulario */
.contact-form-container {
  width: 50%;
  background-color: var(--light);
  border: var(--border-light);
  padding: 50px;
  box-shadow: var(--shadow-sm);
}
.form-group {
  margin-bottom: 24px;
  position: relative;
}
.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(13, 27, 42, 0.15);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  background-color: var(--light-muted);
  border-radius: var(--radius-sm);
  color: var(--primary);
  transition: var(--transition-fast);
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: var(--light);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}
textarea.form-input {
  min-height: 120px;
  resize: vertical;
}

/* 13. FOOTER */
footer {
  background-color: #050B14;
  color: rgba(255, 255, 255, 0.4);
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}
.footer-logo {
  height: 35px;
}
.footer-copy a {
  color: rgba(255, 255, 255, 0.6);
}
.footer-copy a:hover {
  color: var(--accent);
}

/* 14. MODAL FLOTANTE "AGENDAR CONSULTA" */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--light);
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(197, 168, 128, 0.2);
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-container.calendly-modal {
  max-width: 820px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.modal-close:hover {
  color: var(--accent);
}

.modal-header {
  padding: 40px 40px 20px 40px;
  border-bottom: 1px solid rgba(13, 27, 42, 0.05);
}
.modal-header h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.modal-header p {
  font-size: 0.85rem;
}

.modal-body {
  padding: 30px 40px 40px 40px;
}

/* 15. SECCIÓN ESPECÍFICA DE LAS PÁGINAS SEO (PÁGINAS DE SERVICIOS) */
.seo-hero {
  background-color: var(--primary);
  color: var(--light-text);
  padding: 160px 0 80px 0;
}
.seo-hero h1 {
  color: var(--light);
  font-size: 2.8rem;
  margin-bottom: 24px;
}
.seo-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  max-width: 750px;
}

.seo-layout {
  display: flex;
  gap: 8%;
  margin-top: 60px;
}
.seo-main {
  width: 65%;
}
.seo-sidebar {
  width: 27%;
}

.seo-section {
  margin-bottom: 60px;
}
.seo-section h3 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  display: inline-block;
}

/* Listado de Checks Premium */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary);
}
.check-icon {
  color: var(--accent);
  flex-shrink: 0;
  font-weight: bold;
}

/* Acordeón de FAQs */
.faq-accordion {
  margin-top: 30px;
}
.faq-item {
  border-bottom: 1px solid rgba(13, 27, 42, 0.1);
}
.faq-question {
  width: 100%;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-icon {
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.faq-answer p {
  padding-bottom: 22px;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Casos y Soluciones */
.case-card {
  background-color: var(--light-muted);
  border-left: 3px solid var(--accent);
  padding: 30px;
  margin-bottom: 20px;
}
.case-card h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.case-card h5 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 15px;
}

/* Sidebar de Contacto Rápido */
.sidebar-box {
  background-color: var(--light-muted);
  border: var(--border-light);
  padding: 35px;
  border-radius: var(--radius-sm);
  position: sticky;
  top: 100px;
}
.sidebar-box h4 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.sidebar-box p {
  font-size: 0.85rem;
  margin-bottom: 25px;
}
.sidebar-box .btn {
  width: 100%;
  margin-bottom: 12px;
}

/* 16. DISEÑO RESPONSIVO (MÓVIL-FIRST & MEDIA QUERIES) */

/* Pantallas grandes y medianas */
@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid .service-card.span-2 {
    grid-column: span 1;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pilars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tabletas */
@media (max-width: 900px) {
  section {
    padding: 70px 0;
  }
  
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }
  .hero-left {
    width: 100%;
    padding: 140px 24px 60px 24px;
    align-items: center;
    text-align: center;
  }
  .hero-left p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-right {
    width: 100%;
    height: 400px;
  }
  .hero-right::before {
    background: linear-gradient(to bottom, var(--light) 0%, rgba(253, 253, 253, 0) 100%);
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .quote-container {
    flex-direction: column;
    min-height: auto;
  }
  .quote-left {
    width: 100%;
    padding-right: 0;
    margin-bottom: 40px;
  }
  .quote-right {
    width: 100%;
    height: 250px;
  }
  
  .timeline-row {
    grid-template-columns: 1fr;
  }
  .timeline-row::before {
    display: none;
  }
  
  .split-invert {
    flex-direction: column-reverse;
  }
  .split-invert-left, .split-invert-right {
    width: 100%;
  }
  .split-invert-right {
    height: 250px;
    margin-bottom: 30px;
  }
  
  .contact-layout {
    flex-direction: column;
    gap: 50px;
  }
  .contact-info, .contact-form-container {
    width: 100%;
  }
  
  .seo-layout {
    flex-direction: column;
    gap: 40px;
  }
  .seo-main, .seo-sidebar {
    width: 100%;
  }
  
  /* Menú Móvil */
  .menu-toggle {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary);
    z-index: 101;
    padding: 100px 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
  }
  nav.active {
    right: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 25px;
  }
  .nav-link {
    color: var(--light-text);
    font-size: 0.9rem;
  }
  .header-cta {
    display: none;
  }
  
  /* Transformar Menú Hamburguesa a Cruz al Activar */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Teléfonos móviles */
@media (max-width: 600px) {
  .hero-left h1 {
    font-size: 2.3rem;
  }
  .hero-logo-big {
    width: 110px;
    margin-bottom: 20px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  .pilars-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner {
    flex-direction: column;
    gap: 24px;
    padding: 30px 20px;
    text-align: center;
  }
  .cta-banner-left {
    flex-direction: column;
  }
  .cta-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-banner-actions .btn {
    width: 100%;
  }
  
  .quote-left blockquote {
    font-size: 1.5rem;
  }
  
  .contact-form-container {
    padding: 30px 20px;
  }
  
  .check-list {
    grid-template-columns: 1fr;
  }
  
  .footer-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .modal-container {
    max-width: 90%;
  }
  .modal-header, .modal-body {
    padding: 30px 20px;
  }
}

/* Estilos para Sección Metodología Clara en compose con papelería */
#metodologia {
  background-color: #eaeaea !important; /* El hermoso gris piedra claro que combina con la papelería */
  color: var(--dark-text) !important;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

#metodologia h2 {
  color: var(--primary) !important;
}

#metodologia .timeline-step h3 {
  color: var(--primary) !important;
}

#metodologia .timeline-step p {
  color: #444444 !important;
}

#metodologia .quote-left blockquote {
  color: var(--primary) !important;
}

#metodologia .quote-left p {
  color: #444444 !important;
}

#metodologia .timeline-num {
  background-color: var(--primary) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--accent) !important;
}

#metodologia .timeline-row::before {
  background-color: rgba(13, 27, 42, 0.1) !important;
}

#metodologia .timeline-footer {
  border-top: 1px solid rgba(13, 27, 42, 0.1) !important;
}

#metodologia .timeline-footer p {
  color: var(--primary) !important;
}

#metodologia .timeline-footer p span {
  color: var(--accent) !important;
}

/* Estilos para Sección Contacto Oscura Unificada con el Logo Metalizado */
#contacto {
  background-color: var(--primary-contacto) !important;
  color: var(--light-text) !important;
  padding: 100px 0;
  position: relative;
}

#contacto .section-tag {
  color: var(--accent) !important;
}

#contacto h2 {
  color: var(--light) !important;
}

#contacto p {
  color: rgba(255, 255, 255, 0.7) !important;
}

#contacto .channel-icon {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--accent) !important;
}

#contacto .channel-details h4 {
  color: rgba(255, 255, 255, 0.45) !important;
}

#contacto .channel-details p, 
#contacto .channel-details a {
  color: var(--light) !important;
  font-size: 1rem !important;
}

#contacto .channel-details a:hover {
  color: var(--accent) !important;
}


/* ==========================================================================
   MÉTRICAS DE CONFIANZA EN HERO (APROBADAS)
   ========================================================================== */
.hero-trust-metrics {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  border-top: 1px solid rgba(13, 27, 42, 0.08);
  padding-top: 35px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.trust-metric-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.trust-metric-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
}

.trust-metric-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted-text);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive adjustment for trust metrics */
@media (max-width: 600px) {
  .hero-trust-metrics {
    gap: 25px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
  }
  .trust-metric-item {
    flex-direction: column;
    gap: 5px;
  }
}


/* ==========================================================================
   MICRO-INTERACCIONES PREMIUM Y MEJORAS DE USABILIDAD MÓVIL
   ========================================================================== */
.why-card, .service-card, .timeline-step, .pilar-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.why-card:hover, .pilar-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(13, 27, 42, 0.08) !important;
  border-color: var(--accent) !important;
}

.service-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(13, 27, 42, 0.12) !important;
  border-color: var(--accent) !important;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left;
}

.service-card:hover::after {
  transform: scaleX(1);
}

/* Reducción responsiva del botón flotante de WhatsApp para no interferir en móviles */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
