/* ================================================= */
/* 0. RESET BÁSICO Y VARIABLES */
/* ================================================= */

:root {
    --primary-color: #9e0e1c; /* Rojo fuerte */
    --secondary-color: #940412; /* Rojo ligeramente más oscuro (para hover) */
    --text-color: #212529; /* Gris oscuro para el texto principal (Body) */
    --background-light: #f8f9fa; /* Blanco roto (Body) */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);

    /* Variables de color de la Calculadora (para lograr el look oscuro/rojo) */
    --color-acento-principal: var(--primary-color);
    --color-acento-secundario: var(--secondary-color);
    --color-texto-claro: #f8f9fa; /* Blanco roto (para texto sobre oscuro) */
    
    /* Colores Específicos del Contenedor de la Calculadora */
    --color-fondo-calculadora: #1e1e1e; /* Fondo oscuro principal de la calculadora */
    --color-fondo-input: #2d2d2d; /* Fondo de inputs y cajas de resultado */
    --color-borde-resaltado: var(--primary-color); /* Borde rojo */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-color);
    padding-top: 80px; 
}

/* ================================================= */
/* 1. ENCABEZADO (HEADER) y HERO SECTIONS */
/* ================================================= */

.main-header {
    background: #212529; 
    color: white;
    padding: 15px 5%;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: background-color 0.3s;
}

.main-nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

.cart-link a {
    background-color: var(--primary-color);
    border-radius: 5px;
    font-weight: bold;
}

.main-nav a.active-link {
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Botón hamburguesa (oculto en escritorio) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ================================================= */
/* RESPONSIVE GENERAL (Móviles y Tablets) */
/* ================================================= */

img, video, iframe {
    max-width: 100%;
    height: auto;
}

@media (max-width: 880px) {
    .main-header {
        flex-wrap: wrap;
        padding: 12px 5%;
    }

    .nav-toggle {
        display: flex;
    }

    .main-nav {
        order: 3;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .main-nav.open {
        max-height: 600px;
        margin-top: 10px;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
    }

    .main-nav ul li a {
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .cart-link a {
        display: inline-block;
    }

    body {
        padding-top: 68px;
    }
}

@media (max-width: 700px) {
    .hero-slider, .hero-slider2 {
        height: auto;
        min-height: 260px;
        padding: 30px 15px;
    }

    .hero-slide h2 {
        font-size: 1.6em;
    }

    .hero-slide p {
        font-size: 1em;
    }

    .section-title, .section-subtitle- {
        font-size: 1.5em;
    }

    .electivos-container {
        padding: 0 6%;
        margin: 30px auto;
    }

    .floating-btn {
        width: 100px;
        height: 100px;
        bottom: 12px;
        right: 12px;
        padding: 8px;
    }

    .btn-text {
        font-size: 11px;
    }

    .acordeon-container {
        padding: 15px 5%;
    }

    .acordeon-header {
        font-size: 1.05em;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3em;
    }

    .hero-slide h2 {
        font-size: 1.3em;
    }

    .section-VerMas {
        font-size: 1.1em;
    }
}


.hero-banner {
    background: linear-gradient(rgba(238, 40, 47, 0.6), rgb(200, 21, 21)), url('banner-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero-banner h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 1.2em;
    margin-bottom: 25px;
}


.hero-slider {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-color), #1e2a38);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 40px 20px;
}

.hero-slider2 {
    position: relative;
    height: 320px;
    background: linear-gradient(135deg, var(--primary-color), #1e2a38);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 40px 20px;
    max-height: 230px;
}

.hero-slide {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    max-width: 700px;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.hero-slide p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Botones */
.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    padding: 0 15px;
    opacity: 0.7;
}

.hero-control:hover {
    opacity: 1;
}

.hero-control.prev {
    left: 10px;
}

.hero-control.next {
    right: 10px;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* ================================================= */
/* Formato (Títulos y Centrado) */
/* ================================================= */
.parrafo-centrado {
    text-align: center;
}
.section-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}
.section-subtitle- { 
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center; 
}
.section-subsubtitle- { 
    font-size: 1.5em;
    margin-bottom: 30px;
    color: var(black); 
}
/* ================================================= */
/* Lista */
/* ================================================= */
/* El contenedor de la lista */
.lista {
    padding-left: 1.2rem; /* Alinea el punto con la primera letra del título */
    margin-left: 20px;
    margin: 20px 0;       /* Separa la lista del párrafo de arriba y abajo */
    list-style-type: disc;
}

/* Los elementos de la lista */
.lista li {
    margin-bottom: 8px;   /* Más espacio entre líneas para que respire */
    color: var(--text-color);
    font-size: 1.05rem;  
}


.lista li::marker {
    color: var(--primary-color); 
    font-size: 1.1em;
}

.malla-nota {
    margin-top: 20px;
    font-style: italic;
    font-size: 0.9em;
    color: #666;
}
/* ================================================= */
/* Lista */
/* ================================================= */

.acordeon-container {
    padding: 20px 5%;
    max-width: 1000px;
    margin: 40px auto;
}

.section-VerMas {
    text-align: center;
    background-color: var(--primary-color);
    font-size: 1.5em;
    margin-top: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    border-radius: 8px;
    color: #f1f1f1;
}


.section-VerMas a {
    color: #f1f1f1;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.section-VerMas a:hover {
    color: #ffffff;
}




/* ================================================= */
/* 6. PIE DE PÁGINA (FOOTER) Y ELECTIVOS */
/* ================================================= */

.main-footer {
    background: #212529; 
    color: white;
    padding: 30px 5%;
    margin-top: 50px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

.social-links a:hover {
    color: white;
}

.electivos-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 5%;
}

.electivos-listas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.electivos-semestre {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
}

.electivos-titulo {
    margin-bottom: 15px;
    font-size: 1.2em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.electivos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.electivo-item {
    display: grid;
    grid-template-columns: 1fr auto; 
    row-gap: 4px;
    margin-bottom: 15px;
}

.electivo-nombre {
    font-weight: 600;
}

.electivo-linea {
    font-size: 0.9em;
    color: #666;
    grid-column: 1 / span 2; 
}

.electivo-link {
    align-self: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9em;
}

.electivo-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 700px) {
    .electivos-listas {
        grid-template-columns: 1fr;
    }
}









.floating-btn {
    position: fixed;
    bottom: 20px;       /* Distancia desde abajo */
    right: 20px;         /* Distancia desde la derecha */
    width: 150px;        /* Tamaño del botón */
    height: 150px;
    background-color: #9e0e1c; /* Rojo llamativo */
    color: white;
    border-radius: 50%; /* Lo hace circular */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;      /* Asegura que esté por encima de todo */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efecto al pasar el mouse */
.floating-btn:hover {
    transform: scale(1.1); /* Se agranda un poco */
    background-color: #c62828; /* Rojo más oscuro */
}

/* Opcional: Texto pequeño dentro o estilo de icono */
.btn-text {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}