/* ===== VARIABLES ===== */
:root {
    --color-primario: #000000;
    --color-primario-claro: #b02a50;
    --color-secundario: #f5a623;
    --color-acento: #d4a76a;
    --color-oscuro: #3a2c2c;
    --color-oscuro-claro: #5d4c4c;
    --color-claro: #f8f5f0;
    --color-texto: #4a3c3c;
    --degradado-primario: linear-gradient(135deg, #000000, #b02a50);
}

/* ===== HERO ESPECTACULAR ===== */
.niveles-hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("../img/alumnos.png");

    background-size: cover;
    z-index: 2;
}

.hero-contenido-niveles {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-titulo-niveles {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-descripcion-niveles {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.hero-indicadores {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.hero-indicador {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.hero-indicador:hover {
    transform: translateY(-10px);
}

.indicador-numero {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.5;
    line-height: 1;
}

.indicador-texto {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.indicador-texto:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.hero-indicador:hover .indicador-texto:after {
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* ===== FRASES ===== */
.frase-section {
    padding: 100px 0;
    text-align: center;
}

.frase-oscura {
    background: linear-gradient(10deg, #000000, #b02a50);
    color: white;
}

.frase-contenido {
    max-width: 800px;
    margin: 0 auto;
}

.frase-icono {
    font-size: 3rem;
    color: var(--color-secundario);
    margin-bottom: 30px;
    opacity: 0.5;
}

.frase-texto {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
}

.frase-autor {
    font-size: 1.1rem;
    opacity: 0.7;
}

.frase-imagen-section {
    height: 500px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.overlay-oscuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background:
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("../img/arte.jpg");

    background-size: cover;
    background-position: center;
}

.frase-texto-grande {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.frase-autor-claro {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

/* ===== SECCIONES DE NIVEL ===== */
.nivel-seccion {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.nivel-primario {
    background-image: url(../img/blanco.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.nivel-secundario {
    background-image: url(../img/blanco.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.nivel-universitario {
    background-image: url(../img/blanco.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.nivel-header {
    margin-bottom: 80px;
    position: relative;
}

.nivel-numero {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(117, 23, 23, 0.599);
    line-height: 1;
    margin-bottom: -20px;
}

.nivel-titulo {
    font-size: 3.5rem;
    color: var(--color-oscuro);
    margin-bottom: 15px;
}

.nivel-subtitulo {
    font-size: 1.2rem;
    color: var(--color-texto-claro);
}

.info-card {
    background: linear-gradient(10deg, #d2d2d2c2);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.info-card i {
    font-size: 3rem;
    color: var(--color-primario);
    margin-bottom: 20px;
}

/* ===== MATERIAS GRID ===== */
.materias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.materia-card {
    background: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.materia-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primario-claro);
    box-shadow: 0 10px 30px rgba(176, 42, 80, 0.1);
}

.materia-card i {
    font-size: 2rem;
    color: var(--color-primario-claro);
    margin-bottom: 15px;
}

.materia-card span {
    display: block;
    font-weight: 500;
}

/* ===== SWIPER MATERIAS ===== */
.materias-swiper {
    padding: 50px 0 80px !important;
    overflow: visible !important;
}

.materia-slide {
    background: linear-gradient(135deg, var(--color-primario), var(--color-primario-claro));
    color: white;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: default;
    width: auto;
    min-width: 180px;
}

.materia-slide:hover {
    transform: scale(1.05);
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--color-primario-claro);
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primario-claro);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--color-primario-claro);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 1.2rem;
}

/* ===== INGRESOS ===== */
.ingresos-seccion {
    padding: 120px 0;
    position: relative;
    color: white;
}

.ingresos-secundarios-bg {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    position: relative;
}

.ingresos-universitarios-bg {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
}

.ingresos-header {
    text-align: center;
    margin-bottom: 80px;
}

.ingresos-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.ingresos-titulo {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.ingresos-subtitulo {
    font-size: 1.2rem;
    opacity: 0.9;
}

.ingresos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.ingreso-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ingreso-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.ingreso-card-destacada {
    background: linear-gradient(20deg, #000000, #b02a50);
    border: none;
}

.ingreso-icono {
    font-size: 3rem;
    margin-bottom: 25px;
    color: white;
}

.ingreso-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ingreso-card:hover {
    background: linear-gradient(20deg, #000000, #b02a50);
    transition: 0.5;
}

.ingreso-card p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ingreso-detalle {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.universidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.universidad-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
}

.universidad-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.carreras-lista {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    text-align: left;
}

.carreras-lista li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 25px;
}

.carreras-lista li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secundario);
}

/* ===== TABS UNIVERSITARIO ===== */
.universitario-tabs {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--color-claro-medio);
    padding-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--color-claro);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    color: var(--color-texto);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--color-primario-claro);
    color: white;
}

.tab-btn.active {
    background: var(--degradado-primario);
    color: white;
    box-shadow: 0 5px 15px rgba(176, 42, 80, 0.3);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-titulo {
    font-size: 1.8rem;
    color: var(--color-oscuro);
    margin-bottom: 30px;
}

.materias-grid-colapsable {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.materia-tag {
    background: var(--color-claro);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.materia-tag:hover {
    background: var(--color-primario-claro);
    color: white;
    transform: scale(1.05);
    border-color: white;
}

/* ===== TIKTOK ===== */
.tiktok-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: white;
}

.tiktok-header {
    text-align: center;
    margin-bottom: 60px;
}

.tiktok-icono-grande {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ff0050;
}

.tiktok-header h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.tiktok-video {
    text-align: center;
}

.tiktok-link-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 10px 20px rgba(255, 0, 80, 0.3);
}

.tiktok-link-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 80, 0.5);
    color: white;
}

/* ===== FRASE FINAL ===== */
.frase-final {
    padding: 150px 0;
    background: linear-gradient(135deg, var(--color-primario), var(--color-primario-claro));
    color: white;
    text-align: center;
}

.frase-final h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    line-height: 1.3;
}

.btn-grande {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* ===== DECORACIONES ===== */
.decoracion-flotante {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(176, 42, 80, 0.05);
    z-index: 0;
}

.flotante-1 {
    top: -100px;
    right: -100px;
    animation: flotar 8s ease-in-out infinite;
}

.flotante-2 {
    bottom: -100px;
    left: -100px;
    background: rgba(245, 166, 35, 0.05);
    animation: flotar 10s ease-in-out infinite reverse;
}

@keyframes flotar {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 30px);
    }
}



/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-titulo-niveles {
        font-size: 4rem;
    }
    
    .nivel-titulo {
        font-size: 3rem;
    }
    
    .ingresos-titulo {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-titulo-niveles {
        font-size: 3.5rem;
    }
    
    .hero-indicadores {
        flex-wrap: wrap;
    }
    
    .hero-indicador {
        width: 45%;
    }
    
    .nivel-numero {
        font-size: 5rem;
    }
    
    .nivel-titulo {
        font-size: 2.5rem;
    }
    
    .ingresos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .universidades-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .tab-btn {
        display: inline-block;
    }
    
    .frase-texto-grande {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-titulo-niveles {
        font-size: 2.8rem;
    }
    
    .hero-descripcion-niveles {
        font-size: 1.1rem;
    }
    
    .hero-indicadores {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-indicador {
        width: 100%;
    }
    
    .frase-texto {
        font-size: 1.5rem;
    }
    
    .frase-texto-grande {
        font-size: 1.8rem;
    }
    
    .nivel-seccion {
        padding: 60px 0;
    }
    
    .nivel-numero {
        font-size: 4rem;
        margin-bottom: -10px;
    }
    
    .nivel-titulo {
        font-size: 2rem;
    }
    
    .materias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ingresos-grid {
        grid-template-columns: 1fr;
    }
    
    .ingresos-titulo {
        font-size: 2.2rem;
    }
    
    .universitario-tabs {
        padding: 25px;
    }
    
    .tab-titulo {
        font-size: 1.3rem;
    }
    
    .materias-grid-colapsable {
        gap: 10px;
    }
    
    .materia-tag {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .frase-final h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-titulo-niveles {
        font-size: 2.2rem;
    }

    .swiper-slide{
        margin-bottom: 90px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 5px 15px;
    }
    
    .frase-texto {
        font-size: 1.2rem;
    }
    
    .frase-texto-grande {
        font-size: 1.5rem;
    }
    
    .materias-grid {
        grid-template-columns: 1fr;
    }
    
    .materia-slide {
        min-width: 140px;
        padding: 15px;
        font-size: 0.9rem;
    }
    
    .ingreso-card {
        padding: 25px;
    }
    
    .ingreso-card h3 {
        font-size: 1.2rem;
    }
    
    .universidad-card {
        padding: 30px;
    }
    
    .universidad-card h3 {
        font-size: 1.5rem;
    }
    
    .carreras-lista li {
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .tiktok-header h2 {
        font-size: 1.8rem;
    }
    
    .tiktok-link-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .frase-final {
        padding: 80px 0;
    }
    
    .frase-final h2 {
        font-size: 1.6rem;
    }
    
    .btn-grande {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 390px){
    .hero-badge{
        margin-top: 50px
    }
}