/* ==========================================================================
   VERSIONADO E IMPORTACIONES
   ========================================================================== */
/*v.090520260258*/
@import url(googleapis.com);

/* ==========================================================================
   ESTILOS BASE Y ESTRUCTURA GENERAL (index.php)
   ========================================================================== */
.class_body {
    background-color: black; 
    margin: 0; 
    min-height: 100vh; 
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.class_fondoweb { 
    background-size: auto; 
    background-repeat: no-repeat; 
    background-position: center center; 
    background-attachment: fixed; 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column;
}

#id_div_fondoweb {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.class_contenido {
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    min-height: 80vh;
}

#id_div_contenido {
    flex: 1 0 auto; 
}

/* ==========================================================================
   COMPONENTES INTERACTIVOS: MODALES (index.php)
   ========================================================================== */
.class_modal {
    display: none; /* Controlado por JS (flex al abrir) */
    position: fixed;
    z-index: 999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9); 
    justify-content: center;
    align-items: center;
}

.class_modal-content {
    position: relative; 
    width: 95%;
    max-width: 1800px;
    height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
	z-index: 999;
}

#modalImage {
    max-width: 100%;
    max-height: 95vh; 
    width: auto;
    height: auto;
    object-fit: contain; 
    box-shadow: 0px 0px 30px rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.1); 
	z-index: 999;
}

img.class_modal-image {
    width: 100%;
    height: auto;
    box-shadow: 0px 0px 10px rgba(255,255,255,0.5);
    animation: entrada 0.5s ease forwards;
    max-width: 100%; 
    cursor: pointer;
	z-index: 999;
}

.class_modal-background {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.8); 
    z-index: 998;
}

/* ==========================================================================
   CABECERA: LOGO Y BOTÓN HAMBURGUESA (index.php)
   ========================================================================== */
.class_fondologo {
    padding-top: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%;
}

img.class_logo {
    width: 15%; 
    min-width: 200px;
}

.class_hamburguesa {
    display: none; /* Oculto en escritorio */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100; 
    background: rgba(34, 34, 34, 0.8);
    padding: 10px;
    border-radius: 5px;
}

.class_hamburguesa div {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: 0.4s;
}

/* ==========================================================================
   NAVEGACIÓN PRINCIPAL Y ESCRITORIO (index.php)
   ========================================================================== */
.class_menu {
    width: 100%; 
    margin-top: 20px;
}

.class_menuprincipal {
    width: 100%; 
    display: flex; 
    justify-content: center;
}

.class_menuprincipal_subdiv {
    font-size: clamp(1rem, 1.7vw, 1.5rem); 
    display: flex; 
    flex-direction: row; 
    gap: 2.5vw; 
    justify-content: center; 
    align-items: center; 
    color: #ffffff; 
    font-weight: bold; 
    flex-wrap: nowrap; 
    padding: 0 10px;
}

.class_item_con_submenu {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.p_menu {
    cursor: pointer; 
    letter-spacing: 2px; 
    white-space: nowrap; 
    margin: 0;
}

.p_menu:hover {
    text-shadow: 0px 0px 10px rgba(255,255,255,0.5) !important;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

/* ==========================================================================
   SUBMENÚS DE ESCRITORIO (index.php)
   ========================================================================== */
.class_submenuportafolio {
    width: 100%; 
    display: none; 
    justify-content: center; 
    position: absolute; 
    z-index: 98; 
    left: 0; 
    padding: 5px 0;
    margin-top: 60px;
    animation: fadeInCat 0.5s;
    -webkit-animation: fadeInCat 0.5s;
    -moz-animation: fadeInCat 0.5s;
    -o-animation: fadeInCat 0.5s;
    -ms-animation: fadeInCat 0.5s;
}

.class_submenutrabajos {
    width: 100%; 
    display: none; 
    justify-content: center; 
    position: absolute; 
    z-index: 98; 
    left: 0; 
    padding: 5px 0;
    margin-top: 60px;
    color: white;
    gap: 15px; 
    align-items: center;
    animation: fadeInCat 0.5s;
    -webkit-animation: fadeInCat 0.5s;
    -moz-animation: fadeInCat 0.5s;
    -o-animation: fadeInCat 0.5s;
    -ms-animation: fadeInCat 0.5s;
}

.class_submenucategorias {
    display: flex; 
    gap: 15px; 
    color: white; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center;
}

.span_submenu {
    filter: grayscale(30%) brightness(90%);
    transition: all 0.3s ease-in-out;
    cursor: pointer; 
    letter-spacing: 2px; 
    font-weight: bold; 
    white-space: nowrap;
}

.span_submenu:hover {
    filter: grayscale(0%) brightness(120%);
    transform: scale(1.3) !important;
    cursor: pointer;
}

/* ==========================================================================
   PLANTILLA: INICIO (inicio.php)
   ========================================================================== */
.class_inicioderecha {
    margin-top: 50px;
    margin-left: 55%;
    padding: 40px 20px; 
    max-width: 700px; 
    width: 40%; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    text-align: center; 
    align-items: center;
}

.class_p_inicioderecha {
    letter-spacing: 2px; 
    word-spacing: 2px; 
    color: #ffffff; 
    font-weight: bold; 
    margin: 5% 0 10px 0;
}

.class_img_inicioderecha {
    width: 80%; 
    min-width: 100px;
}

.class_miniaturas_inicio {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    width: 75%;
    margin-left: auto;
    min-height: 120px;
    position: relative;
    margin-top: auto;
    padding-right: 10px;
    animation: fadeIn 1.5s ease forwards;
}

.class_img_miniaturainicio {
    height: 140px; 
    width: 12%; 
    flex: 0 1 auto;
    object-fit: cover;
    margin: 5px;
}

/* ==========================================================================
   PLANTILLA: GALERÍA DE IMÁGENES (galeria.php)
   ========================================================================== */
.contenedor_general_galeria {
    width: 100%;
    margin-top: 25px; 
}

.class_div_galeria {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    padding-top: 20px; 
    position: relative;
    width: 90%;
    margin: auto;
}

.class_div_galeria::after {
    content: "";
    flex-grow: 1000000; 
}

.class_div_img_galeria {
    flex: calc(var(--ratio) * 60) 1 calc(var(--ratio) * 250px);
    height: 250px; 
    overflow: hidden;
}

.class_img_galeria {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.img_miniatura {
    filter: grayscale(30%) brightness(90%);
    transition: all 0.3s ease-in-out;
    cursor: pointer; 
    letter-spacing: 2px; 
    font-weight: bold; 
    white-space: nowrap;
}

.img_miniatura:hover {
    filter: grayscale(0%) brightness(120%);
    transform: scale(1.05) !important;
    cursor: pointer;
}

.linea_separadora {
    display: block !important; 
    height: 1px;
    width: 90%;
    margin: 15px auto;
    background: rgba(255, 255, 255, 0.10) !important; 
    position: relative;
}
/* ==========================================================================
   PLANTILLA: CARTELES (carteles.php)
   ========================================================================== */
.class_div_carteles {
    display: flex; 
    width: 100%; 
    flex-wrap: wrap; 
    gap: 20px; 
    padding: 20px; 
    justify-content: center; 
    min-height: 200px;
}

.class_div_carteles::after {
    content: "";
    flex-grow: 1000;
}

.class_subdiv_carteles {
    display: flex; 
    flex-wrap: wrap; 
    gap: 25px; 
    justify-content: center; 
    width: 100%; 
}

.class_div_cartel {
    display: flex; 
    justify-content: center;
    align-items: flex-start;
    flex: 0 1 auto; 
}

.class_img_cartel {
    height: 400px; 
    width: auto;
    object-fit: contain;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

/* ==========================================================================
   PLANTILLA: TRABAJOS (trabajos.php)
   ========================================================================== */
.class_menutrabajos {
    display: flex; 
    width: 100%; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    overflow-y: auto; 
    min-height: 200px;
}

.class_menutrabajos_subdiv {
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    padding: 10px; 
    width: 100%;
}

.class_tarjetatrabajo {
    width: 350px; 
    background-color: rgba(34, 34, 34, 0.6); 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 0.9em; 
    text-align: left; 
    transition: transform 0.2s;
}

.class_img_tarjetatrabajo {
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    object-position: top;
    border-radius: 4px; 
    margin-bottom: 8px;
}

/* ==========================================================================
   PLANTILLA: EVENTOS (evento.php)
   ========================================================================== */
.class_div_contenedorevento {
    display: flex; 
    flex-wrap: wrap; 
    gap: 15px; 
    padding: 20px; 
    padding-top: 50px; 
    width: 100%; 
    box-sizing: border-box; 
    align-items: flex-start; 
    justify-content: flex-start; 
    overflow: hidden; 
    height: auto;
}

.class_encabezadoevento {
    width: 100%; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
    margin-bottom: 20px;
}

.class_encabezadoevento_titulo {
    color: white; 
    margin: 0; 
    font-size: 1.8em;
}

.class_encabezadoevento_datos {
    color: #ddd; 
    font-size: 1.1em;
}

.class_textoeventocentrado {
    max-width: 800px; 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 1em; 
    text-align: center; 
    flex: 1; 
    color: white;
}

.class_textoeventoderecha {
    flex: 1; 
    max-width: 30%; 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 0.9em; 
    text-align: center; 
    min-width: 300px; 
    color: white;
}

.class_img_eventoizquierda {
    flex: 3; 
    max-width: 30%; 
    padding: 15px; 
    border-radius: 8px; 
    font-size: 0.9em; 
    text-align: center; 
    min-width: 300px; 
    color: white;
}

.class_div_videoevento {
    display: flex; 
    width: 100%; 
    flex-wrap: wrap; 
    align-items: stretch; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 15px;
}

.class_h2_bloqueevento {
    color: white; 
    margin: 20px 0; 
    font-size: 1.2em; 
    letter-spacing: 3px;
}

.class_div_imgevento {
    flex: calc(var(--ratio) * 100) 1 calc(var(--ratio) * 200px);
    height: 200px;
    max-width: 500px; 
}

.class_img_evento {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.class_numimg_evento {
    position: absolute; 
    bottom: 5px; 
    right: 8px; 
    color: white; 
    background: rgba(0,0,0,0.6); 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: bold;
}

.class_flex_spacer {
    flex-grow: 1000; 
    height: 0;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   PLANTILLA: CONTACTO (contacto.php)
   ========================================================================== */
.class_div_contacto {
    justify-content: center; 
    margin-top: 50px;
    margin-left: 55%;
    padding: 40px 20px; 
    max-width: 700px; 
    width: 40%; 
    border-radius: 12px; 
    text-align: center; 
    color: #ffffff; 
    font-family: sans-serif;
}

.class_a_contacto {
    display: flex; 
    align-items: center;      
    justify-content: center;   
    gap: 10px;                
    text-decoration: none; 
    color: white; 
    font-weight: 700;
    font-family: sans-serif;   
}

.class_a_contacto img {
    display: block; 
}

/* ==========================================================================
   PIES DE PÁGINA (PC y Estructuras Base de Móvil)
   ========================================================================== */
.class_pie {
    width: 100%; 
    padding: 20px 0; 
    background: rgba(0,0,0,0.3);
}

.class_hrpie {
    opacity: 0.2; 
    width: 95%; 
    margin: 0 auto 15px auto;
}

.class_piebajo {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 90%; 
    margin: auto; 
    flex-wrap: wrap; 
    gap: 10px;
}

.class_piebajoizquierda {
    display: flex; 
    gap: 15px; 
    align-items: center;
}

.class_piebajoderecha {
    color: rgba(255,255,255,0.6); 
    font-size: 0.85rem;
}

/* Elementos declarados base para inicialización en index.php */
.class_piemenumovil {
    display: none;
}

.class_piebajoizquierdamovil {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.class_piebajoderechamovil {
    color: rgba(255,255,255,0.6); 
    font-size: 0.85rem;
}

/* ==========================================================================
   INTERACTIVIDAD Y UTILIDADES GLOBALES
   ========================================================================== */
.class_pointer:hover {
    cursor: pointer;
}

/* ==========================================================================
   ANIMACIONES CORE GLOBAL Y CLASES DE CONTROL JS
   ========================================================================== */
.class_fadein_normal { animation: entrada 1.5s ease forwards; }
.class_fadeout_normal { animation: salida 1.5s ease forwards; }
.efecto-fadeOut { animation: fadeOutAnimation 0.4s ease forwards; pointer-events: none; }
.fade-in { animation: entrada 0.4s ease forwards; }
.fade-out { animation: salida 0.4s ease forwards; }

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-moz-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@-webkit-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@-o-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@-ms-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

@keyframes fadeInCat {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@-moz-keyframes fadeInCat { 0% { opacity: 0; } 100% { opacity: 1; } }
@-webkit-keyframes fadeInCat { 0% { opacity: 0; } 100% { opacity: 1; } }
@-o-keyframes fadeInCat { 0% { opacity: 0; } 100% { opacity: 1; } }
@-ms-keyframes fadeInCat { 0% { opacity: 0; } 100% { opacity: 1; } }

@keyframes fadeInNormal { from { opacity: 0; } to { opacity: 1; } }
@keyframes entrada { from { opacity: 0; } to { opacity: 1; } }
@keyframes salida { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeOutAnimation { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.95); } }

@keyframes caídaCentrada {
    from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================================================
   BLOQUE RESPONSIVO INTERMEDIO: DISPOSITIVOS DE ESCRITORIO (min-width: 769px)
   ========================================================================== */
@media (min-width: 769px) {
    .class_item_con_submenu {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
    }
    .class_submenutrabajos {
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        width: auto !important;
        margin-top: 0px !important;
        display: none; 
        animation: caídaCentrada 0.5s ease forwards !important;
    }
}

/* ==========================================================================
   BLOQUE RESPONSIVO CORE: DISPOSITIVOS MÓVILES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .class_body {
        font-size: 1rem; 
    }
    img.class_logo {
        width: 60% !important; 
        height: auto !important;
    }
    .class_fondologo {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; 
        padding: 10px 20px !important;
        width: 100% !important;
        position: relative; 
    }
    .class_hamburguesa {
        display: flex !important;
        position: fixed !important; 
        right: 20px !important;      
        top: 22px !important;        
        z-index: 98;               
        margin: 0 !important;
    }
    .class_menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 250px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        transition: 0.5s;
        z-index: 97;
        margin-top: 0;
        padding-top: 80px;
        overflow: hidden;
        display: flex;             
        flex-direction: column;    
        overflow-y: auto;
        box-sizing: border-box;
        touch-action: none; 
        overscroll-behavior: none; 
    }
    .class_menu.active {
        right: 0; 
    }
    .class_menuprincipal {
        flex: 0 0 auto; 
    }
    .class_menuprincipal_subdiv {
        flex-direction: column;
        align-items: flex-start !important; 
        padding-left: 30px;
        gap: 15px !important; 
        justify-content: flex-start !important;
    }
    .p_menu {
        margin: 0 !important;
        padding-top: 10px;
    }
    .class_submenucategorias, .class_submenutrabajos {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 5px;
        margin-top: 5px !important;
    }
    .class_submenucarteles {
        margin-top: 15px !important;
        padding-left: 15px !important;
    }
    .class_submenueventos {
        padding-left: 15px !important;
    }
    #id_div_menuCat, #id_div_menuTrabajos {
        margin-top: 0 !important;
        padding-top: 0 !important;
        height: auto !important;
        min-height: unset !important;
    }
    .class_submenuportafolio, .class_submenutrabajos {
        position: relative !important;
        margin-top: 15px !important; 
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .class_submenucategorias span[style*="opacity:0.5"], 
    .class_submenutrabajos span[style*="opacity:0.5"] {
        display: none !important;
    }
    .span_submenu {
        font-size: 1.1rem; 
        padding: 5px 0;
        display: block; 
    }
    .class_inicioderecha {
        width: 95% !important;
        margin: 20px auto !important;
        flex: none;
        min-width: unset;
    }
    .class_miniaturas_inicio {
        display: flex;
        flex-direction: column; 
        height: auto !important;
        min-height: unset;
        gap: 15px;
        justify-content: center;
        width: 100%;
        margin-left: auto;
        margin-top: auto;
    }
    .class_img_miniaturainicio {
        width: 95% !important; 
        height: auto !important; 
        max-width: 95%;
        margin: 0;
        border-radius: 6px;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
        flex: 0 1 auto;
        object-fit: cover;
    }
    .contenedor_general_galeria {
        width: 100%;
        margin-top: 0; 
    }
    .class_div_galeria {
        padding: 10px;   
        display: flex;
        flex-direction: column; 
        gap: 15px;
        width: 90%;
        margin: auto;
        position: relative;
    }
    .class_div_img_galeria {
        width: 100% !important; 
        height: auto !important; 
        flex: none !important;  
        margin: 0;
        overflow: hidden;
    }
    .class_img_galeria {
        width: 100% !important;
        height: auto !important; 
        object-fit: contain;     
        border-radius: 4px;
        display: block;
    }
    .img_miniatura {
        filter: grayscale(0%) brightness(100%); 
        transition: all 0.3s ease-in-out;
        cursor: pointer; 
        letter-spacing: 2px; 
        font-weight: bold; 
        white-space: nowrap;
    }
    .class_div_carteles {
        padding: 0 !important; 
        width: 100% !important;
        overflow-x: hidden; 
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        min-height: 200px;
    }
    .class_subdiv_carteles {
        display: flex;
        flex-direction: column; 
        align-items: center;    
        justify-content: center;
        width: 100% !important;
        margin: 0 !important;   
        gap: 20px;
    }
    .class_div_cartel {
        width: 95% !important;
        max-width: 100vw;       
        display: flex;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 1 auto;
        align-items: flex-start;
    }
    .class_img_cartel {
        width: 95% !important; 
        height: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: block;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }
    .class_menutrabajos {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        overflow-y: auto;
        min-height: 200px;
    }
    .class_menutrabajos_subdiv {
        gap: 20px;
        padding: 10px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .class_tarjetatrabajo {
        width: 95% !important; 
        max-width: 95%;
        margin: 0 auto;        
        box-sizing: border-box; 
        background-color: rgba(34, 34, 34, 0.6);
        padding: 10px;
        border-radius: 8px;
        font-size: 0.9em;
        text-align: left;
        transition: transform 0.2s;
    }
    .class_img_tarjetatrabajo {
        height: auto !important; 
        max-height: 450px;       
        width: 100% !important;
        object-fit: cover;
        object-position: top;
        border-radius: 4px;
        margin-bottom: 8px;
    }
    .class_div_videoevento {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 15px;
    }
    .class_div_videoevento > div[style*="flex: 2"] {
        width: 95% !important;
        max-width: 95% !important;
        min-width: unset !important;
        margin-bottom: 20px;
    }
    .class_textoeventocentrado, 
    .class_textoeventoderecha {
        width: 95% !important;
        max-width: 95% !important;
        min-width: unset !important;
        flex: none !important;
        margin: 0 auto 20px auto;
        padding: 15px;
        border-radius: 8px;
        color: white;
    }
    .class_textoeventocentrado { font-size: 1em; text-align: center; }
    .class_textoeventoderecha { font-size: 0.9em; text-align: center; }

    .class_div_imgevento {
        width: 100% !important;
        height: auto !important; 
        flex: none !important;
        max-width: 100% !important;
        min-width: unset !important;
        margin-bottom: 10px;
    }
    .class_img_evento {
        width: 100% !important;
        height: auto !important;
        object-fit: contain; 
        display: block;
    }
    .class_numimg_evento {
        font-size: 14px;
        padding: 4px 8px;
    }
    .class_div_galeria, 
    .class_div_carteles, 
    .class_menutrabajos, 
    .class_div_contenedorevento {
        padding-top: 20px !important; 
        margin-top: 0;
    }
    .class_div_contacto {
        margin: 20px auto;
        padding: 20px 15px;
        width: 85%;
        max-width: 700px;
        border-radius: 12px;
        text-align: center;
        color: #ffffff;
        font-family: sans-serif;
    }
    .class_piebajo {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .class_piebajoizquierda {
        justify-content: center;
    }
    .class_piebajoderecha {
        font-size: 0.75rem;
    }
    .class_piemenumovil {
        width: 100%; 
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: auto;
        padding: 20px 0 60px 0;   
        flex-shrink: 0;           
    }
    .class_hrpiemovil {
        opacity: 0.2;
        width: 80%;
        margin: 0 auto 15px auto;
    }
    .class_piebajoizquierdamovil {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-bottom: 15px;
    }
    .class_piebajoderechamovil {
        width: 90%;
        text-align: center;
        font-size: 0.75rem;
        color: rgba(255,255,255,0.5);
        margin: 0 auto;
    }
    .class_modal-content {
        width: 95%;
    }
}

/* ==========================================================================
   BLOQUE RESPONSIVO EXTRA: PANTALLAS PEQUEÑAS (max-width: 400px)
   ========================================================================== */
@media (max-width: 400px) {
    .class_div_img_galeria, .class_div_imgevento {
        flex: 1 1 90%; 
        height: 200px;
    }
}

/* ==========================================================================
   PARCHE CORRECTOR: DISPOSITIVOS MÓVILES EN MODO HORIZONTAL (LANDSCAPE)
   ========================================================================== */
@media (max-height: 550px) and (orientation: landscape) {
    :root body {
        display: block !important;
        overflow-x: hidden !important;
    }
    :root body #id_div_contenido {
        display: block !important;
        min-height: auto !important;
        height: auto !important;
        padding-top: 40px !important; 
    }
    :root body .contenedor_general_galeria {
        margin-top: 0 !important;
        padding-top: 0 !important;
        display: block !important;
        width: 100% !important;
    }
    :root body .class_div_galeria {
        display: flex !important;
        flex-direction: row !important; 
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 10px !important;
        margin-top: 0 !important;
    }
	
	:root body .class_submenutrabajos, .class_div_carteles {
		margin-top:0 !important;
	}
    :root body .class_div_img_galeria {
        width: 48% !important; 
        height: 140px !important; 
        flex: none !important;
        margin: 0 !important;
    }
    :root body .class_img_galeria {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    :root body .linea_separadora {
        display: none !important;
    }
}
