/*
 * Theme Name: CVI Los Leones Child Theme
 * Theme URI: https://cvilosleones.cl
 * Description: Child theme premium para CVI Los Leones — Auditoría Digital 2026
 * Author: Equipo Elite Auditoría Digital
 * Template: hello-elementor
 * Version: 2.0.0
 * Text Domain: cvi-child
 */

/* ============================================================
   IMPORTAR ESTILOS DEL TEMA PADRE
   ============================================================ */


/* ============================================================
   1. VARIABLES GLOBALES — PALETA CVI LOS LEONES
   ============================================================ */
:root {
  --cvi-teal:          #006B6B;
  --cvi-teal-dark:     #004D4D;
  --cvi-teal-light:    #E6F4F4;
  --cvi-amber:         #F0A500;
  --cvi-amber-light:   #FEF5EC;
  --cvi-green:         #27AE60;
  --cvi-green-light:   #EAFAF1;
  --cvi-red:           #E74C3C;
  --cvi-red-light:     #FDECEA;
  --cvi-text:          #2C3E50;
  --cvi-text-light:    #6B7A8D;
  --cvi-bg:            #FFFFFF;
  --cvi-bg-light:      #F7FAFA;
  --cvi-border:        #DDE4E8;
  --cvi-shadow:        0 4px 20px rgba(0,107,107,0.12);
  --cvi-shadow-hover:  0 8px 32px rgba(0,107,107,0.22);
  --cvi-radius:        12px;
  --cvi-radius-sm:     8px;
  --cvi-transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --cvi-font:          'Inter', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   2. TIPOGRAFÍA GLOBAL PREMIUM
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--cvi-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--cvi-text);
  background: var(--cvi-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cvi-font);
  font-weight: 700;
  line-height: 1.25;
  color: var(--cvi-teal-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(28px, 4vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }

p {
  margin-bottom: 1.2rem;
  color: var(--cvi-text);
}

a {
  color: var(--cvi-teal);
  text-decoration: none;
  transition: var(--cvi-transition);
}

a:hover {
  color: var(--cvi-teal-dark);
}

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

/* ============================================================
   3. HEADER STICKY PREMIUM
   ============================================================ */
#site-header,
.site-header,
header.site-header,
.header-main,
#header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 2px 20px rgba(0, 107, 107, 0.10) !important;
  transition: var(--cvi-transition) !important;
  border-bottom: 2px solid var(--cvi-teal-light);
}

/* Header compacto al hacer scroll */
.header-scrolled #site-header,
.header-scrolled .site-header,
.scrolled header {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* ============================================================
   4. NAVEGACIÓN PREMIUM
   ============================================================ */

/* Ítem activo en el menú */
.nav-menu li.current-menu-item > a,
.navigation-menu li.current-menu-item > a,
.menu-item.current-menu-item > a {
  color: var(--cvi-teal) !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-menu li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cvi-teal);
  border-radius: 2px;
}

/* ============================================================
   5. BOTONES CTA — SISTEMA COMPLETO
   ============================================================ */
.cvi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--cvi-radius-sm);
  font-family: var(--cvi-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--cvi-transition);
  text-decoration: none !important;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

/* Botón Primario — Reservar Hora */
.cvi-btn-primary,
.btn-reservar,
.elementor-button-link[href*="reserva"],
.elementor-button-link[href*="booking"],
.elementor-button-link[href*="calendly"] {
  background: var(--cvi-teal) !important;
  color: #FFFFFF !important;
  border-color: var(--cvi-teal) !important;
  box-shadow: 0 4px 16px rgba(0,107,107,0.25);
}

.cvi-btn-primary:hover,
.btn-reservar:hover {
  background: var(--cvi-teal-dark) !important;
  border-color: var(--cvi-teal-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,107,107,0.35) !important;
  color: #FFFFFF !important;
}

/* Botón Urgencia */
.cvi-btn-urgent,
.btn-urgencia {
  background: var(--cvi-red) !important;
  color: #FFFFFF !important;
  border-color: var(--cvi-red) !important;
  animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(231,76,60,0); }
}

/* Botón WhatsApp */
.cvi-btn-whatsapp {
  background: #25D366 !important;
  color: #FFFFFF !important;
  border-color: #25D366 !important;
}

.cvi-btn-whatsapp:hover {
  background: #128C7E !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

/* Botón grande para hero */
.cvi-btn-lg {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: var(--cvi-radius);
}

/* ============================================================
   6. WHATSAPP FLOATING BUTTON — SIEMPRE VISIBLE
   ============================================================ */
#cvi-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#cvi-whatsapp-float .cvi-wa-btn {
  width: 62px;
  height: 62px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
  cursor: pointer;
  transition: var(--cvi-transition);
  text-decoration: none;
  position: relative;
}

#cvi-whatsapp-float .cvi-wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.65);
}

#cvi-whatsapp-float .cvi-wa-btn svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* Tooltip del WhatsApp */
#cvi-whatsapp-float .cvi-wa-tooltip {
  background: var(--cvi-text);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--cvi-font);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--cvi-transition);
  pointer-events: none;
}

#cvi-whatsapp-float:hover .cvi-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulso de notificación */
#cvi-whatsapp-float .cvi-wa-btn::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 16px; height: 16px;
  background: var(--cvi-red);
  border-radius: 50%;
  border: 2px solid white;
  animation: notif-pulse 1.5s ease-in-out infinite;
}

@keyframes notif-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================================
   7. MOBILE STICKY BOTTOM BAR
   ============================================================ */
#cvi-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #FFFFFF;
  border-top: 2px solid var(--cvi-teal-light);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.12);
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

#cvi-mobile-bar .cvi-mobile-bar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}

#cvi-mobile-bar .cvi-mb-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--cvi-radius-sm);
  text-decoration: none;
  font-family: var(--cvi-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: var(--cvi-transition);
}

#cvi-mobile-bar .cvi-mb-btn svg {
  width: 24px;
  height: 24px;
}

#cvi-mobile-bar .cvi-mb-call {
  background: var(--cvi-teal-light);
  color: var(--cvi-teal-dark);
}

#cvi-mobile-bar .cvi-mb-call svg { fill: var(--cvi-teal); }

#cvi-mobile-bar .cvi-mb-wa {
  background: #E8FBF2;
  color: #128C7E;
}

#cvi-mobile-bar .cvi-mb-wa svg { fill: #25D366; }

#cvi-mobile-bar .cvi-mb-reserva {
  background: var(--cvi-teal);
  color: #FFFFFF;
}

#cvi-mobile-bar .cvi-mb-reserva svg { fill: #FFFFFF; }

@media (max-width: 767px) {
  #cvi-mobile-bar { display: block; }
  #cvi-whatsapp-float { bottom: 100px; } /* sube sobre el bottom bar */
  /* Agrega padding inferior al body para que el content no quede tapado */
  body { padding-bottom: 80px; }
}

/* ============================================================
   8. HERO SECTION — OVERRIDE PREMIUM
   ============================================================ */
.cvi-hero,
.hero-section,
.home-hero,
section.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cvi-teal-dark) 0%, var(--cvi-teal) 60%, #00A8A8 100%);
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cvi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><circle cx="900" cy="150" r="300" fill="rgba(255,255,255,0.04)"/><circle cx="200" cy="600" r="200" fill="rgba(255,255,255,0.03)"/></svg>') no-repeat center/cover;
  pointer-events: none;
}

/* Trust badges en el hero */
.cvi-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cvi-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 8px 16px;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--cvi-font);
}

/* Banner de urgencias sobre el hero */
.cvi-urgencia-banner {
  background: var(--cvi-red);
  color: #FFFFFF;
  text-align: center;
  padding: 10px 20px;
  font-family: var(--cvi-font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 100;
}

.cvi-urgencia-banner a {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 800;
}

/* ============================================================
   9. CARDS DE SERVICIOS PREMIUM
   ============================================================ */
.cvi-servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 40px 0;
}

.cvi-servicio-card {
  background: var(--cvi-bg);
  border: 1px solid var(--cvi-border);
  border-radius: var(--cvi-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--cvi-transition);
  position: relative;
  overflow: hidden;
}

.cvi-servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--cvi-teal);
  transform: scaleY(0);
  transition: var(--cvi-transition);
  transform-origin: bottom;
}

.cvi-servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cvi-shadow-hover);
  border-color: var(--cvi-teal-light);
}

.cvi-servicio-card:hover::before {
  transform: scaleY(1);
}

.cvi-servicio-icon {
  width: 56px; height: 56px;
  background: var(--cvi-teal-light);
  border-radius: var(--cvi-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.cvi-servicio-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cvi-teal-dark);
  margin: 0;
}

.cvi-servicio-card p {
  font-size: 14px;
  color: var(--cvi-text-light);
  margin: 0;
  flex-grow: 1;
}

.cvi-servicio-card .cvi-card-link {
  color: var(--cvi-teal);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.cvi-servicio-card .cvi-card-link::after {
  content: '→';
  transition: var(--cvi-transition);
}

.cvi-servicio-card:hover .cvi-card-link::after {
  transform: translateX(4px);
}

/* ============================================================
   10. SECCIÓN DE CONFIANZA Y TESTIMONIOS
   ============================================================ */
.cvi-confianza-section {
  background: var(--cvi-bg-light);
  padding: 64px 0;
}

/* Stats numéricos */
.cvi-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.cvi-stat-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--cvi-bg);
  border-radius: var(--cvi-radius);
  box-shadow: var(--cvi-shadow);
}

.cvi-stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--cvi-teal);
  line-height: 1;
  margin-bottom: 8px;
}

.cvi-stat-label {
  font-size: 13px;
  color: var(--cvi-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Testimonios */
.cvi-testimonio-card {
  background: var(--cvi-bg);
  border-radius: var(--cvi-radius);
  padding: 28px;
  box-shadow: var(--cvi-shadow);
  border-left: 4px solid var(--cvi-teal);
  position: relative;
}

.cvi-testimonio-card::before {
  content: '"';
  position: absolute;
  top: 12px; right: 20px;
  font-size: 80px;
  color: var(--cvi-teal-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.cvi-stars {
  color: #F0A500;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.cvi-testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cvi-border);
}

.cvi-author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cvi-teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cvi-author-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--cvi-text);
}

.cvi-author-meta {
  font-size: 13px;
  color: var(--cvi-text-light);
}

/* ============================================================
   11. SECCIÓN EQUIPO MÉDICO
   ============================================================ */
.cvi-equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.cvi-medico-card {
  background: var(--cvi-bg);
  border-radius: var(--cvi-radius);
  overflow: hidden;
  box-shadow: var(--cvi-shadow);
  transition: var(--cvi-transition);
  text-align: center;
}

.cvi-medico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cvi-shadow-hover);
}

.cvi-medico-foto {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cvi-teal-light);
}

.cvi-medico-info {
  padding: 20px;
}

.cvi-medico-nombre {
  font-weight: 700;
  font-size: 17px;
  color: var(--cvi-teal-dark);
  margin-bottom: 4px;
}

.cvi-medico-esp {
  font-size: 13px;
  color: var(--cvi-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   12. FORMULARIO DE CONTACTO Y RESERVAS
   ============================================================ */
.cvi-form-wrapper {
  background: var(--cvi-bg);
  border-radius: var(--cvi-radius);
  padding: 40px;
  box-shadow: var(--cvi-shadow);
  border: 1px solid var(--cvi-border);
}

.cvi-form-wrapper input,
.cvi-form-wrapper select,
.cvi-form-wrapper textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--cvi-border);
  border-radius: var(--cvi-radius-sm);
  font-family: var(--cvi-font);
  font-size: 16px;
  color: var(--cvi-text);
  background: var(--cvi-bg);
  transition: var(--cvi-transition);
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
}

.cvi-form-wrapper input:focus,
.cvi-form-wrapper textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--cvi-teal);
  box-shadow: 0 0 0 3px rgba(0,107,107,0.12);
}

.wpcf7-form input[type="submit"] {
  background: var(--cvi-teal) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer;
  padding: 16px 32px !important;
  font-size: 17px !important;
  border-radius: var(--cvi-radius-sm) !important;
  transition: var(--cvi-transition) !important;
  width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--cvi-teal-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,107,107,0.3) !important;
}

/* ============================================================
   13. FOOTER PREMIUM
   ============================================================ */
.site-footer,
#colophon,
footer.site-footer {
  background: var(--cvi-teal-dark) !important;
  color: rgba(255,255,255,0.85) !important;
}

.site-footer a,
#colophon a {
  color: rgba(255,255,255,0.8) !important;
  transition: var(--cvi-transition);
}

.site-footer a:hover,
#colophon a:hover {
  color: #FFFFFF !important;
}

.site-footer h3,
.site-footer h4,
#colophon h3,
#colophon h4 {
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* ============================================================
   14. BADGE DE URGENCIAS 24H (componente destacado)
   ============================================================ */
.cvi-urgencia-widget {
  background: linear-gradient(135deg, #C0392B, var(--cvi-red));
  color: #FFFFFF;
  border-radius: var(--cvi-radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 30px rgba(231,76,60,0.35);
}

.cvi-urgencia-icon {
  font-size: 42px;
  flex-shrink: 0;
}

.cvi-urgencia-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
}

.cvi-urgencia-number {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.cvi-urgencia-number a {
  color: #FFFFFF;
  text-decoration: none;
}

/* ============================================================
   15. BLOG PREMIUM
   ============================================================ */
.cvi-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.cvi-post-card {
  background: var(--cvi-bg);
  border-radius: var(--cvi-radius);
  overflow: hidden;
  box-shadow: var(--cvi-shadow);
  transition: var(--cvi-transition);
  border: 1px solid var(--cvi-border);
}

.cvi-post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cvi-shadow-hover);
}

.cvi-post-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.cvi-post-body {
  padding: 24px;
}

.cvi-post-category {
  display: inline-block;
  background: var(--cvi-teal-light);
  color: var(--cvi-teal-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.cvi-post-card h3 {
  font-size: 17px;
  color: var(--cvi-text);
  margin-bottom: 10px;
}

.cvi-post-card p {
  font-size: 14px;
  color: var(--cvi-text-light);
}

/* ============================================================
   16. RESPONSIVE — MOBILE FIRST
   ============================================================ */

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

@media (max-width: 767px) {

  /* Tipografía móvil */
  body { font-size: 16px; }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  /* Header compacto */
  #site-header,
  .site-header,
  header.site-header {
    padding: 10px 16px !important;
  }

  /* Servicios en 1 columna en móvil pequeño */
  .cvi-servicios-grid {
    grid-template-columns: 1fr;
  }

  /* Form wrapper */
  .cvi-form-wrapper {
    padding: 24px 20px;
  }

  /* Stats */
  .cvi-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cvi-stat-number { font-size: 32px; }

  /* Urgencia widget en columna */
  .cvi-urgencia-widget {
    flex-direction: column;
    text-align: center;
  }

  /* Ocultar WhatsApp float en mobile (lo maneja bottom bar) */
  #cvi-whatsapp-float {
    display: none;
  }

  /* Todas las tablas de Elementor — overflow */
  .elementor-section {
    overflow-x: hidden;
  }

  /* Tamaño mínimo de todos los botones en mobile */
  a, button, [role="button"],
  .elementor-button {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 480px) {
  .cvi-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cvi-trust-badges {
    flex-direction: column;
    align-items: flex-start;
  }

  .cvi-equipo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   17. ANIMACIONES DE ENTRADA
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .cvi-animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .cvi-animate-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   18. ACCESIBILIDAD
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--cvi-teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Alto contraste */
@media (prefers-contrast: high) {
  :root {
    --cvi-teal: #005555;
    --cvi-border: #888888;
  }
}

/* ============================================================
   19. ELEMENTOR OVERRIDES GLOBALES
   ============================================================ */
.elementor-section .elementor-container {
  max-width: 1200px;
}

/* Corregir padding excesivo en secciones Elementor mobile */
@media (max-width: 767px) {
  .elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 95vw;
  }

  .elementor-column-gap-default > .elementor-column > .elementor-column-wrap > .elementor-widget-wrap {
    padding: 10px 12px !important;
  }
}

/* ============================================================
   20. PRINT STYLES
   ============================================================ */
@media print {
  #cvi-whatsapp-float,
  #cvi-mobile-bar,
  .site-header {
    display: none !important;
  }
}
