/**
 * LUX Seguros - Landing Page Styles
 * Diseno moderno, limpio y responsive
 */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
    /* Primary Colors */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-dark: #2e8cb8;;
    
    /* Accent Colors */
    --accent: #2e91c9;
    --accent-light: #86b3d9;
    --accent-dark: #a68620;
    
    /* Vida Colors */
    --vida-primary: #e11d48;
    --vida-light: #fb7185;
    --vida-dark: #be123c;
    
    /* GMM Colors */
    --gmm-primary: #0284c7;
    --gmm-light: #38bdf8;
    --gmm-dark: #0369a1;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-mamalona: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    --accent-gradient: linear-gradient(90deg, #c9a227 0%, #c9a227 100%);
    --vida-gradient: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
    --gmm-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   UTILITIES
======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-vida {
    background: var(--primary-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-gmm {
    background: var(--primary-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn svg {
    flex-shrink: 0;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--accent);
    color: var(--primary-dark);
    transition: transform 80ms ease, background 80ms ease;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-vida {
    background: var(--vida-primary);
    color: var(--white);
}

.btn-vida:hover {
    background: var(--vida-light);
    box-shadow: 0 10px 30px rgba(225, 29, 72, 0.3);
}

.btn-gmm {
    background: var(--gmm-primary);
    color: var(--white);
}

.btn-gmm:hover {
    background: var(--gmm-light);
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

.btn-ghost:hover {
    color: var(--primary);
    background: var(--gray-100);
}

/* ========================================
   NAVBAR PREMIUM
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-logo-img {
    height: 60px;
    filter: brightness(1.1);
}

/* Nav Center */
.nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);n
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    position: relative;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transform: translateX(-50%);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 10px rgba(201, 162, 39, 0.2);
}

.btn-primary-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

/* Dropdown Menus */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--transition-normal);
    margin-top: -2px;
}

.nav-dropdown:hover .arrow {
    transform: rotate(-135deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--gray-50);
    color: var(--primary);
}

.dropdown-icon {
    width: 36px;
    height: 36px;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover .dropdown-icon {
    background: rgba(201, 162, 39, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: #fff0;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    gap: 5px;
    padding: 12px;
    z-index: 10;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO BANNER SECTION
======================================== */
.hero-banner {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
}

.hero-vida-overlay {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.6) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-gmm-overlay {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.6) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 0;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3c33247;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge-vida {
    background: rgba(225, 29, 72, 0.3);
    border-color: rgba(225, 29, 72, 0.4);
}

.hero-badge-gmm {
    background: rgba(2, 132, 199, 0.3);
    border-color: rgba(2, 132, 199, 0.4);
}

.hero-title {
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 18px;
    color: var(--primary-dark);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   SECCIÓN PROTEGE (TARJETAS CON IMAGEN)
======================================== */
.protect-section {
    padding: var(--section-padding) 0;
    background-color: var(--white);
}

.protect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.protect-card {
    position: relative;
    height: 400px; /* Altura fija para efecto banner */
    border-radius: var(--radius-lg);
    overflow: hidden; /* Necesario para el efecto zoom */
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    
    /* Configuración de imagen de fondo por defecto */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Efecto hover en la tarjeta */
.protect-card:hover {
    transform: translateY(-2.5px);
    filter: brightness(100%);
    box-shadow: var(--shadow-mamalona);
}

/* El degradado oscuro para legibilidad (Pseudo-elemento ::after) */
.protect-card::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Degradado de negro a transparente de abajo hacia arriba */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Efecto de zoom en la imagen de fondo al hacer hover */
.protect-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* --- ASIGNACIÓN DE IMÁGENES --- */
/* Reemplaza estas rutas por las imágenes reales de tu proyecto */
.card-auto {
    background-image: url('../images/card_auto.jpg'); /* Ejemplo: Un auto moderno */
}

.card-vida {
    background-image: url('../images/card_vida.jpg'); /* Ejemplo: Familia feliz en parque */
}

.card-salud {
    background-image: url('../images/card_salud.jpg'); /* Ejemplo: Doctora sonriendo */
}

/* --- CONTENIDO DE LA TARJETA --- */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2; /* Por encima del degradado */
    color: var(--white);
    box-sizing: border-box;
}

.protect-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.protect-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 90%;
}

/* Estilo del enlace/botón */
.protect-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent); /* Dorado LUX */
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.protect-link::after {
    content: '→';
    font-size: 16px;
    transition: transform 0.2s ease;
}

.protect-link:hover {
    color: var(--accent-light);
}

.protect-link:hover::after {
    transform: translateX(5px);
}



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

@media (max-width: 768px) {
    .protect-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .protect-card {
        height: 300px; /* Un poco más bajas en móvil */
    }
}

/* ========================================
   TREE SECTION (Arbol de servicios)
======================================== */
.tree-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.tree-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-logo {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    border: 3px solid var(--accent);
}

.tree-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tree-branches {
    display: flex;
    gap: 60px;
    position: relative;
}

.tree-branches::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background: var(--accent);
}

.tree-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.branch-line {
    width: 2px;
    height: 30px;
    background: var(--accent);
    margin-bottom: 16px;
}

.branch-card {
    width: 120px;
    height: 120px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.branch-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.branch-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

/* ========================================
   SERVICES SCROLL ANIMATION
======================================== */
.services-scroll-wrapper {
    position: relative;
    height: 450vh;
}

.services-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
}

.services-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1650px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Services Text Column */
.services-text-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--primary);
    padding-right: 2rem;
    z-index: 2;
}

.services-text-col .section-badge {
    display: inline-block;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    color: var(--accent-dark);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.services-text-col .section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--primary);
    margin: 0;
}

.services-text-col .section-description {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin: 0;
}

/* Services Cards */
.services-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.srv-item {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.srv-item.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.service-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: default;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.1);
    background: rgba(0,0,0,0.05);
}

.service-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
}

.service-card-icon-vida {
    color: var(--vida-primary);
}

.service-card-icon-gmm {
    color: var(--gmm-primary);
}

.service-card-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem 0;
}

.service-card-text p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.4;
}

/* Services Canvas Column */
.services-canvas-col {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

#motoCanvas,
#vidaCanvas,
#gmmCanvas {
    display: block;
    width: 100%;
    height: 100vh;
    background: #fff;
}

/* Animation Progress */
.anim-progress {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-500);
    font-size: 0.75rem;
    font-family: var(--font-family);
    z-index: 10;
}

.anim-progress-bar {
    width: 120px;
    height: 3px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
}

.anim-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    width: 0%;
    transition: width 0.1s linear;
}

.services-vida .anim-progress-fill {
    background: var(--vida-primary);
}

.services-gmm .anim-progress-fill {
    background: var(--gmm-primary);
}

/* ========================================
   SECTIONS COMMON
======================================== */
.section-header {
    text-align: center;
    margin: 0 auto 60px;
}

.section-header.center {
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--gray-100);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========================================
   BENEFITS SECTION
======================================== */
.benefits {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefits-text .section-badge,
.benefits-text .section-title,
.benefits-text .section-description {
    text-align: left;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.benefit-icon-vida {
    color: var(--vida-primary);
}

.benefit-icon-gmm {
    color: var(--gmm-primary);
}

.benefit-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.benefit-content p {
    font-size: 14px;
    color: var(--gray-500);
}

/* Benefits Visual Card */
.benefits-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.benefits-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-mamalona);
    max-width: 380px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.benefits-banner {
    position: relative;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}

.benefits-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.benefits-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.benefits-banner .benefits-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    margin-bottom: 0;
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-gradient);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.benefits-badge-vida {
    background: var(--vida-gradient) !important;
}

.benefits-badge-gmm {
    background: var(--gmm-gradient) !important;
}

.benefits-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.conditions-mini {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #e1e8ed;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conditions-mini p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--gray-500);
    margin: 0;
}

.conditions-mini svg {
    flex-shrink: 0;
    color: var(--primary-dark);
    opacity: 0.7;
    margin-top: 2px;
}

/* ========================================
   PLAN COMPARISON SECTION
======================================== */
.plan-comparison {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.comparison-table-wrapper {
    margin-bottom: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
    padding: 13px 16px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    word-break: break-word;
}

.comparison-table th {
    background: var(--gray-50);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-200);
    line-height: 1.3;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    width: 36%;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--gray-700);
}

.comparison-table tbody tr:hover td {
    background: var(--gray-50);
}

.comparison-table th.recommended,
.comparison-table td.recommended {
    background: rgba(201, 162, 39, 0.07);
}

.plan-vida .comparison-table th.recommended,
.plan-vida .comparison-table td.recommended {
    background: rgba(225, 29, 72, 0.06);
}

.plan-gmm .comparison-table th.recommended,
.plan-gmm .comparison-table td.recommended {
    background: rgba(2, 132, 199, 0.06);
}

.recommended-badge {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: var(--accent-dark);
    margin-top: 3px;
    text-transform: uppercase;
}

.plan-vida .recommended-badge { color: var(--vida-dark); }
.plan-gmm  .recommended-badge { color: var(--gmm-dark); }

.plan-yes {
    color: var(--success);
    font-size: 17px;
    font-weight: 700;
}

.plan-no {
    color: var(--gray-400);
    font-size: 17px;
}

.comparison-cta {
    text-align: center;
}

@media (max-width: 600px) {
    .comparison-table {
        font-size: 12px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 9px 10px;
    }
    .recommended-badge {
        display: none;
    }
}

/* ========================================
   PROCESS STEPS SECTION
======================================== */
.process-steps {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.steps-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 0 20px;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 300px;
    min-height: 310px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

.step-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 38px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}

.step-card:hover {
    box-shadow: var(--shadow-lg);
}

.security-note {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.security-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    font-size: 13px;
    font-weight: 600;
}

.security-item svg {
    color: #22c55e;
}

.security-note p {
    font-size: 13px;
    color: var(--gray-500);
    margin: 0;
}

.texto-proceso, .parrafo-proceso {
    margin-top: 40px !important;
}

.ramos-banner {
    width: 100%;
    transition: transform 0.3s ease;
}

/* ========================================
   HOSPITALS SECTION (GMM)
======================================== */
.hospitals-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.hospital-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition-normal);
}

.hospital-card:hover {
    border-color: var(--gmm-primary);
    box-shadow: var(--shadow-md);
}

.hospital-card svg {
    color: var(--gmm-primary);
    margin-bottom: 16px;
}

.hospital-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.hospital-card p {
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   FORM SECTION
======================================== */
.form-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group .required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font-family);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.phone-input {
    display: flex;
    gap: 8px;
}

.phone-prefix {
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gray-600);
    white-space: nowrap;
}

.phone-input input {
    flex: 1;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-normal);
}

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

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--accent);
}

.testimonial-text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

.author-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}

.author-info span {
    font-size: 13px;
    color: var(--gray-500);
}

/* ========================================
   FAQ SECTION
======================================== */
.faq-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--gray-300);
}

.faq-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

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

.faq-question svg {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   SUPPORT SECTION
======================================== */
.support-section {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.support-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all var(--transition-normal);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.support-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin: 0 auto 20px;
}

.support-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.support-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.support-card p {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 16px;
    line-height: 1.6;
}

.support-link {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-dark);
    transition: color var(--transition-fast);
}

.support-link:hover {
    color: var(--accent);
}

/* ========================================
   CTA SECTION
======================================== */
.cta {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    border-bottom: 0.5rem solid #fff;
}

.cta-vida {
    background: var(--vida-gradient);
}

.cta-gmm {
    background: var(--gmm-gradient);
}

.cta-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   PARTNERS SECTION
======================================== */
.partners {
    pointer-events: none;
    padding: 80px 0;
    background: #f8f9fa;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    gap: 40px;
    width: calc(240px * 8);
    animation: scroll 25s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-240px * 4)); }
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    height: 130px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.partner-card img {
    max-width: 120px;
    max-height: 48px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
}

.partners-note {
    margin-top: 35px;
    text-align: center;
    font-size: 0.75rem;
    color: #adb5bd;
}

/* ========================================
   FOOTER
======================================== */
.footer {
    background: var(--gray-900);
    padding: 80px 0 0;
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-legal-disclaimer {
    padding: 24px 0;
    border-top: 1px solid var(--gray-800);
    margin-bottom: 24px;
}

.footer-legal-disclaimer p {
    font-size: 12px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-legal-disclaimer p:last-child {
    margin-bottom: 0;
}

.footer-legal-disclaimer strong {
    color: var(--gray-400);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 13px;
}

.footer-by {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    opacity: 0.65;
    white-space: nowrap;
}

.footer-by-logo {
    height: 20px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--white);
}

/* ========================================
   SPEED DIAL
======================================== */
.speed-dial-container {
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dial-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.dial-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.close-x {
    position: absolute;
    font-size: 30px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.dial-main-btn.active .dial-logo-img {
    opacity: 0;
    transform: scale(0) rotate(90deg);
}

.dial-main-btn.active .close-x {
    opacity: 1;
    transform: scale(1);
}

.speed-dial-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.speed-dial-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dial-option {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.dial-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin-left: 10px;
}

.dial-label {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}

.dial-option:hover .dial-label {
    opacity: 1;
}

.bg-whatsapp { background: #25D366; }
.bg-info { background: #17a2b8; }

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .nav-center {
        position: static;
        transform: none;
    }

    .nav-links,
    .nav-actions {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--gray-200);
        z-index: 1000;
    }

    .nav-links.active,
    .nav-actions.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0%) translateY(0);
}

    .protect-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .tree-branches {
        flex-direction: column;
        gap: 30px;
    }

    .tree-branches::before {
        display: none;
    }

    .services-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 5rem 1.25rem 1.25rem;
        gap: 1rem;
        align-items: start;
    }

    .services-canvas-col {
        height: 45vh;
    }

    #motoCanvas,
    #vidaCanvas,
    #gmmCanvas {
        height: 45vh;
    }

    .services-text-col .section-title {
        font-size: 1.5rem;
    }

    .services-text-col .section-description {
        display: none;
    }

    .benefits-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .benefits-text .section-badge,
    .benefits-text .section-title,
    .benefits-text .section-description {
        text-align: center;
    }

    .benefits-list {
        max-width: 500px;
        margin: 40px auto 0;
    }

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

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

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

    .support-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        box-shadow: none;
        background: fff0;
        margin-top: 8px;
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 70px;
    }

    .hero-banner {
        min-height: auto;
        padding: calc(var(--header-height) + 40px) 0 60px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hospitals-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-text p {
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        transform: rotate(90deg);
        padding: 0;
        margin: 10px 0;
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .ramos-banner img {
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .footer-legal {
        flex-direction: column;
        gap: 12px;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 14px;
    }

    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 14px;
    }

    .security-icons {
        flex-direction: column;
        gap: 12px;
    }

    .hospitals-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 992px) {
    .step-connector {
        display: none;
    }
}

/* Contenedor principal del banner */
.hero-banner {
    position: relative;
    height: 70vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* El contenedor del video */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none; /* Evita que el usuario pause o haga clic */
}

.video-foreground,
.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* Ratio 16:9 */
    min-height: 100vh;
    min-width: 177.77vh; /* Ratio 16:9 */
    transform: translate(-50%, -50%);
}

/* Capa oscura para legibilidad del texto */
.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ajuste del contenido */
.hero-banner-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-text-col-full {
    max-width: 650px;
box-shadow: 0px 0px 50px 50px rgb(255 255 255 / 61%);
background: #ffffff96;
text-align: left;
}

/* Responsive: En móviles, aseguramos que el video siga cubriendo */
@media (max-width: 768px) {
    .hero-text-col-full {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-banner-overlay {
        background: rgba(15, 23, 42, 0.7); /* Oscurecemos más en móvil */
    }
}

/* =========================================
   SPEED DIAL – BOTÓN FLOTANTE
========================================= */
.speed-dial-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

/* Botón circular */
.speed-dial-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff0;
    border: none;
    transition: transform .25s ease;
}

.speed-dial-btn:hover {
    transform: translateY(-2px);
}



/* =========================================
   SPEED DIAL – CARD / MODAL
========================================= */
.speed-dial-card {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.96);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

/* Visible */
.speed-dial-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* =========================================
   BANNER
========================================= */
.speed-dial-banner {
    width: 100%;
    height: 110px;
    overflow: hidden;
}

.speed-dial-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   CONTENIDO
========================================= */
.speed-dial-content {
    padding: 16px;
}

.speed-dial-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* Lista */
.speed-dial-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.speed-dial-list li + li {
    margin-top: 10px;
}

.speed-dial-list a {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    background: #f4f6fb;
    transition: background .2s ease, transform .15s ease;
}

.speed-dial-list a:hover {
    background: #e9eeff;
    transform: translateX(2px);
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 480px) {
    .speed-dial-container {
        right: 16px;
        bottom: 16px;
    }

    .speed-dial-card {
        width: 92vw;
        right: -8px;
    }
}

/* =========================================
   ICONOS SPEED DIAL
========================================= */
.speed-dial-list a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* WhatsApp */
.dial-whatsapp {
    color: #1a1a1a;
}

.dial-whatsapp::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #25D366;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.246 2.248 3.484 5.232 3.484 8.412-.003 6.557-5.338 11.892-11.893 11.892-1.997-.001-3.951-.5-5.688-1.448l-6.309 1.656z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M.057 24l1.687-6.163c-1.041-1.804-1.588-3.849-1.587-5.946.003-6.556 5.338-11.891 11.893-11.891 3.181.001 6.167 1.24 8.413 3.488 2.246 2.248 3.484 5.232 3.484 8.412-.003 6.557-5.338 11.892-11.893 11.892-1.997-.001-3.951-.5-5.688-1.448l-6.309 1.656z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Teléfono */
.dial-phone::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #0b5cff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.81 12.81 0 0 0 .62 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.81 12.81 0 0 0 .62 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.62A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* =========================================
   MENSAJE INCENTIVADOR
========================================= */
.speed-dial-hint {
    position: absolute;
    bottom: 72px;
    right: 0;
    background: #ffffff;
    color: #1a1a1a;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    min-width: 200px;
    z-index: 998;
}

.speed-dial-hint.show {
    opacity: 1;
    transform: translateY(0);
}

.speed-dial-image {
    width: 65px;
    height: 65px;
    object-fit: contain;
    pointer-events: none;
}

/* =========================================
   COLA DEL MENSAJE – DERECHA ABAJO
========================================= */
.speed-dial-hint::after {
    content: "";
    position: absolute;
    right: 21px;      /* separación del borde derecho */
    bottom: -6px;     /* sale por la parte inferior */
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.08);
}

.hero-text-center-wrapper {
    max-width: 650px;
box-shadow: 0px 0px 50px 50px rgb(255 255 255 / 61%);
background: #ffffff96;
text-align: left;
}

/* ───────────────── BENEFITS = FAQ STYLE ───────────────── */

.benefit-accordion {
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.benefit-q {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
}

.benefit-q:hover {
    opacity: .85;
}

.benefit-q span {
    flex: 1;
}

.benefit-icon {
    margin-right: 14px;
    display: flex;
    align-items: center;
}

.benefit-arrow {
    transition: transform .3s ease;
}

.benefit-q[aria-expanded="true"] .benefit-arrow {
    transform: rotate(180deg);
}

.benefit-a {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 38px;
    font-size: 15px;
    line-height: 1.6;

    transition:
        max-height .45s cubic-bezier(.4,0,.2,1),
        opacity .25s ease;
}

.benefit-a.open {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 16px;
}

/* ================================================================
   BLOG PREVIEW SECTION
================================================================ */

/* ── Layout general ─────────────────────────────────────────── */
.blog-preview {
    padding: 100px 0 80px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.blog-preview .section-header.center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}

/* ── Grid de tarjetas ───────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

/* ── Tarjeta individual ─────────────────────────────────────── */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
    border-color: var(--accent);
}

/* Imagen de portada */
.blog-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--gray-100);
    display: block;
}

/* Placeholder cuando no hay imagen */
.blog-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.blog-card-img-placeholder svg {
    opacity: 0.5;
}

/* Contenido de texto */
.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-category {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(192, 132, 42, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--accent);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-card-read {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.blog-card:hover .blog-card-read {
    gap: 10px;
}

/* ── Estado de carga ────────────────────────────────────────── */
.blog-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
    color: var(--gray-400);
    font-size: 14px;
}

.blog-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: blogSpin 0.8s linear infinite;
}

@keyframes blogSpin {
    to { transform: rotate(360deg); }
}

/* ── Estado de error ────────────────────────────────────────── */
.blog-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: var(--gray-400);
    text-align: center;
}

.blog-error p {
    font-size: 15px;
    color: var(--gray-500);
}

/* ── CTA "Ver todos" ────────────────────────────────────────── */
.blog-cta {
    text-align: center;
    padding-top: 8px;
}

.btn-ghost-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-ghost-accent:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(192, 132, 42, 0.25);
}

/* Tamaño pequeño para el botón de error */
.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-outline-sm:hover {
    background: var(--accent);
    color: var(--white);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* En 2 columnas, la 3.ª tarjeta ocupa todo el ancho */
    .blog-card:nth-child(3) {
        grid-column: 1 / -1;
        flex-direction: row;
    }

    .blog-card:nth-child(3) .blog-card-img,
    .blog-card:nth-child(3) .blog-card-img-placeholder {
        width: 280px;
        flex-shrink: 0;
        aspect-ratio: auto;
        height: 100%;
    }
}

@media (max-width: 640px) {
    .blog-preview {
        padding: 64px 0 56px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card:nth-child(3) {
        grid-column: auto;
        flex-direction: column;
    }

    .blog-card:nth-child(3) .blog-card-img,
    .blog-card:nth-child(3) .blog-card-img-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-card-title {
        font-size: 15px;
    }
}

[hidden] {
    display: none !important;
}