:root {
    --blanco: #ffffff;
    --verde: #238C55;
    --dorado: #c7b446;
    --negro: #000000;
    --gris: #f7f9f9;
}

html body{
    margin: 0;
    padding: 0;
}

html{
    font-size: 62.5%;
}

body{
    font-size: 16px;
    font-family: "Krub", sans-serif;
}

.portada_principal{
    display: block;
    width: 100%;
    height: auto;
}

.barra_oferta_01, .barra_oferta_02, .barra_oferta_03 {
    background-color: var(--dorado);
    padding: 10px;
    margin-bottom: 0% ;
}

/* Estilos para el sistema de pestañas */
.container{
    display: flex;
    padding: 10px;
    justify-content: center;
}
.tab-menu {
    display: flex;
    font-weight: bold;
}

.tab-item {
    padding: 20px;
}

.tab-item:hover {
    color: var(--verde)
}

.tab-item.active {
    color: var(--dorado);
    text-decoration: underline;
}

.tab-pane {
    padding: 2rem;
    background-color: white;
    display: none;
}

.tab-pane.active {
    display: flex;
    animation: fadeIn 0.5s ease;
}

.text-content {
    flex: 1;
    padding-right: 150px;
    text-align: justify;
    line-height: 1.6;
}

.img-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    object-fit: cover;
    max-height: 400px;
}

/*Plan de Estudios*/
/* Estilos generales */
#plan-content {
    color: var(--verde);
    line-height: 1.5;
    padding: 20px;
}

/* Contenedor de semestres */
.semester-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}
.semester-container p{
    font-weight: bold;
}
/* Bloques individuales de semestre */
.semester-block {
    flex: 1 1 300px;
    background: var(--blanco);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Lista de materias */
.semester-block ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.semester-block li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.semester-block li:last-child {
    border-bottom: none;
}

/* Bloques especiales */
.special-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.special-block {
    flex: 1 1 250px;
    background: var(--blanco);
    border-radius: 5px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/*video*/
/* Contenedor principal */
.bach_video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    background-image: url(img/fondo_uae.jpg);
    background-position: center;
    width: 100%;
    height: 400px;
    margin: 0 auto;
}

/* Título semántico */
.bach_video h3 {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 5rem;
    color: var(--blanco);
    line-height: 1.3;
}

/* Enlace con ícono */
.bach_video a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 50px;
    color: var(--blanco);
    background-color: #e74c3c;
    font-size: 1.8rem;
    text-decoration: none;
    border-radius: 10%;
    transition: all 0.3s ease;
}

/* Efectos hover y focus para accesibilidad */
.bach_video a:hover,
.bach_video a:focus {
    background-color: #c0392b;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Indicador visual para teclado */
.bach_video a:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Estilos para la sección de turnos */
.turnos {
    text-align: center;
    padding: 10px;
}

.turnos p {
    font-size: 24px;
    color: var(--negro);
}

.turnos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px; /* Espacio entre elementos */
}

.turnos-container > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px; /* Ancho de cada contenedor de imagen */
}

.turnos-container img {
    width: 100%; /* Las imágenes ocupan todo el ancho de su contenedor */
    height: auto;
    margin-bottom: 20px; /* Espacio entre imagen y texto */
}

.turnos-container p {
    font-size: 16px;
    color: var(--negro);
    padding-bottom: 20px;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .semester-block, .special-block {
        flex: 1 1 100%;
    }
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .tab-menu {
        flex-direction: column;
    }
    
    .tab-item {
        margin-bottom: 0.5rem;
        margin-right: 0;
        border-radius: 5px;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-item.active {
        border-bottom: 3px solid #0d47a1;
    }
}