/* ================================
   FUENTES Y TIPOGRAFÍA
   ================================ */

   .fuente-base {
    font-size: 1.3em;
}

.texto-centrado {
    text-align: center;
    margin: -0.25rem 0 0.7rem;
    line-height: initial;
    font-size: 22px;
    color: white;
}

/* ================================
   ENLACES Y BOTONES
   ================================ */

.links {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
    border: none;
}

.links:hover,
.links:focus {
    text-decoration: none;
}

.scroll-circle-button {
    display: block;
    margin: 2em auto;
    width: 60px;
    height: 60px;
    background-color: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.scroll-circle-button:hover {
    background-color: #000;
    color: #fff;
}

.download-box {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background-color: #fff;
    font-size: 3rem;
    color: #000;
    transition: transform 0.2s;
    margin: 0 auto;
}

.download-box:hover {
    transform: scale(1.1);
}

/* ================================
   SECCIÓN DE DESCARGAS
   ================================ */

.downloads-section {
    text-align: center;
    padding: 3em 0;
}

.downloads-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2em;
    gap: 2em;
    flex-wrap: wrap;
    padding: 1rem;
}

.downloads-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.downloads-text {
    text-align: center;
}

.downloads-text h3 {
    margin-bottom: 0.3em;
    font-weight: 700;
    font-size: 1.5rem;
}

.downloads-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 0.1em;
}

.downloads-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* ================================
   VIDEOS
   ================================ */

.video-wrapper {
    max-width: 500px;
    width: 100%;
}

.video-block {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding-bottom: 56.25%; /* 16:9 ratio */
    display: none;
    margin-bottom: 1.5em;
}

.video-container.active {
    display: block;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.responsive-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-container button.play-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.75em 1.5em;
    font-size: 1em;
    background-color: #fff;
    border: none;
    cursor: pointer;
}

.vp-center {
    width: 100%;
    height: 100%;
}

/* ================================
   ELEMENTOS DECORATIVOS
   ================================ */

.fleuron {
    text-align: center;
    font-size: 1.5em;
    margin: 1em 0;
    color: #999;
}

#contenedor-texto {
    line-height: 1.2em;
    margin-bottom: 0.5em;
    margin-top: -50px !important;
}

/* ================================
   NAVEGACIÓN
   ================================ */

#navPanel .close {
    height: 4rem;
    line-height: 4rem;
}

/* ================================
   MEDIA QUERIES
   ================================ */

/* Tablets y pantallas medianas */
@media screen and (min-width: 768px) {
    .downloads-links {
        flex-direction: row;
        justify-content: center;
    }
    
    .download-box {
        margin-right: 1rem;
    }
}

@media screen and (max-width: 980px) {
    #navPanel {
        display: block;
    }
    
    body.is-navPanel-visible #wrapper {
        opacity: 0.5;
    }
    
    body.is-navPanel-visible #navPanel {
        transform: translateX(0);
        box-shadow: 0 0 1.5rem 0 rgba(0, 0, 0, 0.2);
        visibility: visible;
    }
}

/* Tablets pequeñas */
@media screen and (max-width: 768px) {
    .video-container.mobile.active {
        max-width: 100%;
        padding-bottom: 100%;
    }
    
    .video-container.mobile iframe {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Pantallas pequeñas */
@media screen and (max-width: 736px) {
    #navPanel {
        padding: 2.5rem 1.75rem;
    }
    
    .video-mobile-fixed {
        width: 300px;
        max-width: 340px;
        height: 250px;
        position: relative;
        margin: 0 auto;
    }
    
    .video-mobile-fixed iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* iPhone Pro Max y similares */
@media screen and (max-width: 430px) and (max-height: 932px) {
    #wrapper > .bg {
        background-image: url("../../images/paradoxo.png");
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Móviles */
@media screen and (max-width: 420px) {
    #wrapper > .bg {
        background-image: url("../../images/paradoxo.png") !important;
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }
}

@media screen and (max-width: 400px) {
    #contenedor-texto p {
        padding: 0 10px;
        font-size: 1.1em;
        text-align: center;
    }
    
    .video-container iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    
    .download-box {
        font-size: 2.5em;
        padding: 10px;
    }
    
    .downloads-group {
        margin: 10px 0;
    }
    
    #downloads h2 {
        font-size: 1.5em;
    }
    
    .downloads-text h3 {
        font-size: 1.2em;
    }
}
