

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: #f5f9f8;
    color: #333;
    overflow-x: hidden;
}

/* BREADCRUMB */
.breadcrumb {
    background: linear-gradient(to right, #014d3a, #01795b);
    padding: 15px 40px;
    margin-top: 70px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* HERO SECTION CON CARRUSEL MÁS PEQUEÑO */
.hero-section {
    position: relative;
    color: white;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carrusel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.carrusel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carrusel-slide.active {
    opacity: 1;
}

/* Capa overlay para mejor contraste */
.carrusel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(1, 77, 58, 0.85), rgba(1, 121, 91, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Controles del carrusel */
.carrusel-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 3;
}

.carrusel-dots {
    display: flex;
    gap: 8px;
}

.carrusel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carrusel-dot.active {
    background: white;
    transform: scale(1.2);
}

.carrusel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carrusel-nav {
    display: flex;
    gap: 10px;
}

.carrusel-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carrusel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* INFO CARDS */
.info-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.info-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 180px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
    color: #a7f3d0;
}

.info-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 1rem;
    opacity: 0.95;
}

/* ESTILOS PARA LAS MODALIDADES FLOTANTES */
.modalidad-card {
    position: relative;
}

.modalidades-flotantes {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 25px;
    min-width: 280px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modalidades-flotantes.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(20px);
}

.modalidades-flotantes::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(255, 255, 255, 0.95);
}

.modalidades-titulo {
    color: #01795b;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid #10b981;
    padding-bottom: 10px;
}

.modalidad-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(16, 185, 129, 0.05);
}

.modalidad-item:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(5px);
}

.modalidad-item i {
    font-size: 1.2rem;
    color: #10b981;
    min-width: 24px;
}

.modalidad-nombre {
    color: #064e3b;
    font-weight: 600;
    font-size: 1rem;
}

.modalidad-desc {
    color: #666;
    font-size: 0.85rem;
    margin-top: 2px;
}

.modalidad-activa {
    background: rgba(16, 185, 129, 0.15);
    border-left: 4px solid #10b981;
}

.modalidad-activa .modalidad-nombre {
    color: #01795b;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.hero-icon {
    animation: fadeInUp 0.6s ease-out, float 3s ease-in-out infinite 1s;
}

/* CONTENEDOR PRINCIPAL */
.contenedor {
    width: 90%;
    max-width: 1000px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(1, 121, 91, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(1, 121, 91, 0.1);
}

.contenedor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, #10b981, #064e3b);
}

h2 {
    text-align: center;
    color: #01795b;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, #10b981, #064e3b);
    border-radius: 2px;
}

/* ACORDEÓN MEJORADO */
.acordeon-item {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 12px;
    background: white;
    border: 1px solid rgba(1, 121, 91, 0.1);
    transition: all 0.3s ease;
}

.acordeon-item:hover {
    border-color: rgba(1, 121, 91, 0.3);
    box-shadow: 0 5px 15px rgba(1, 121, 91, 0.1);
}

.acordeon-titulo {
    width: 100%;
    background: linear-gradient(to right, #10b981, #064e3b);
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    font-weight: 600;
}

.acordeon-titulo:hover {
    background: linear-gradient(to right, #34d399, #065f46);
    padding-left: 25px;
}

.acordeon-contenido {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: #f8fdfb;
    color: #444;
    line-height: 1.7;
    transition: max-height 0.5s ease, padding 0.5s ease;
    border-left: 3px solid #10b981;
    border-right: 3px solid #10b981;
}

.acordeon-contenido.show {
    max-height: 1000px;
    padding: 25px;
}

.icono {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.acordeon-titulo.active .icono {
    transform: rotate(45deg);
}

/* CONTENIDO MEJORADO */
.contenido-texto {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contenido-lista {
    padding-left: 20px;
    margin: 15px 0;
}

.contenido-lista li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.contenido-lista li::before {
    content: '•';
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: -10px;
}

/* Botón Ver plan MEJORADO */
.boton-plan {
    margin-top: 30px;
    padding: 18px 30px;
    background: linear-gradient(to right, #10b981, #064e3b);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
    color: white;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.boton-plan:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(to right, #34d399, #065f46);
}

.boton-plan i {
    font-size: 1.3rem;
}

/* Botón para volver al inicio */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #01795b;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: #014d3a;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.3rem;
    }

    .contenedor {
        max-width: 90%;
    }
    
    .hero-section {
        height: 65vh;
        min-height: 550px;
    }
    
    .info-card {
        min-width: 160px;
        padding: 18px;
    }
    
    .modalidades-flotantes {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 50px 20px;
        height: 60vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

    .info-cards {
        gap: 12px;
        margin-top: 25px;
    }

    .info-card {
        min-width: 140px;
        padding: 15px;
    }
    
    .info-card i {
        font-size: 1.8rem;
    }
    
    .info-card h3 {
        font-size: 1.2rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    .modalidades-flotantes {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) translateY(10px);
        width: 90%;
        max-width: 300px;
        z-index: 1000;
    }
    
    .modalidades-flotantes.show {
        transform: translate(-50%, -50%) translateY(0);
    }
    
    .modalidades-flotantes::before {
        display: none;
    }

    .contenedor {
        padding: 25px;
        margin: 40px auto;
    }

    h2 {
        font-size: 2rem;
    }

    .carrusel-controls {
        bottom: 15px;
    }
    
    .carrusel-nav {
        display: none;
    }
    
    .carrusel-dot {
        width: 8px;
        height: 8px;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .info-card {
        min-width: calc(50% - 12px);
    }
    
    .info-cards {
        gap: 8px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .acordeon-titulo {
        font-size: 1.1rem;
        padding: 15px;
    }

    .boton-plan {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    
    .hero-section {
        height: 55vh;
        min-height: 450px;
        padding: 40px 20px;
    }
    
    .hero-icon {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .modalidades-flotantes {
        width: 85%;
        padding: 20px;
    }
}