/**
 * Modo Alternativo Styles
 * 
 * CSS for topbar and header when in alternativo mode
 * Makes them overlay on content with transparent background
 *
 * @package TattooEdu
 * @version 1.0.0
 */

/* ===== MODO ALTERNATIVO GENERAL ===== */

/* Topbar en modo alternativo */
.topbar.modo-alternativo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: transparent !important;
    border-bottom: none !important;
    color: #ffffff;
}

/* Header en modo alternativo */
.header-1.modo-alternativo,
.header-2.modo-alternativo {
    position: absolute;
    top: 40px; /* Altura del topbar por defecto */
    left: 0;
    right: 0;
    z-index: 998;
    background-color: transparent !important;
    border-bottom: none !important;
    color: #ffffff;
}

/* Si no hay topbar activo, el header se posiciona en top: 0 */
body:not(.has-topbar) .header-1.modo-alternativo,
body:not(.has-topbar) .header-2.modo-alternativo {
    top: 0;
}

/* ===== ESTILOS DE TEXTO EN MODO ALTERNATIVO ===== */

/* Textos del topbar */
.topbar.modo-alternativo,
.topbar.modo-alternativo * {
    color: #ffffff !important;
}

/* Textos del header */
.header-1.modo-alternativo,
.header-1.modo-alternativo *,
.header-2.modo-alternativo,
.header-2.modo-alternativo * {
    color: #ffffff !important;
}

/* Enlaces del menú */
.modo-alternativo .menu a,
.modo-alternativo .menu a:hover,
.modo-alternativo .menu a:focus {
    color: #ffffff !important;
}

/* Botones */
.modo-alternativo button {
    background-color: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}

.modo-alternativo button:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ===== AJUSTES PARA CONTENIDO ===== */

/* Cuando hay topbar y header en modo alternativo, el contenido principal no necesita margin-top */
.modo-alternativo-active .site-content,
.modo-alternativo-active main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

/* Ajustar posición del header según si hay topbar */
@media (max-width: 768px) {
    /* En móvil, el topbar puede tener altura diferente */
    .header-1.modo-alternativo,
    .header-2.modo-alternativo {
        top: 35px; /* Altura del topbar en móvil */
    }
    
    body:not(.has-topbar) .header-1.modo-alternativo,
    body:not(.has-topbar) .header-2.modo-alternativo {
        top: 0;
    }
}

/* ===== ICONOS Y ELEMENTOS ESPECIALES ===== */

/* Separadores */
.modo-alternativo .separador {
    color: #ffffff !important;
}

/* Menu móvil */
.modo-alternativo .menu-movil {
    color: #ffffff !important;
}

/* ===== WIDGETS DEL TOPBAR ===== */

.topbar.modo-alternativo .topbar-widget {
    color: #ffffff !important;
}

.topbar.modo-alternativo .topbar-widget-title {
    color: #ffffff !important;
}

.topbar.modo-alternativo .topbar-default-content {
    color: rgba(255, 255, 255, 0.8) !important;
}