﻿/* ===== Variables y Reset ===== */
:root {
    /* Paleta de colores actualizada desde Bootstrap */
    --bs-primary: #FB7000;
    --bs-primary-rgb: 251, 112, 0;
    --bs-secondary: #4A4A4A;
    --bs-secondary-rgb: 74, 74, 74;
    --bs-success: #2ECC71;
    --bs-success-rgb: 46, 204, 113;
    --bs-info: #FF9F40;
    --bs-info-rgb: 255, 159, 64;
    --bs-warning: #FFB020;
    --bs-warning-rgb: 255, 176, 32;
    --bs-danger: #E74C3C;
    --bs-danger-rgb: 231, 76, 60;
    --bs-light: #F8F9FA;
    --bs-light-rgb: 248, 249, 250;
    --bs-dark: #1C1C1C;
    --bs-dark-rgb: 28, 28, 28;
    --bs-white: #ffffff;
    --bs-white-rgb: 255, 255, 255;
    --bs-black: #000000;
    --bs-black-rgb: 0, 0, 0;
    
    /* Escala de grises */
    --bs-gray-100: #f8f9fa;
    --bs-gray-200: #e9ecef;
    --bs-gray-300: #dee2e6;
    --bs-gray-400: #ced4da;
    --bs-gray-500: #adb5bd;
    --bs-gray-600: #6c757d;
    --bs-gray-700: #495057;
    --bs-gray-800: #343a40;
    --bs-gray-900: #212529;
    
    /* Transiciones y sombras */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --spacing-unit: 8px;
}

* {
    scroll-behavior: smooth;
}

.nav-link {
    position: relative;
    transition: var(--transition-smooth);
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    border-radius: 8px;
    color: var(--bs-dark) !important;
}

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

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
    background: rgba(var(--bs-primary-rgb), 0.05);
}

.nav-link.active-item {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.1), rgba(var(--bs-warning-rgb), 0.05));
    color: var(--bs-primary) !important;
}

.img-home {
    width: 160px;
    height: auto;
    transition: transform 0.3s ease;
}

.img-home:hover {
    transform: scale(1.05);
}

/* ===== Botones Premium ===== */
.btn {
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition-smooth);
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 3px solid rgba(var(--bs-primary-rgb), 0.2);
    outline-offset: 2px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    border: none;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-primary-custom:hover::before {
    transform: translateX(100%);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(var(--bs-primary-rgb), 0.5);
}

.btn-primary-custom:active {
    transform: translateY(-1px);
}

.btn-outline-light:hover,
.btn-outline-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
    border: 2px solid var(--bs-secondary);
    color: var(--bs-secondary);
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: var(--bs-secondary);
    color: white;
    border-color: var(--bs-secondary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    border: none;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
}

/* ===== Hero Section Premium ===== */
.hero-section {
    background: linear-gradient(135deg, #0a0e14 0%, #1a1d29 40%, var(--bs-secondary) 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-row {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 25% 40%, rgba(var(--bs-primary-rgb), 0.25), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(var(--bs-warning-rgb), 0.18), transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(var(--bs-primary-rgb), 0.1), transparent 70%);
    pointer-events: none;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.03));
    pointer-events: none;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

.hero-content h1 {
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(var(--bs-primary-rgb), 0.3);
    line-height: 1.1;
    color: var(--bs-white, #ffffff);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero-feature {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.hero-feature:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
    transform: translateY(-5px);
}

.scroll-indicator {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-5px) !important;
}

.scroll-indicator i {
    transition: var(--transition-smooth);
}

.scroll-indicator:hover i {
    opacity: 1 !important;
    color: var(--bs-primary);
}

/* ===== Stats Cards Premium ===== */
.stat-card {
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.15);
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-warning));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(var(--bs-primary-rgb), 0.2), 0 0 40px rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.4);
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), #fffbf7);
}

.stat-icon {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-warning-rgb), 0.15));
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.3), rgba(var(--bs-warning-rgb), 0.3));
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.25);
}

.stat-number {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ===== Section Titles ===== */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-warning));
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
}

.text-white .section-title::after {
    box-shadow: 0 4px 20px rgba(var(--bs-primary-rgb), 0.6);
}

.certification-hero {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d29 40%, var(--bs-secondary) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.certification-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--bs-info-rgb),0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--bs-primary-rgb),0.1), transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.certification-badge {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bs-info) 0%, var(--bs-primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(var(--bs-info-rgb), 0.5), 0 0 60px rgba(var(--bs-info-rgb), 0.3);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.certification-badge::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb),0.3), rgba(var(--bs-primary-rgb),0.2));
    animation: rotate 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.step-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--bs-info), var(--bs-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(var(--bs-info-rgb), 0.25);
    border-color: rgba(var(--bs-info-rgb), 0.4);
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb),0.15), rgba(var(--bs-primary-rgb),0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bs-info);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.step-card:hover .step-number {
    background: linear-gradient(135deg, var(--bs-info), var(--bs-primary));
    color: white;
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 32px rgba(var(--bs-info-rgb), 0.4);
}

.requirement-item {
    display: flex;
    align-items: start;
    gap: 16px;
    padding: 20px;
    background: rgba(var(--bs-info-rgb),0.04);
    border-radius: 16px;
    border-left: 4px solid var(--bs-info);
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.requirement-item:hover {
    background: rgba(var(--bs-info-rgb),0.08);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(var(--bs-info-rgb), 0.15);
}

.requirement-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bs-info), var(--bs-primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--bs-info-rgb), 0.3);
}

.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-info), var(--bs-primary));
    box-shadow: 0 0 20px rgba(var(--bs-info-rgb), 0.3);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--bs-white, #ffffff);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(var(--bs-info-rgb), 0.2);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--bs-info), var(--bs-primary));
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 0 20px rgba(var(--bs-info-rgb), 0.5);
    z-index: 10;
}

.profile-card {
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb),0.08), rgba(var(--bs-primary-rgb),0.05));
    border-radius: 20px;
    padding: 40px;
    border: 2px solid rgba(var(--bs-info-rgb),0.2);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(var(--bs-info-rgb), 0.2);
    border-color: var(--bs-info);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(var(--bs-info-rgb),0.15), rgba(var(--bs-primary-rgb),0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--bs-info);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.profile-card:hover .benefit-icon {
    background: linear-gradient(135deg, var(--bs-info), var(--bs-primary));
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

/* ===== Purpose Cards ===== */
.purpose-card {
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
}

.purpose-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--bs-primary), var(--bs-warning));
    box-shadow: 2px 0 10px rgba(var(--bs-primary-rgb), 0.3);
}

.purpose-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.06), rgba(var(--bs-warning-rgb), 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.purpose-card:hover::after {
    opacity: 1;
}

.purpose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(var(--bs-primary-rgb), 0.2), 0 0 40px rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.purpose-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.15), rgba(var(--bs-warning-rgb), 0.15));
    font-size: 2.5rem;
    color: var(--bs-primary);
    transition: var(--transition-smooth);
}

.purpose-card:hover .purpose-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    color: white;
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.4);
}

/* ===== Program 4D Glassmorphism ===== */

/* ==================================================================
   Estilos para `solicitud_consultor.html`
   - Tema claro, moderno y coherente con `index.html` y `contacto.html`.
   - Documentado y centralizado en este archivo.
   Uso: agregar clases al HTML y evitar estilos inline.
   ================================================================== */

/* Variables locales (pueden sobreescribirse globalmente) */
:root{
    --sc-bg: #f7f9fb;
    --sc-card: #ffffff;
    --sc-text: #0b1a2b;
    --sc-muted: #6b7785;
    --sc-brand: var(--bs-info);
    --sc-accent: var(--bs-primary);
}

/* Página */
body{ background:var(--sc-bg); color:var(--sc-text); }

/* Hero para la solicitud */
.sc-hero{ background: linear-gradient(180deg, rgba(255,246,238,0.7), rgba(255,255,255,0.9)); padding:3.5rem 0; border-bottom:1px solid rgba(11,26,43,0.04); }
.sc-hero .display-6{ color:var(--sc-text); }

/* Tarjeta del formulario */
.card-form{ background:var(--sc-card); border-radius:14px; box-shadow:0 10px 30px rgba(16,30,45,0.06); }
.section-title{ font-weight:700; color:var(--sc-text); }
.small-note{ color:var(--sc-muted); }
.file-help{ font-size:0.85rem; color:var(--sc-muted); }

/* Aside / checklist */
.aside-card{ background:var(--sc-card); border-radius:12px; box-shadow:0 8px 30px rgba(16,30,45,0.04); }
.note-box{ background:#fff7f0; border-left:4px solid var(--sc-brand); padding:12px; border-radius:8px; color:var(--bs-secondary) }

/* Errores inline */
#formErrors{ font-size:0.95rem; }

@media (max-width:767px){ .sc-hero{ padding:2.5rem 0; } }


.gracias-page{
    background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.gracias-card{
    background: var(--sc-card, #ffffff);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 18px 40px rgba(12,30,60,0.08);
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.5rem;
    align-items: center;
}

.gracias-illustration{
    width:140px; height:140px; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg,#eef9f8,#f8fffc); border-radius:12px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.check-anim { width:84px; height:84px; }

.gracias-title{ font-size:1.5rem; font-weight:800; margin-bottom:0.25rem; color:var(--sc-text,#0b1a2b); }
.gracias-sub{ color:var(--sc-muted,#6b7785); margin-bottom:0.75rem }

.ref-code{ display:inline-block; background: var(--bs-dark); color:var(--bs-white, #fff); padding:8px 12px; border-radius:8px; font-weight:700; letter-spacing:1px }

.next-steps{ margin-top:0.8rem }
.next-steps li{ margin-bottom:0.5rem; color:var(--sc-text,#0b1a2b) }

.gracias-cta{ margin-top:1rem }

/* Small responsive tweaks */
@media (max-width: 767px){
    .gracias-card{ grid-template-columns: 1fr; text-align:center }
    .gracias-illustration{ margin:0 auto }
}

/* subtle bounce for check */
@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0 }
    60% { transform: scale(1.05); opacity: 1 }
    100% { transform: scale(1); }
}
.check-anim { animation: popIn 600ms cubic-bezier(.2,.9,.3,1); }

/* End: gracias_solicitud styles */

.program-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d29 50%, var(--bs-secondary) 100%);
    position: relative;
}

.dimension-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    color: white;
}

.dimension-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px);
    border-color: rgba(var(--bs-primary-rgb), 0.7);
    box-shadow: 0 16px 48px rgba(var(--bs-primary-rgb), 0.2), 0 0 40px rgba(var(--bs-primary-rgb), 0.1);
}

.dimension-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
}

.dimension-card h3 {
    color: rgba(255, 255, 255, 0.95);
}

.dimension-card ul li {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

/* ===== Team Cards Premium ===== */
.team-card {
    transition: var(--transition-smooth);
    background: var(--bs-white, #ffffff);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(var(--bs-primary-rgb), 0.25) !important;
}

/* Card destacada del líder */
.team-card-featured {
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(var(--bs-primary-rgb), 0.15);
}

.team-card-featured:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 70px rgba(var(--bs-primary-rgb), 0.3);
}

.team-image-wrapper-featured {
    height: 400px;
    position: relative;
}

.team-image-wrapper-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    transition: var(--transition-smooth);
}

.team-card-featured:hover .team-overlay {
    background: linear-gradient(to top, rgba(var(--bs-primary-rgb), 0.9) 0%, rgba(var(--bs-primary-rgb), 0.6) 50%, transparent 100%);
}

.team-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.4);
}

/* Carrusel mejorado */
.team-image-wrapper-carousel {
    height: 100%;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.team-image-photo-carousel {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition-smooth);
}

.team-card:hover .team-image-photo-carousel {
    transform: scale(1.05);
}

#teamCarousel .carousel-inner {
    border-radius: 16px;
    overflow: hidden;
}

#teamCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* Controles personalizados del carrusel */
.carousel-control-icon-custom {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(var(--bs-primary-rgb), 0.4);
    font-size: 1.5rem;
    color: white;
}

.carousel-control-icon-custom:hover {
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(var(--bs-primary-rgb), 0.6);
    background: linear-gradient(135deg, var(--bs-warning), var(--bs-primary));
}

.carousel-control-prev,
.carousel-control-next {
    width: 70px;
    opacity: 1;
    z-index: 5;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

#teamCarousel .carousel-indicators {
    bottom: 15px;
    z-index: 5;
}

#teamCarousel .carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    transition: var(--transition-smooth);
}

#teamCarousel .carousel-indicators .active {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    width: 40px;
    border-radius: 7px;
    border-color: var(--bs-primary);
}

/* Badges de experiencia */
.badge {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.15) !important;
}

.bg-warning-subtle {
    background-color: rgba(var(--bs-warning-rgb), 0.15) !important;
}

.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.15) !important;
}

.text-warning {
    color: var(--bs-warning) !important;
}

/* Detalles del equipo */
.team-details {
    font-size: 0.9rem;
    color: var(--bs-gray-600, #6c757d);
}

.team-details i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Responsive para equipo */
@media (max-width: 991px) {
    .team-image-wrapper-featured {
        height: 350px;
    }

    .team-image-wrapper-carousel {
        min-height: 300px;
    }

    #teamCarousel .carousel-indicators {
        bottom: 10px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
    }

    .carousel-control-prev {
        left: 5px;
    }

    .carousel-control-next {
        right: 5px;
    }

    .carousel-control-icon-custom {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .team-image-wrapper-featured {
        height: 300px;
    }

    .team-card-featured .p-4 {
        padding: 1.5rem !important;
    }

    .team-badge {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* ===== Service Cards Premium ===== */
.service-card {
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.06), rgba(var(--bs-warning-rgb), 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(var(--bs-primary-rgb), 0.2), 0 0 40px rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-warning) 100%);
    color: white;
    font-size: 2rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.35);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(-10deg);
    box-shadow: 0 15px 40px rgba(var(--bs-primary-rgb), 0.5), 0 0 30px rgba(var(--bs-primary-rgb), 0.3);
    background: linear-gradient(135deg, var(--bs-warning) 0%, var(--bs-primary) 100%);
}

/* ===== Testimonials ===== */
.testimonial-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(var(--bs-primary-rgb), 0.18), 0 0 40px rgba(var(--bs-primary-rgb), 0.08);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* Botón de video testimonial */
.btn-video-testimonial {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(var(--bs-primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.btn-video-testimonial::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    transition: transform 0.4s ease;
}

.btn-video-testimonial:hover::before {
    transform: scale(1);
}

.btn-video-testimonial:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(var(--bs-primary-rgb), 0.5), 0 0 40px rgba(var(--bs-primary-rgb), 0.3);
}

.btn-video-testimonial:active {
    transform: scale(1.05);
}

.btn-video-testimonial i {
    position: relative;
    z-index: 2;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Estilos para los modales de video */
.modal-content {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-warning-rgb), 0.03));
    padding: 1.5rem;
}

.modal-title {
    font-size: 1.25rem;
}

.modal-body iframe {
    border: none;
}

.modal-footer {
    padding: 1.25rem;
}

.modal-backdrop.show {
    opacity: 0.8;
}

/* ===== Contact Cards ===== */
.contact-section {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d29 50%, var(--bs-secondary) 100%);
    position: relative;
}

.contact-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(var(--bs-primary-rgb), 0.8);
    box-shadow: 0 16px 48px rgba(var(--bs-primary-rgb), 0.25), 0 0 60px rgba(var(--bs-primary-rgb), 0.15);
}

.contact-card h4 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.contact-card > div[style*="font-size: 3rem"] {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
}

.contact-card:hover > div[style*="font-size: 3rem"] {
    color: var(--bs-primary);
    transform: scale(1.1);
}

.contact-link {
    transition: var(--transition-smooth);
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--bs-primary) !important;
    transform: scale(1.05);
    display: inline-block;
    text-shadow: 0 0 20px rgba(var(--bs-primary-rgb), 0.5);
}

/* ===== Footer Premium ===== */
.footer-modern {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d29 50%, var(--bs-dark) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-warning), var(--bs-primary));
}

.footer-modern h5,
.footer-modern h6 {
    color: var(--bs-white, #ffffff);
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: var(--transition-smooth);
    display: inline-block;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--bs-primary) !important;
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    align-items: center;
}

.footer-contact a:hover {
    color: var(--bs-primary) !important;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.4);
    border-color: transparent;
}

.footer-legal-links a {
    transition: var(--transition-smooth);
}

.footer-legal-links a:hover {
    color: var(--bs-primary) !important;
    text-decoration: underline !important;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mejoras de Accesibilidad ===== */
.btn:focus-visible,
.nav-link:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb), 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Tarjeta de Información Destacada ===== */
.info-box {
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-warning-rgb), 0.03));
    border-left: 4px solid var(--bs-primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.info-box h5 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* ===== Lista Mejorada ===== */
.list-unstyled li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
}

.list-unstyled li i {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ===== Badges Personalizados ===== */
.badge-gradient {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-warning));
    color: var(--bs-white, #ffffff);
    padding: 0.65rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(var(--bs-primary-rgb), 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(var(--bs-primary-rgb), 0.45);
}

/* .plan-hero {
    background: linear-gradient(135deg, var(--bs-secondary) 0%, var(--bs-dark) 100%);
    padding: 120px 0 60px;
} */
.module-card {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}
.module-card:hover {
    border-left-color: var(--bs-info);
    transform: translateX(5px);
}
.module-header {
    cursor: pointer;
    transition: background 0.3s ease;
}
.module-header:hover {
    background: rgba(var(--bs-info-rgb),0.05);
}
.lesson-item {
    transition: all 0.2s ease;
}
.lesson-item:hover {
    background: rgba(var(--bs-info-rgb),0.05);
    padding-left: 1.5rem !important;
}
.video-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-info-rgb),0.1);
    border-radius: 8px;
}
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

/* ===== Mejoras de Tipografía ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.3px;
}

p {
    line-height: 1.7;
}

.text-secondary {
    color: var(--bs-secondary) !important;
}

/* ===== Separadores de Sección ===== */
section {
    scroll-margin-top: 80px;
}

section + section {
    margin-top: 0;
}

.header_user{
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center;
}

.contenido {
    display: flex;
    align-items: center;
    padding: 0 0 12px;
}

.info_user {
    flex: 1;
    min-width: 0;
    padding-top: 8px;
}

.info_user p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.avatar_dropdown img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #FB7000;
    border-radius: 50%;
    margin-top: -50px;
    box-shadow: 0 8px 24px rgba(251, 112, 0, 0.4), 0 0 30px rgba(251, 112, 0, 0.2);
    transition: var(--transition-smooth);
}

.avatar_dropdown img:hover{
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(251, 112, 0, 0.5), 0 0 40px rgba(251, 112, 0, 0.3);
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 90px 0 50px;
    }

    .hero-row {
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem !important;
    }

    .hero-feature span {
        font-size: 0.875rem;
    }

    .badge-gradient {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .stat-card, .purpose-card, .service-card {
        margin-bottom: 1.5rem;
    }

    .section-title::after {
        left: 0;
        transform: none;
    }

    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        display: none;
    }

    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px;
    }
    
    .timeline-marker {
        left: 30px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem !important;
    }
}

/* ===== Scroll Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===========================
   TEAM SECTION - DISEÑO SIMÉTRICO Y MODERNO
   =========================== */

/* Card principal del miembro del equipo */
.team-member-card {
    position: relative;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
}

.team-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-warning));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover::before {
    transform: scaleX(1);
}

.team-member-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 70px rgba(var(--bs-primary-rgb), 0.25), 0 0 50px rgba(var(--bs-primary-rgb), 0.1);
    border-color: rgba(var(--bs-primary-rgb), 0.3);
}

/* Contenedor de imagen con altura fija */
.team-image-container {
    height: 350px;
    position: relative;
    overflow: hidden;
}

.team-member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover .team-member-photo {
    transform: scale(1.1);
}

/* Overlay con gradiente */
.team-overlay-gradient {
    background: linear-gradient(to top, 
        rgba(28, 28, 28, 0.95) 0%, 
        rgba(28, 28, 28, 0.75) 40%, 
        transparent 100%);
    transition: background 0.4s ease;
}

.team-member-card:hover .team-overlay-gradient {
    background: linear-gradient(to top, 
        rgba(251, 112, 0, 0.95) 0%, 
        rgba(251, 112, 0, 0.75) 40%, 
        transparent 100%);
}

/* Badges especializados por rol */
.team-leader-badge,
.team-expert-badge,
.team-director-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.team-leader-badge {
    background: linear-gradient(135deg, var(--bs-warning) 0%, #ffed4e 100%);
    color: var(--bs-dark);
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    }
}

.team-expert-badge {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
}

.team-director-badge {
    background: linear-gradient(135deg, var(--bs-success) 0%, #20c997 100%);
}

.team-member-card:hover .team-leader-badge,
.team-member-card:hover .team-expert-badge,
.team-member-card:hover .team-director-badge {
    transform: scale(1.1) rotate(10deg);
}

/* Contenido de la card */
.team-content-card {
    background: linear-gradient(to bottom, var(--bs-white, #ffffff), var(--bs-light));
}

/* Badge de información */
.team-badge-info {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid;
    transition: var(--transition-smooth);
}

.team-badge-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Descripción del miembro */
.team-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--bs-secondary);
    min-height: 80px;
}

/* Lista de información */
.team-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(var(--bs-info-rgb), 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--bs-primary);
    transition: var(--transition-smooth);
}

.team-info-item:hover {
    background: rgba(var(--bs-info-rgb), 0.1);
    transform: translateX(5px);
    border-left-width: 4px;
}

.team-info-item i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb), 0.2);
}

.team-info-item span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--bs-dark);
    font-weight: 500;
}

/* Responsive para team section */
@media (max-width: 991px) {
    .team-image-container {
        height: 320px;
    }
    
    .team-description {
        min-height: 60px;
    }
}

@media (max-width: 767px) {
    .team-image-container {
        height: 280px;
    }
    
    .team-content-card {
        padding: 1.5rem !important;
    }
    
    .team-leader-badge,
    .team-expert-badge,
    .team-director-badge {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    
    .team-description {
        font-size: 0.9rem;
        min-height: auto;
    }
    
    .team-badge-info {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
}

/* Animación de entrada escalonada */
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

/* ===========================
   WHATSAPP FLOTANTE - BOTÓN Y POPUP
   =========================== */

/* Botón Flotante de WhatsApp */
.whatsapp-float-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4), 0 0 20px rgba(37, 211, 102, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: scale(0) translateY(20px);
    animation: pulse-whatsapp 2s ease-in-out infinite;
}

/* Animación de entrada */
.whatsapp-float-btn.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Animación de pulso sutil */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4), 0 0 20px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6), 0 0 30px rgba(37, 211, 102, 0.3);
    }
}

/* Hover en el botón */
.whatsapp-float-btn:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6), 0 0 40px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

/* Active/Click */
.whatsapp-float-btn:active {
    transform: scale(1.05);
}

/* Focus para accesibilidad */
.whatsapp-float-btn:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 3px;
}

/* Popup/Modal de WhatsApp */
.whatsapp-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

/* Popup activo */
.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
}

/* Contenido del popup */
.whatsapp-popup-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-popup.active .whatsapp-popup-content {
    transform: scale(1) translateY(0);
}

/* Header del popup */
.whatsapp-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

/* Icono del header */
.whatsapp-popup-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* Botón de cerrar */
.whatsapp-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.whatsapp-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.whatsapp-popup-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* Body del popup */
.whatsapp-popup-body {
    padding: 2rem;
}

/* Estilos de formulario */
.whatsapp-popup-body .form-control {
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.whatsapp-popup-body .form-control:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 0.25rem rgba(37, 211, 102, 0.15);
    outline: none;
}

.whatsapp-popup-body .form-label {
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

/* Botón de envío */
.whatsapp-popup-body .btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-popup-body .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
}

.whatsapp-popup-body .btn-success:active {
    transform: translateY(0);
}

/* Footer del popup */
.whatsapp-popup-footer {
    padding: 1rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 20px 20px;
}

/* Responsive para móvil */
@media (max-width: 576px) {
    .whatsapp-float-btn {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-popup-content {
        max-width: 100%;
        border-radius: 16px;
        max-height: 95vh;
    }

    .whatsapp-popup-header {
        padding: 1.25rem;
        border-radius: 16px 16px 0 0;
    }

    .whatsapp-popup-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .whatsapp-popup-header h5 {
        font-size: 1.1rem;
    }

    .whatsapp-popup-body {
        padding: 1.5rem;
    }

    .whatsapp-popup-footer {
        padding: 0.75rem 1.5rem 1.25rem;
    }
}

/* Scroll suave en el contenido del popup */
.whatsapp-popup-content::-webkit-scrollbar {
    width: 6px;
}

.whatsapp-popup-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.whatsapp-popup-content::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

.whatsapp-popup-content::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}

