/* ===== Variables y Reset ===== */
:root {
    --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: 150px;
    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% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.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: #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, #ffffff, #fefefe);
}

.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, #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);
}

/* section .lead {
    font-size: 1.15rem;
    color: rgba(0, 0, 0, 0.7);
    max-width: 700px;
    margin: 0 auto;
}

.text-white + .lead,
.text-white .lead {
    color: rgba(255, 255, 255, 0.85);
} */

/* ===== 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, #ffffff, #fefefe);
}

.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 ===== */
.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: #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: #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, #ffffff, #fefefe);
}

.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, #ffffff, #fefefe);
    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: #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: #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);
}

/* ===== 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: #2D3436 !important;
}

/* ===== Separadores de Sección ===== */
section {
    scroll-margin-top: 80px;
}

section + section {
    margin-top: 0;
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 768px) {
    .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;
    }

    .nav-link {
        padding: 0.5rem 0.75rem !important;
    }

    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@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, #ffffff, #fefefe);
}

.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(45, 52, 54, 0.95) 0%, 
        rgba(45, 52, 54, 0.75) 40%, 
        transparent 100%);
    transition: background 0.4s ease;
}

.team-member-card:hover .team-overlay-gradient {
    background: linear-gradient(to top, 
        rgba(255, 159, 10, 0.95) 0%, 
        rgba(255, 107, 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, #ffd700 0%, #ffed4e 100%);
    color: #2D3436;
    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, #ff6b00 0%, #ff9f0a 100%);
}

.team-director-badge {
    background: linear-gradient(135deg, #198754 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, #ffffff, #fafafa);
}

/* 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: #555;
    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(255, 159, 10, 0.05);
    border-radius: 12px;
    border-left: 3px solid var(--bs-primary);
    transition: var(--transition-smooth);
}

.team-info-item:hover {
    background: rgba(255, 159, 10, 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: #333;
    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; }

