:root {
    --primary-color: #002964;
    --secondary-color: #cd9804;
    --background-color: #f2f2f2;
    --text-color: #333;
    --text-color-white: #fff;
    --heading-color: #002964;
    --link-color: #fff;
    --link-hover-color: #cd9804;
}

/* Imagén principal */

.hero-image {
    width: 100%;
    height: 600px;
    background-color: #f5f5f5;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative; 
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*  */

.head {
    text-align: center;
    background-color: var(--primary-color);
    padding: 20px 0;
    border-radius: 10px;
}

.head a{
    text-decoration: none;
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

/* Slider */

.servicios-section {
    margin-bottom: 4rem;
}

.slider-container {
    margin-bottom: 1.5rem;
}

.slider {
    position: relative;
    height: 600px;
    background-color: #f3f4f6;
    overflow: hidden;
    border-radius: 10px;
}

.slider-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

.slider-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.slider-button {
    padding: 0.5rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-button:hover {
    background-color: white;
}

.slider-button svg {
    width: 24px;
    height: 24px;
    color: #1f2937;
}

/* ==================================================== */
/*                     Carreras                         */
/* ==================================================== */

.seccion-titulo {
    text-align: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 35px;
}

.seccion-carrera {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: Arial, sans-serif;
}

.contenido-principal {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.texto-carrera {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.texto-carrera h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.texto-carrera p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: justify;
}

.slider-container {
    flex: 2;
    position: relative;
    overflow: hidden;
}

#imagen-principal {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.controles-slider {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.preview-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0.25rem;
    width: 60px;
}

.preview-control img {
    width: 100%;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.preview-control img.activa {
    opacity: 1;
    border: 2px solid #3b82f6;
}

.barra {
    width: 100%;
    height: 4px;
    background-color: #d1d5db;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    margin-top: 4px;
}

.barra .progreso {
    width: 0;
    height: 100%;
    background-color: #3b82f6;
    transition: width 0.1s linear;
}

.barra.activa .progreso {
    animation: progresoAnimacion 5s linear;
}

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.slide-out {
    opacity: 0;
    transform: translateX(-20px);
}

.slide-in {
    opacity: 1;
    transform: translateX(0);
}

@keyframes progresoAnimacion {
    0% { width: 0; }
    100% { width: 100%; }
}