/* docs/stylesheets/extra.css */

:root {
    /* Suaviza el tono del texto oscuro para que no canse la vista */
    --md-text-color: #333333;
    --md-text-link-color: #e65100;
    /* Un tono naranja quemado elegante para los enlaces en texto */
}

/* Redondear sutilmente los botones para que se sientan más amigables y modernos */
.md-button {
    border-radius: 20px;
    padding: 0.6em 2em;
    font-weight: 500;
}

/* Estilo para las pestañas superiores: navegación más limpia */
.md-tabs__link {
    font-weight: 500;
    opacity: 0.8;
}

.md-tabs__link--active {
    opacity: 1;
}

/* --- Estilos para el Popup --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Fondo oscuro semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Asegura que esté por encima de todo */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.popup-overlay.mostrar {
    visibility: visible;
    opacity: 1;
}

.popup-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    background: var(--md-default-bg-color);
    /* Se adapta al modo claro/oscuro */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease-out;
}

.popup-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    display: block;
}

/* Botón de cerrar con tu color naranja (primary) */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--md-primary-fg-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: transform 0.2s;
}

.popup-close:hover {
    transform: scale(1.1);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}