﻿
body {
    background-color: #F3F1EE;
}
.lesson-swiper {
    width: 80%;
    height: 87vh;
    --swiper-navigation-color: #00e5ff;
    /*CONFIGURACIÓN DE LA BARRA DE PROGRESO*/
    --swiper-pagination-progressbar-size: 10px;
    background-color: white;
}
.lesson-swiper.swiper-horizontal > .swiper-pagination-progressbar {
    top: auto;
    bottom: 0px;
}


img {
    max-width: 100%;
    display: block;
}

.lesson-slide {
    /*max-width: 100%;
    max-height: 100%;*/
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* evita que algo se salga */
    padding: 0 40px;
    
}

/*.swiper-button-prev {
    left: 10px;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-next,
.swiper-button-prev {
    background: rgba(0,0,0,0.5);
}*/

.lesson-slide img {
    max-width: 100%; /* nunca más ancho que el contenedor */
    max-height: 100%; /* nunca más alto que el contenedor */
    width: auto;
    height: auto;
    object-fit: contain; /* mantiene proporción SIN recortar */
}

.swiper-slide {
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.exercise {
    margin: 1% 8% 0.5% 8%;
    border: solid;
    border-color: blue;
    padding-left: 20px;
    padding-right: 5px;
    padding-bottom: 15px;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
.evaluateSection {
    font-size: 20px;
    margin: 0% 8% 1% 8%;
    display: flex;
    justify-content: flex-end;
}
.evaluateBtn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(180deg, #4c51bf, #6b21a8); /* Degradado moderno */
    border: none;
    border-radius: 50px; /* Bordes muy redondeados */
    cursor: pointer;
    transition: all 0.3s ease; /* Suaviza los cambios */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    outline: none;
}
.evaluateBtn:hover {
    transform: translateY(-3px); /* Pequeña elevación */
    box-shadow: 0 6px 20px rgba(110, 142, 251, 0.4);
    filter: brightness(1.1); /* Brillo sutil */
}

evaluateBtn:active {
    transform: translateY(-1px);
}

.exercite-tittle {
    flex: 0 0 auto;
    border: solid;
    border-color: #0071C1;
    background-color: #0071C1;
    color: white;
    margin-left: 20%;
    margin-right: 20%;
    border-radius: 15px;
    padding-left: 2%;
    padding-right: 2%;
    text-align: center;
}

.audio-ex{
    padding-top:10px;
    padding-left:90px;
}
.audio-ex img{
    max-width:80%
}

.audio-controls {
    position: absolute; /* lo fija en pantalla */
    top: 10px; /* distancia desde arriba */
    left: 10px; /* distancia desde la izquierda */
    z-index: 9999; /* para que quede encima de otros elementos */
    max-width:23%;
}


.swiper {
    position: relative;
    padding-bottom: 90px;
}
.swiper-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 24px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
    /* Botones generales */
    .swiper-controls button,
    .swiper-button-prev,
    .swiper-button-next {
        position: static !important;
        width: 42px;
        height: 40px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        font-weight: bold;
        background: white;
        color: #333;
        transition: all 0.25s ease;
        margin-bottom:-12px;
    }

        /* Flechas internas de Swiper */
        .swiper-button-prev::after,
        .swiper-button-next::after {
            font-size: 14px;
            font-weight: bold;
        }

        /* Hover elegante */
        .swiper-controls button:hover,
        .swiper-button-prev:hover,
        .swiper-button-next:hover {
            background: #111;
            color: white;
            transform: scale(1.08);
        }

/* Estado deshabilitado */
.swiper-button-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Paginación */
.swiper-pagination {
    position: static !important;
    font-size: 16px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    color: #222;
}