/* ==========================================================================
   DOMINGO ISAIN - SISTEMA DE DISEÑO DARK GLASSMORPHISM & UI MODERNA
   Gasfíter Instalador Autorizado SEC Clase 3 (RUT 12.738.961-6)
   ========================================================================== */

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

:root {
  /* Paleta Cromática Oficial de Marca - Domingo Isaín Técnico en Ingeniería */
  --brand-blue: #0088cc;
  --brand-blue-hover: #0077b5;
  --brand-blue-glow: rgba(0, 136, 204, 0.35);
  
  --brand-cyan: #38d9fa;
  --brand-cyan-light: #67e8f9;
  --brand-cyan-glow: rgba(56, 217, 250, 0.35);
  
  --brand-dark-blue: #004c80;
  --brand-charcoal: #475569;
  --brand-charcoal-dark: #1e293b;

  /* Fondos Dark High-Tech */
  --bg-main: #060a12;
  --bg-surface: #0a1120;
  --bg-card: rgba(13, 22, 40, 0.8);
  --bg-card-hover: rgba(18, 32, 58, 0.92);
  --bg-glass: rgba(13, 22, 40, 0.65);
  
  /* Acentos de Certificación y Seguridad */
  --sec-green: #10b981;
  --sec-green-glow: rgba(16, 185, 129, 0.35);
  --tech-cyan: #38d9fa;
  --tech-cyan-glow: rgba(56, 217, 250, 0.35);
  --prodoral-amber: #f59e0b;
  --prodoral-amber-glow: rgba(245, 158, 11, 0.3);
  --emergency-red: #ef4444;
  --emergency-red-glow: rgba(239, 68, 68, 0.4);

  /* Bordes y Reflejos */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 217, 250, 0.3);
  --border-brand: rgba(0, 136, 204, 0.35);
  --border-sec: rgba(16, 185, 129, 0.3);

  /* Tipografía */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;

  /* Sombras */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
  --shadow-glow-cyan: 0 0 25px var(--brand-cyan-glow);
  --shadow-glow-blue: 0 0 25px var(--brand-blue-glow);
  --shadow-glow-green: 0 0 25px var(--sec-green-glow);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 136, 204, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(56, 217, 250, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
  background: var(--brand-cyan);
  color: #040812;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 136, 204, 0.3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-cyan);
}

/* --------------------------------------------------------------------------
   AURA SUTIL DEL MOUSE (0% LAG - RESPUESTA INSTANTÁNEA NATIVA)
   -------------------------------------------------------------------------- */
.custom-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--brand-cyan);
  background: rgba(56, 217, 250, 0.08);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--transition-bounce), 
              height 0.2s var(--transition-bounce), 
              border-color 0.15s ease, 
              background 0.15s ease,
              border-radius 0.2s ease,
              opacity 0.2s ease;
  will-change: transform;
}

.custom-cursor-aura.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: var(--brand-cyan);
  background: rgba(56, 217, 250, 0.15);
  border-radius: 12px;
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 20px var(--brand-cyan-glow);
}

.custom-cursor-aura.cursor-emergency {
  width: 60px;
  height: 60px;
  border-color: var(--emergency-red);
  background: rgba(239, 68, 68, 0.18);
  box-shadow: 0 0 25px var(--emergency-red-glow);
}

.custom-cursor-aura.cursor-clicking {
  transform: translate(-50%, -50%) scale(0.75);
}

.cursor-hidden {
  opacity: 0 !important;
}
  opacity: 0 !important;
}

@keyframes pulseRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* --------------------------------------------------------------------------
   BARRA SUPERIOR DE URGENCIAS Y CABECERA (HEADER)
   -------------------------------------------------------------------------- */
.top-emergency-bar {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(16, 185, 129, 0.15), rgba(0, 210, 255, 0.15));
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 16px;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1000;
}

.top-emergency-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.emergency-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emergency-red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulseWave 1.8s infinite;
}

@keyframes pulseWave {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.top-emergency-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-emergency-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.top-emergency-phone {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.top-emergency-phone:hover {
  color: var(--brand-cyan);
}

.top-emergency-text {
  font-size: 0.85rem;
  color: #cbd5e1;
}

.header-main {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 2px solid var(--sec-green);
  object-fit: cover;
  box-shadow: var(--shadow-glow-green);
}

.logo-texts {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 40%, var(--tech-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sec-green);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--brand-cyan);
  box-shadow: 0 0 8px var(--brand-cyan);
  border-radius: var(--radius-full);
}

/* Botones de Acción de Cabecera */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-header-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, #059669, #047857);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   HERO SECTION MODERNO
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 60px 20px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  top: -100px;
  right: -50px;
  background: rgba(0, 210, 255, 0.12);
}
.hero-glow-2 {
  bottom: -150px;
  left: -100px;
  background: rgba(16, 185, 129, 0.1);
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  color: var(--sec-green);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--tech-cyan) 80%, var(--sec-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-amber {
  color: var(--prodoral-amber);
  text-shadow: 0 0 20px var(--prodoral-amber-glow);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 620px;
}

.hero-guarantees {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
}

.guarantee-item svg {
  color: var(--sec-green);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.4);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.6);
  background: linear-gradient(135deg, #0369a1, #0284c7);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

/* Columna Visual Hero (Card & Slider de Domingo en Acción) */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.hero-visual-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.3), transparent 60%, rgba(16, 185, 129, 0.3));
  border-radius: inherit;
  z-index: -1;
}

.hero-slider-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4/3;
  background: #020408;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-slide-img {
  transform: scale(1.03);
}

.hero-slide-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(6, 9, 15, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--tech-cyan);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Botones de Navegación del Slider */
.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 9, 15, 0.75);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
  opacity: 0.8;
}

.hero-slider-btn:hover {
  background: var(--tech-cyan);
  color: #040812;
  border-color: var(--tech-cyan);
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 15px var(--tech-cyan-glow);
}

.hero-slider-prev {
  left: 12px;
}

.hero-slider-next {
  right: 12px;
}

/* Indicadores / Paginación Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  background: rgba(6, 9, 15, 0.7);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-slider-dot.active {
  width: 22px;
  background: var(--sec-green);
  box-shadow: 0 0 8px var(--sec-green);
}

.hero-floating-badge {
  margin-top: 14px;
  background: rgba(6, 9, 15, 0.92);
  border: 1px solid var(--border-sec);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-info-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
}

.badge-info-sub {
  font-size: 0.78rem;
  color: var(--sec-green);
  font-weight: 600;
}

.btn-verify-qr {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--sec-green);
  color: var(--sec-green);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.btn-verify-qr:hover {
  background: var(--sec-green);
  color: #040812;
}

/* --------------------------------------------------------------------------
   ESTADÍSTICAS Y MÉTRICAS DE CONFIANZA
   -------------------------------------------------------------------------- */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 35px 20px;
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.stat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.stat-icon-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--sec-green);
  border: 1px solid var(--border-sec);
}
.stat-icon-cyan {
  background: rgba(0, 210, 255, 0.15);
  color: var(--tech-cyan);
  border: 1px solid var(--border-glow);
}
.stat-icon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--prodoral-amber);
  border: 1px solid var(--prodoral-amber-glow);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   SECCIONES Y TARJETAS DE SERVICIOS
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 90px 20px;
  position: relative;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid var(--border-glow);
  color: var(--tech-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Grid de Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tech-cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

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

.service-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--sec-green);
  border: 1px solid var(--border-sec);
}
.badge-cyan {
  background: rgba(0, 210, 255, 0.15);
  color: var(--tech-cyan);
  border: 1px solid var(--border-glow);
}
.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: var(--prodoral-amber);
  border: 1px solid var(--prodoral-amber-glow);
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.service-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.service-features-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features-list li svg {
  color: var(--sec-green);
  flex-shrink: 0;
}

.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--tech-cyan);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid var(--border-glow);
  transition: all var(--transition-fast);
}

.service-card-btn:hover {
  background: var(--tech-cyan);
  color: #040812;
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   SECCIÓN DE CERTIFICADOS OFICIALES & LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.certificates-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cert-card:hover {
  border-color: var(--sec-green);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow-green);
}

.cert-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #020408;
  margin-bottom: 16px;
}

.cert-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cert-card:hover .cert-thumbnail {
  transform: scale(1.06);
}

.cert-overlay-icon {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 15, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.cert-card:hover .cert-overlay-icon {
  opacity: 1;
}

.cert-zoom-btn {
  background: var(--sec-green);
  color: #040812;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.cert-info-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.cert-info-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Modal Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.modal-open {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
  padding: 28px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s var(--transition-bounce);
}

.modal-backdrop.modal-open .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--emergency-red);
  transform: rotate(90deg);
}

.modal-body {
  text-align: center;
}

.modal-image-preview {
  max-width: 100%;
  max-height: 55vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   COTIZADOR INTERACTIVO EN VIVO
   -------------------------------------------------------------------------- */
.calculator-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.calc-step-group {
  margin-bottom: 28px;
}

.calc-step-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.calc-step-num {
  width: 26px;
  height: 26px;
  background: var(--tech-cyan);
  color: #040812;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.calc-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.calc-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.calc-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glow);
}

.calc-option-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--tech-cyan);
  color: #ffffff;
  box-shadow: 0 0 15px var(--tech-cyan-glow);
}

.calc-option-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.calc-option-text {
  font-weight: 700;
  font-size: 0.88rem;
}

/* Selects y Opciones Dark Mode */
select, .calc-select {
  width: 100%;
  background-color: #0c1322 !important;
  color: #f8fafc !important;
  border: 1px solid var(--border-glow);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300d2ff' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 45px;
}

select:focus, .calc-select:focus {
  border-color: var(--tech-cyan);
  box-shadow: 0 0 15px var(--tech-cyan-glow);
}

select option, .calc-select option {
  background-color: #0c1322 !important;
  color: #f8fafc !important;
  padding: 14px 18px;
  font-size: 0.95rem;
}

/* Columna Resumen Cotizador */
.calc-summary-card {
  background: rgba(6, 9, 15, 0.85);
  border: 1px solid var(--border-sec);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-summary-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.calc-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.calc-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.calc-summary-row strong {
  color: #ffffff;
}

.btn-whatsapp-quote {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-normal);
}

.btn-whatsapp-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.6);
}

/* --------------------------------------------------------------------------
   SECCIÓN FAQS (PREGUNTAS FRECUENTES - CUSTOMER REASSURANCE)
   -------------------------------------------------------------------------- */
.faq-section {
  position: relative;
}

.faq-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.faq-cat-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.faq-cat-btn:hover {
  border-color: var(--border-glow);
  color: #ffffff;
}

.faq-cat-btn.active {
  background: var(--tech-cyan);
  color: #040812;
  border-color: var(--tech-cyan);
  font-weight: 800;
  box-shadow: 0 0 15px var(--tech-cyan-glow);
}

.faq-accordion-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-icon-chevron {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
  background: var(--tech-cyan);
  color: #040812;
}

.faq-answer-pane {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
  padding: 0 24px 22px 24px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   FOOTER MODERNO
   -------------------------------------------------------------------------- */
.footer-main {
  background: #030509;
  border-top: 1px solid var(--border-subtle);
  padding: 70px 20px 30px;
  position: relative;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto 50px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 16px 0 20px;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--tech-cyan);
}

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

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: var(--tech-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   BOTONES FLOTANTES: WHATSAPP Y GO-TO-TOP INTELIGENTE
   -------------------------------------------------------------------------- */
.floating-actions-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 9999;
}

/* Botón WhatsApp Flotante Pulsante */
.btn-floating-whatsapp {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  position: relative;
  transition: all var(--transition-normal);
}

.btn-floating-whatsapp:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.65);
}

.whatsapp-radar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes radarPing {
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Botón GO TO TOP Inteligente */
.btn-go-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 23, 42, 0.85);
  border: 1px solid var(--border-glow);
  color: var(--tech-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s var(--transition-bounce), visibility 0.35s ease;
}

/* Estado visible SOLO cuando llega al fondo de la web */
.btn-go-to-top.is-bottom-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.btn-go-to-top:hover {
  background: var(--tech-cyan);
  color: #040812;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 25px var(--tech-cyan-glow);
}

/* --------------------------------------------------------------------------
   SECCIONES EXCLUSIVAS DE CERTIFICADOS & MASTER EN DETALLE
   -------------------------------------------------------------------------- */
.cert-detail-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.cert-detail-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 15px 40px rgba(0, 136, 204, 0.2);
  transform: translateY(-3px);
}

.cert-detail-card.reverse-layout {
  grid-template-columns: 1.35fr 1fr;
}

.cert-detail-card.reverse-layout .cert-detail-visual {
  order: 2;
}

.cert-detail-card.reverse-layout .cert-detail-content {
  order: 1;
}

.cert-detail-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform var(--transition-normal);
}

.cert-detail-visual:hover {
  transform: scale(1.02);
}

.cert-detail-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

.cert-zoom-hint {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(6, 10, 18, 0.9);
  color: var(--brand-cyan);
  border: 1px solid var(--border-glow);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
}

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

.cert-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 136, 204, 0.12);
  border: 1px solid var(--border-brand);
  color: var(--brand-cyan);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  width: fit-content;
}

.cert-header-badge.badge-uc {
  background: rgba(234, 179, 8, 0.12);
  border-color: rgba(234, 179, 8, 0.35);
  color: #facc15;
}

.cert-header-badge.badge-sec {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.cert-detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.cert-institution-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cert-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cert-section-block {
  background: rgba(6, 10, 18, 0.5);
  border-left: 3px solid var(--brand-blue);
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.cert-section-block.block-sec {
  border-left-color: var(--sec-green);
}

.cert-block-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-block-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-faq-highlight {
  background: rgba(56, 217, 250, 0.05);
  border: 1px dashed var(--border-glow);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.cert-faq-question {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}

.cert-faq-answer {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-guarantees {
    justify-content: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   MENÚ MÓVIL DESLIZABLE (OFF-CANVAS DRAWER: IZQUIERDA A DERECHA)
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-drawer-overlay.drawer-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 86%;
  max-width: 340px;
  background: rgba(5, 9, 16, 0.98);
  border-right: 1px solid var(--border-glow);
  box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  overflow-y: auto;
}

.mobile-drawer-panel.drawer-open {
  transform: translateX(0);
}

.mobile-drawer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  color: var(--brand-cyan);
  background: rgba(56, 217, 250, 0.08);
  border-color: rgba(56, 217, 250, 0.2);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES) - 100% FULL RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 36px;
  }
  .hero-lead {
    max-width: 100%;
  }
  .calc-container {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .nav-desktop {
    display: none !important;
  }
  .header-actions .btn-header-call {
    display: none !important;
  }
  .header-container {
    padding: 10px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
  .logo-brand {
    gap: 0 !important;
  }
  .logo-brand img {
    height: 44px !important;
    max-width: 210px !important;
  }
  /* Ocultar texto duplicado en el header móvil para máxima claridad */
  .logo-texts {
    display: none !important;
  }
  /* Botón de Menú Móvil Hamburguesa - Alto Contraste y Enfoque Nítido */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 136, 204, 0.16) !important;
    border: 1.5px solid var(--brand-cyan) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56, 217, 250, 0.25) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  .mobile-menu-btn svg {
    width: 24px !important;
    height: 24px !important;
    stroke: #ffffff !important;
  }
  .mobile-menu-btn:active {
    transform: scale(0.92) !important;
    background: var(--brand-blue) !important;
  }

  /* Barra Superior de Emergencias Móvil - 1 Sola Línea Impecable */
  .top-emergency-bar {
    padding: 6px 14px !important;
  }
  .top-emergency-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .top-emergency-text {
    display: none !important;
  }
  .top-emergency-left {
    gap: 6px !important;
  }
  .emergency-pill {
    padding: 3px 8px !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
  }
  .top-emergency-right {
    gap: 10px !important;
  }
  .sec-badge-header {
    display: none !important;
  }
  .top-emergency-phone {
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
  }

  /* Hero Section Full Responsive */
  .hero-section {
    padding: 24px 16px 36px !important;
    overflow-x: hidden !important;
  }
  .hero-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-content-pane {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.25rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.5px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    margin-bottom: 16px !important;
  }
  .hero-lead {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 22px !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }

  /* Guarantees y Badges Vertical Stack */
  .hero-guarantees {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 9px !important;
    margin-bottom: 24px !important;
  }
  .guarantee-item {
    width: 100% !important;
    box-sizing: border-box !important;
    font-size: 0.85rem !important;
    padding: 10px 14px !important;
    border-radius: var(--radius-md) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .guarantee-item span {
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35;
  }

  /* Botones CTA Full Width */
  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary,
  .btn-primary,
  .btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 14px 18px !important;
    font-size: 0.98rem !important;
  }

  /* Visual Pane & Image / Slider */
  .hero-visual-pane {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-visual-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px !important;
    border-radius: var(--radius-lg) !important;
  }
  .hero-floating-badge {
    position: static !important;
    margin-top: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-md) !important;
  }

  /* Secciones Generales */
  .section-padding {
    padding: 40px 16px !important;
  }
  .section-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  .section-header {
    margin-bottom: 28px !important;
  }
  .section-title {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem) !important;
  }
  .section-desc {
    font-size: 0.92rem !important;
  }

  /* Grids */
  .services-grid,
  .certs-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .service-card,
  .cert-card,
  .stat-card {
    padding: 20px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Certificados Detallados */
  .cert-detail-card,
  .cert-detail-card.reverse-layout {
    grid-template-columns: 1fr !important;
    padding: 20px 16px !important;
    gap: 20px !important;
  }
  .cert-detail-card.reverse-layout .cert-detail-visual {
    order: 1 !important;
  }
  .cert-detail-card.reverse-layout .cert-detail-content {
    order: 2 !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
}
