:root {
    --primary: #1e3c72;
    --secondary: #2a5298;
    --accent: #f39c12;
    --light: #f8f9fa;
    --dark: #2c3e50;
}
body { 
    font-family: 'Poppins', sans-serif; 
    background-color: var(--light); 
    color: var(--dark);
    overflow-x: hidden;
}

/* HERO SECTION - Pantalla Completa Dinámica */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1e3c72);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: white;
    text-align: center;
    position: relative;
    padding: 0 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    z-index: 2;
    max-width: 900px;
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.4);
    letter-spacing: -1px;
}

.hero-section .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: rgba(255,255,255,0.7);
    animation: bounce 2s infinite;
    text-decoration: none;
    transition: color 0.3s;
}

.scroll-indicator:hover { color: white; }

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

/* SECCIÓN INFO - Tarjetas Flotantes */
.course-info {
    padding: 100px 0;
    background-color: white;
    position: relative;
}

.info-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    height: 100%;
    transition: all 0.4s ease;
    border-bottom: 5px solid transparent;
}

.info-card:hover {
    transform: translateY(-15px);
    border-bottom: 5px solid var(--accent);
    box-shadow: 0 25px 45px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 3.5rem;
    background: -webkit-linear-gradient(var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
}

/* SECCIÓN EQUIPO - Carrusel Amplio y Limpio */
.team-section {
    padding: 100px 0 120px;
    background-color: var(--light);
}

.section-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: 70px;
    font-size: 2.8rem;
    position: relative;
    padding-bottom: 20px;
    color: var(--dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--accent);
    border-radius: 5px;
}

.carousel-inner {
    padding: 30px 15px 50px;
}

/* Transición más fluida para el carrusel */
.carousel-item {
    transition: transform 1.2s ease-in-out, opacity 1.2s ease-in-out !important;
}

.member-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    padding: 60px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
    transition: transform 0.3s;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    z-index: 0;
}

.member-img-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    display: inline-block;
}

.member-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    background-color: white;
    transition: transform 0.5s;
}

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

.member-info { position: relative; z-index: 1; }

.member-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.member-role {
    font-size: 1.15rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.member-desc {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 0 30px;
}

/* Controles Carrusel */
.carousel-control-prev, .carousel-control-next {
    width: 8%;
    opacity: 1;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.carousel-control-prev:hover .carousel-control-prev-icon, 
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--accent);
    transform: scale(1.1);
}

.carousel-indicators {
    bottom: -20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    margin: 0 8px;
    border: none;
    transition: all 0.3s;
}

.carousel-indicators .active {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* FOOTER */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 60px 0 30px;
    text-align: center;
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.8rem; }
    .member-card { margin: 0 15px; padding: 50px 20px 40px; }
    .member-desc { padding: 0 10px; }
    .carousel-control-prev, .carousel-control-next { display: none; }
}
