/*
 Theme Name:   Perfect Child
 Template:     perfect
*/



/* ==========================================================================
   LIMPIEZA RADICAL DEL SLIDER DE PORTADA NATIVO (ELIMINAR IMÁGENES DEMO)
   ========================================================================== */

/* 1. Ocultar CUALQUIER imagen del slider que contenga "demo", "slider" o venga de la carpeta del tema */
#slidera img[src*="/themes/perfect/"],
#slidera img[src*="perfect/images/"],
#slidera img[src*="demo"],
.nivoSlider img[src*="demo"],
.nivoSlider img[src*="/images/slider/"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    pointer-events: none !important;
}

/* 2. Forzar que las imágenes reales que TÚ subes (en /uploads/) se muestren impecables */
#slidera img[src*="/uploads/"],
.nivoSlider img[src*="/uploads/"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}

/* 3. Evitar que los contenedores vacíos de las demos generen saltos o espacios en blanco */
#slidera .nivo-slice,
#slidera .nivo-box {
    display: none !important;
    opacity: 0 !important;
}

/* ==========================================================================
   DISEÑO MODERNO Y ACCESIBLE PARA LAS CATEGORÍAS DEL MUSEO VIRTUAL
   ========================================================================== */



/* Contenedor en cuadrícula flexible */
.museo-grid {
    display: grid !important; /* CORREGIDO: Faltaba activar el modo grid */
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0 !important;
}

/* Tarjetas individuales */
.museo-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Animación sutil al pasar el cursor */
.museo-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Altura unificada para las imágenes de los artistas */
.museo-card .post_image, 
.museo-card .imgwrap {
    width: 100% !important;
    height: 210px !important;
    margin: 0 !important;
}

.museo-card .imgwrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Distribución del texto dentro de la tarjeta */
.museo-card .post_content {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Títulos más claros y accesibles */
.museo-card .postitle {
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
}

.museo-card .postitle a {
    color: #1a202c !important;
    text-decoration: none !important;
}

.museo-card .postitle a:hover {
    color: #3182ce !important;
}

/* Fechas y metadatos limpios */
.museo-card .single_metainfo {
    font-size: 13px !important;
    color: #718096 !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
}

/* Tipografía optimizada para lectura cómoda */
.museo-card .museo-excerpt p,
.museo-card .museo-excerpt {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #4a5568 !important;
    margin-bottom: 15px !important;
}

/* Botón "Leer más" de aspecto actual */
.museo-card .blog_mo {
    margin-top: auto !important;
}

.museo-card .blog_mo a {
    display: inline-block !important;
    background: #edf2f7 !important;
    color: #2d3748 !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease !important;
}

.museo-card .blog_mo a:hover {
    background: #3182ce !important;
    color: #ffffff !important;
}

/* ==========================================================================
   DISEÑO DE LECTURA DEL POST INDIVIDUAL (SINGLE POST)
   ========================================================================== */
.museo-single-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 35px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
}

.museo-single-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
}

.museo-single-meta {
    border-bottom: 1px solid #edf2f7 !important;
    padding-bottom: 15px !important;
    margin-bottom: 25px !important;
}

.museo-single-meta .meta-item {
    margin-right: 20px !important;
    font-size: 14px !important;
    color: #718096 !important;
}

/* Espacio de lectura súper accesible */
.museo-single-body {
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #2d3748 !important;
}

.museo-single-body p {
    margin-bottom: 20px !important;
}

/* ==========================================================================
   REJILLA VISUAL PARA LA PÁGINA DE CATEGORÍAS
   ========================================================================== */
.museo-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 35px !important;
    padding: 30px 0 !important;
}

.category-display-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.category-display-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.category-card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-display-card:hover .category-card-img img {
    transform: scale(1.06);
}

.category-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category-card-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 10px 0;
}

.category-card-content p {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.post-count-badge {
    align-self: flex-start;
    background: #edf2f7;
    color: #4a5568;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.btn-enter-room {
    display: block;
    text-align: center;
    background: #3182ce;
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-enter-room:hover {
    background: #2b6cb0;
}

/* ==========================================================================
   ESTILIZADO GENERAL DE LA BARRA LATERAL (SIDEBAR)
   ========================================================================== */
#sidebar.home_sidebar {
    background: transparent !important;
    padding: 0 !important;
}

#sidebar .widgets > div,
#sidebar .widgets > section,
#sidebar .widgets .widget {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02) !important;
}

#sidebar .widgettitle, 
#sidebar .widget-title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a202c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid #3182ce !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

#sidebar .widgets ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#sidebar .widgets ul li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

#sidebar .widgets ul li:last-child {
    border-bottom: none !important;
}

#sidebar .widgets ul li a {
    color: #4a5568 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#sidebar .widgets ul li a:hover {
    color: #3182ce !important;
}

#sidebar .search-form,
#sidebar #searchform {
    display: flex !important;
    align-items: center !important;
}

#sidebar .search-form input[type="search"],
#sidebar #searchform input[type="text"] {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #f7fafc !important;
}

#sidebar .search-form input[type="submit"],
#sidebar #searchform input[type="submit"] {
    background: #3182ce !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    margin-left: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   FORZAR DISEÑO MODERNO EN LA PÁGINA PRINCIPAL DEL BLOG
   ========================================================================== */

/* CORREGIDO: Selectores ultra-específicos para evitar roturas colaterales */
.blog .lay4_inner {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0 !important;
}

.blog .lay4_inner .post {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.blog .lay4_inner .post:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08) !important;
}

.blog .lay4_inner .post .post_image, 
.blog .lay4_inner .post .imgwrap {
    width: 100% !important;
    height: 220px !important;
    margin: 0 !important;
}

.blog .lay4_inner .post .imgwrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.blog .lay4_inner .post .post_content {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.blog .lay4_inner .post .postitle {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
}

.blog .lay4_inner .post .postitle a {
    color: #1a202c !important;
    text-decoration: none !important;
}

.blog .lay4_inner .post .postitle a:hover {
    color: #dd3333 !important;
}

.blog .lay4_inner .post .single_metainfo {
    font-size: 13px !important;
    color: #718096 !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
}

.blog .lay4_inner .post .post_content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #4a5568 !important;
}

.blog .lay4_inner .post .blog_mo {
    padding: 0 22px 22px 22px !important;
    margin-top: auto !important;
}

.blog .lay4_inner .post .blog_mo a {
    display: block !important;
    text-align: center !important;
    background: #f7fafc !important;
    color: #4a5568 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.blog .lay4_inner .post .blog_mo a:hover {
    background: #dd3333 !important;
    color: #ffffff !important;
    border-color: #dd3333 !important;
}

/* ==========================================================================
   NUEVA NAVEGACIÓN ANTERIOR / SIGUIENTE (CORREGIDA SIN SOLAPAMIENTO)
   ========================================================================== */
#ast_nextprev {
    display: flex !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    clear: both !important; 
    float: none !important;
    margin-top: 60px !important; 
    padding-top: 30px !important;
    border-top: 1px solid #edf2f7 !important;
    position: relative !important;
    width: 100% !important;
}

#ast_nextprev .div_middle {
    display: none !important;
}

#ast_nextprev .nav-box {
    width: 48% !important;
    background: #f7fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02) !important;
    transition: all 0.25s ease !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

#ast_nextprev .nav-box:hover {
    background: #ffffff !important;
    border-color: #dd3333 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

#ast_nextprev .nav-box > a {
    display: block !important;
    color: #718096 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    position: relative !important;
    line-height: 1.4 !important;
}

#ast_nextprev .ast-next {
    text-align: right !important;
}

#ast_nextprev .nav-box > a span {
    display: block !important;
    color: #1a202c !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-top: 5px !important;
}

#ast_nextprev .nav-box img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e0 !important;
}

#ast_nextprev .ast-prev > a {
    padding-left: 65px !important;
}

#ast_nextprev .ast-prev img {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
}

#ast_nextprev .ast-prev .fa-angle-left {
    margin-right: 5px !important;
}

#ast_nextprev .navbox-noimg > a {
    padding-left: 0 !important;
}

#ast_nextprev .ast-next .fa-angle-right {
    margin-left: 5px !important;
}

#ast_nextprev .prev_cat_name,
#ast_nextprev .next_cat_name {
    margin-top: auto !important;
    padding-top: 8px !important;
    font-size: 11px !important;
}

#ast_nextprev .prev_cat_name a,
#ast_nextprev .next_cat_name a {
    display: inline-block !important;
    background: #edf2f7 !important;
    color: #4a5568 !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

#ast_nextprev .prev_cat_name a:hover,
#ast_nextprev .next_cat_name a:hover {
    background: #dd3333 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   FORZAR DISEÑO MODERNO EN LOS ARCHIVOS CRONOLÓGICOS (AÑOS / MESES)
   ========================================================================== */

/* 1. Transformamos la lista antigua del archivo en la rejilla de tarjetas */
.archive .lay4_inner {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)) !important;
    gap: 30px !important;
    padding: 20px 0 !important;
}

/* 2. Convertimos cada post del archivo en una tarjeta limpia */
.archive .lay4_inner .post {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

/* Efecto al pasar el ratón */
.archive .lay4_inner .post:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08) !important;
}

/* 3. Ajustamos las imágenes para los archivos */
.archive .lay4_inner .post .post_image, 
.archive .lay4_inner .post .imgwrap {
    width: 100% !important;
    height: 220px !important;
    margin: 0 !important;
}

.archive .lay4_inner .post .imgwrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 4. Ordenamos el texto interior en los archivos */
.archive .lay4_inner .post .post_content {
    padding: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.archive .lay4_inner .post .postitle {
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
}

.archive .lay4_inner .post .postitle a {
    color: #1a202c !important;
    text-decoration: none !important;
}

.archive .lay4_inner .post .postitle a:hover {
    color: #dd3333 !important;
}

.archive .lay4_inner .post .single_metainfo {
    font-size: 13px !important;
    color: #718096 !important;
    border-bottom: 1px solid #edf2f7 !important;
    padding-bottom: 8px !important;
    margin-bottom: 15px !important;
}

.archive .lay4_inner .post .post_content p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #4a5568 !important;
}

/* 5. El botón "Read More" en las tarjetas de archivos */
.archive .lay4_inner .post .blog_mo {
    padding: 0 22px 22px 22px !important;
    margin-top: auto !important;
}

.archive .lay4_inner .post .blog_mo a {
    display: block !important;
    text-align: center !important;
    background: #f7fafc !important;
    color: #4a5568 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.archive .lay4_inner .post .blog_mo a:hover {
    background: #dd3333 !important;
    color: #ffffff !important;
    border-color: #dd3333 !important;
}

/* ==========================================================================
   DISEÑO MODERNO PARA LOS BOTONES DE REDES SOCIALES (RRSS)
   ========================================================================== */

/* Contenedor flexible de las redes sociales */
ul.wp-block-social-links {
    gap: 15px !important;
    padding: 10px 0 !important;
    margin: 15px 0 !important;
}

/* El botón/tarjeta contenedor de cada red social */
ul.wp-block-social-links li.wp-social-link {
    background: #f7fafc !important; /* Fondo gris suave inicial */
    border: 1px solid #e2e8f0 !important;
    border-radius: 30px !important; /* Forma de píldora redondeada */
    padding: 8px 18px !important;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* El enlace interior que alinea el SVG y el texto */
ul.wp-block-social-links li.wp-social-link a.wp-block-social-link-anchor {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    gap: 10px !important; /* Separación fija entre el logo y la palabra */
}

/* El icono SVG de la red social */
ul.wp-block-social-links li.wp-social-link svg {
    fill: #4a5568 !important; /* Color gris oscuro de base */
    width: 18px !important;
    height: 18px !important;
    transition: fill 0.2s ease !important;
}

/* El texto de la etiqueta (YouTube, Facebook...) */
ul.wp-block-social-links li.wp-social-link .wp-block-social-link-label {
    color: #4a5568 !important; /* Texto a juego con el icono */
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: color 0.2s ease !important;
}

/* --------------------------------------------------------------------------
   EFECTOS HOVER INTERACTIVOS (AL PASAR EL RATÓN)
   -------------------------------------------------------------------------- */

/* Efecto flotante general */
ul.wp-block-social-links li.wp-social-link:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Hover específico para YOUTUBE (Se vuelve rojo oficial de YT) */
ul.wp-block-social-links li.wp-social-link-youtube:hover {
    background: #ff0000 !important;
    border-color: #ff0000 !important;
}

/* Hover específico para FACEBOOK (Se vuelve azul oficial de FB) */
ul.wp-block-social-links li.wp-social-link-facebook:hover {
    background: #1877f2 !important;
    border-color: #1877f2 !important;
}

/* Cambio de color del texto y del icono a blanco cuando pasas el ratón por encima */
ul.wp-block-social-links li.wp-social-link:hover svg {
    fill: #ffffff !important;
}

ul.wp-block-social-links li.wp-social-link:hover .wp-block-social-link-label {
    color: #ffffff !important;
}

/* ==========================================================================
   CORRECCIÓN QUIRÚRGICA: ADIÓS DOBLE CAJA Y SEPARACIÓN DE TÍTULOS
   ========================================================================== */

/* 1. Eliminamos los bordes, fondos y sombras de las cajas internas repetidas */
#sidebar .widgets .wp-block-group__inner-container,
#sidebar .widgets .wp-block-group > div,
.home_sidebar .wp-block-group__inner-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

/* 2. Unificar bloques seguidos (Título + Contenido) */
/* Si un bloque de grupo va justo después de otro, le quitamos el margen superior para acercarlos */
#sidebar .widgets .wp-block-group + .wp-block-group,
.home_sidebar .wp-block-group + .wp-block-group {
    margin-top: -15px !important; /* Acerca la caja de abajo a la de arriba */
}

/* 3. Ajuste fino para los botones de RRSS dentro de su bloque */
#sidebar ul.wp-block-social-links {
    justify-content: center !important; /* Centra los botones dentro de la tarjeta */
    margin: 0 !important;
    padding: 5px 0 0 0 !important;
}

/* ==========================================================================
   REDUCIR HUECO BLANCO EN CABECERAS DE CATEGORÍAS Y ARCHIVOS
   ========================================================================== */

/* Reducimos drásticamente el espacio interno de la cabecera */
.page_blog_wrap .skt_page_header,
.category .skt_page_header,
.archive .museo-archive-header {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important; /* Acerca la cuadrícula al título */
}

/* Ajustamos el contenedor de la rejilla para eliminar espacios muertos superiores */
.page_blog_wrap .lay4 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.museo-grid {
    padding-top: 0 !important; /* Sube las tarjetas al máximo */
}

/* ==========================================================================
   ESTILOS DEL CARRUSEL PERSONALIZADO DE PORTADA (SHORTCODE)
   ========================================================================== */

.museo-carrusel-container {
    padding: 20px 10px 40px 10px !important;
    clear: both !important;
}

/* Tarjeta individual del slider */
.carrusel-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Imagen de la tarjeta */
.carrusel-img, .carrusel-img img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: block !important;
}

/* Contenido de la tarjeta */
.carrusel-content {
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.carrusel-content h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
}

.carrusel-content h3 a {
    color: #1a202c !important;
    text-decoration: none !important;
}

.carrusel-content h3 a:hover {
    color: #dd3333 !important; /* Tu rojo */
}

.carrusel-meta {
    font-size: 12px !important;
    color: #718096 !important;
    margin-bottom: 15px !important;
}

/* Botón de acción rápido */
.carrusel-btn {
    margin-top: auto !important;
}

.carrusel-btn a {
    display: block !important;
    text-align: center !important;
    background: #f7fafc !important;
    color: #4a5568 !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.2s ease !important;
}

.carrusel-btn a:hover {
    background: #dd3333 !important; /* Tu rojo */
    color: #ffffff !important;
    border-color: #dd3333 !important;
}

/* Ajuste fino de las flechas de Splide para que no se claven en los bordes */
.splide__arrow {
    background: #ffffff !important;
    border: 1px solid #cbd5e0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    opacity: 1 !important;
}
.splide__arrow svg {
    fill: #1a202c !important;
}
.splide__pagination__page.is-active {
    background: #dd3333 !important; /* Punto activo rojo */
}

/* ==========================================================================
   CARRUSEL RECIENTES A PANTALLA COMPLETA (100% WINDOW WIDTH)
   ========================================================================== */

.museo-modern-slider.full-width-slider {
    width: 100vw !important;
    max-width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    border-radius: 0 !important; /* Estilo banner total, sin esquinas redondeadas en los extremos */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    clear: both !important;
}

/* La tarjeta/contenedor aumenta su altura en PC para lucir imponente */
.modern-slide-card {
    width: 100% !important;
    height: 650px !important; /* Altura ideal cinematográfica para pantalla completa */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative !important;
}

/* Ajustamos el degradado para el formato panorámico gigante */
.modern-slide-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%) !important;
    display: flex !important;
    align-items: flex-end !important; 
    padding: 60px 10% !important; /* Más margen interno para alinearse con el contenido visual */
}

/* Título un poco más grande para pantallas panorámicas */
.modern-slide-title {
    font-size: 44px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
    margin: 0 0 20px 0 !important;
    text-shadow: 0 3px 6px rgba(0,0,0,0.4) !important;
}

/* Desplazamos ligeramente los controles laterales para que no queden pegados al borde de la pantalla */
.museo-modern-slider .splide__arrow--prev { left: 30px !important; }
.museo-modern-slider .splide__arrow--next { right: 30px !important; }
.museo-modern-slider .splide__pagination { bottom: 25px !important; }




/* ==========================================================================
   1. CABECERA ROJA FIJA PARA TODA LA WEB (PC Y MÓVIL)
   ========================================================================== */

.header.type2, 
.header,
#header {
    background-color: #dd3333 !important;
    background-image: none !important;
    position: relative !important; /* Bloque físico sólido: empuja todo hacia abajo */
    width: 100% !important;
    max-width: 100% !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.head_inner {
    position: relative !important;
    z-index: 10000 !important;
    display: block !important;
}

/* ==========================================================================
   2. CONTROL Y ESTILOS DEL CARRUSEL SPLIDE (SHORTCODE)
   ========================================================================== */

/* Nos aseguramos de que el contenedor de Splide empiece limpio debajo del menú */
.home .museo-modern-slider,
.home .splide {
    margin-top: 0 !important;
    position: relative !important;
    display: block !important;
}

/* Caja de textos semiopaco del carrusel */
.modern-slide-content {
    color: #ffffff !important;
    max-width: 650px !important;
    background: rgba(0, 0, 0, 0.65) !important; 
    padding: 30px 35px !important;
    border-radius: 12px !important;
    border-left: 5px solid #dd3333 !important; 
    backdrop-filter: blur(8px) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.modern-slide-title {
    font-size: 38px !important;
    margin: 0 0 20px 0 !important;
    color: #ffffff !important;
}

/* ==========================================================================
   3. ESTILOS GENERALES DEL MENÚ (TEXTOS BLANCOS)
   ========================================================================== */

#topmenu {
    background: transparent !important; 
    padding: 0 !important;
    border-radius: 0 !important;
}

#topmenu ul.menu > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

/* Hover en amarillo pop */
#topmenu ul.menu > li:hover > a { 
    color: #fcca30 !important; 
}

#topmenu ul li a .menu_arrow i {
    color: #ffffff !important;
}

/* Desplegables */
#topmenu ul.sub-menu {
    background-color: #ffffff !important;
    border-top: 3px solid #fcca30 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
    border-radius: 8px !important;
}
#topmenu ul.sub-menu li a { color: #1a202c !important; }
#topmenu ul.sub-menu li a:hover { background-color: #f7fafc !important; color: #dd3333 !important; }


/* ==========================================================================
   4. ADAPTACIÓN PARA DISPOSITIVOS MÓVILES (MÁXIMO 768PX)
   ========================================================================== */

@media screen and (max-width: 768px) {
    
    /* Logo compacto a 80px */
    .logo img,
    .logo a img,
    .logo,
    .logo a.logoimga {
        max-width: 80px !important; 
        height: auto !important;
        display: block !important;
        margin: 5px 0 0 10px !important;
    }

    /* Menú hamburguesa accesible */
    #simple-menu {
        position: absolute !important;
        top: 15px !important; 
        right: 15px !important;
        z-index: 10005 !important;
        background: rgba(0, 0, 0, 0.2) !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
    }
    #simple-menu i { color: #ffffff !important; font-size: 22px !important; }

    /* Ajustes del carrusel Splide en móvil */
    .museo-modern-slider .modern-slide-card {
        height: 400px !important;
    }
    .modern-slide-content {
        padding: 20px !important;
        margin: 0 15px !important;
        max-width: calc(100% - 30px) !important;
    }
    .modern-slide-title { font-size: 22px !important; }
}