/* Barra Lateral */
/* 1. Convierte la barra lateral completa de la columna en la tarjeta verde menta unificada */
.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part {
    background-color: #f0f7f4 !important; /* Fondo verde menta muy pálido y suave */
    border: 1px solid #c2ded2 !important;  /* Borde verde a juego */
    border-radius: 20px !important;        /* Bordes redondeados */
    padding: 35px 24px !important;         /* Espacio interno para que respire */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important; /* Sombra suave fija */
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;         /* Centra todos los bloques internos */
    justify-content: flex-start !important;
    gap: 45px !important;                  /* Separación uniforme de 45px entre elementos */
    height: fit-content !important;        /* Se ajusta perfectamente al contenido */
    width: 100% !important;
}

/* 2. Forzar que todos los contenedores y subgrupos nativos de WP sean transparentes */
.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part .wp-block-group {
    background-color: transparent !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

/* 3. Centrar y controlar uniformemente el tamaño de ambos logotipos (Cátedra y FEDER) */
.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part img,
.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part .wp-block-image img {
    max-width: 80% !important;             
    width: 80% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;             
    border-radius: 8px !important;
}

/* 4. Buscador a ancho completo con texto alineado a la izquierda */
.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part form.wp-block-search,
.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part .wp-block-search__inside-wrapper {
    width: 100% !important;                
    max-width: 100% !important;
}

.wp-block-column.wp-block-column-is-layout-flow > .wp-block-template-part .wp-block-search__input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 30px !important;        
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    outline: none !important;
    width: 100% !important;                
    box-sizing: border-box !important;
    background-color: #ffffff !important;  
    text-align: left !important;
}

/* Fin Barra Lateral */

/* Botones SM_ESCUCHA 360 */
.botones-sm_escucha360 {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important; /* <--- EVITA QUE SE SALTEN DE FILA */
    gap: 15px !important; /* <--- SEPARACIÓN REDUCIDA PARA QUE QUEPAN */
    margin-top: 35px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

/* Estilo base de los botones */
.botones-sm_escucha360 .wp-block-button__link {
    color: #ffffff !important;
    font-size: 14px !important; /* <--- TEXTO LIGERAMENTE MÁS PEQUEÑO */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 12px 20px !important; /* <--- MÁRGENES INTERNOS AJUSTADOS */
    border-radius: 50px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important; /* <--- EVITA QUE EL TEXTO SE ROMPA EN DOS LÍNEAS */
}

/* --- BOTÓN 1: Talleres (Color Coral cálido) --- */
.botones-sm_escucha360 .btn_talleres .wp-block-button__link {
    background: linear-gradient(135deg, #ff7043 0%, #e64a19 100%) !important;
    box-shadow: 0 8px 18px rgba(255, 112, 67, 0.3) !important;
}

/* Iconos antes y después para Talleres */
.botones-sm_escucha360 .btn_talleres .wp-block-button__link::before {
    content: "💡 ";
    margin-right: 4px;
}
.botones-sm_escucha360 .btn_talleres .wp-block-button__link::after {
    content: " 💡";
    margin-left: 4px;
}

.botones-sm_escucha360 .btn_talleres .wp-block-button__link:hover {
    background: linear-gradient(135deg, #e64a19 0%, #bf360c 100%) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 22px rgba(230, 74, 25, 0.4) !important;
}

/* --- BOTÓN 2: Comunidad (Lila / Violeta) --- */
.botones-sm_escucha360 .btn_comunidad .wp-block-button__link {
    background: linear-gradient(135deg, #7e57c2 0%, #5e35b1 100%) !important;
    box-shadow: 0 8px 18px rgba(126, 87, 194, 0.3) !important;
}

/* Iconos antes y después para Comunidad */
.botones-sm_escucha360 .btn_comunidad .wp-block-button__link::before {
    content: "💬 ";
    margin-right: 4px;
}
.botones-sm_escucha360 .btn_comunidad .wp-block-button__link::after {
    content: " 💬";
    margin-left: 4px;
}

.botones-sm_escucha360 .btn_comunidad .wp-block-button__link:hover {
    background: linear-gradient(135deg, #5e35b1 0%, #311b92 100%) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 22px rgba(94, 53, 177, 0.4) !important;
}

/* --- BOTÓN 3: Reunión (Verde Azulado / Turquesa) --- */
.botones-sm_escucha360 .btn_reunion .wp-block-button__link {
    background: linear-gradient(135deg, #26a69a 0%, #00796b 100%) !important;
    box-shadow: 0 8px 18px rgba(38, 166, 154, 0.3) !important;
}

/* Iconos antes y después para Reunión */
.botones-sm_escucha360 .btn_reunion .wp-block-button__link::before {
    content: "🤝🏼 ";
    margin-right: 4px;
}
.botones-sm_escucha360 .btn_reunion .wp-block-button__link::after {
    content: " 🤝🏼";
    margin-left: 4px;
}

.botones-sm_escucha360 .btn_reunion .wp-block-button__link:hover {
    background: linear-gradient(135deg, #00796b 0%, #004d40 100%) !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 22px rgba(0, 121, 107, 0.4) !important;
}

/* Adaptación para móviles (Aquí sí se apilarán en vertical para que no se aplasten) */
@media (max-width: 650px) {
    .botones-sm_escucha360 {
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .botones-sm_escucha360 .wp-block-button {
        width: 100% !important;
    }

    .botones-sm_escucha360 .wp-block-button__link {
        width: 100% !important;
        display: block !important;
        padding: 14px 20px !important;
        font-size: 16px !important;
    }
}
/* Fin BOTONES SM_ESCUCHA 360 */

/* Botones Reunion */
/* 1. Contenedor de los botones (Actualizado a tu clase correcta) */
.btn_reunion_contenedor {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: nowrap !important; 
    gap: 18px !important; /* Separación amplia entre ellos */
    margin-top: 35px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

/* 2. Estilo base mejorado (Botones grandes y corpulentos) */
.btn_reunion_contenedor .wp-block-button__link {
    color: #ffffff !important;
    font-size: 16px !important; /* Letra con más cuerpo */
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 16px 28px !important; /* Relleno grande (arriba/abajo y lados) */
    border-radius: 50px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    text-decoration: none !important;
    text-align: center !important;
    white-space: nowrap !important; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important; /* Sombra base para dar volumen */
}

/* --- BOTÓN INTERNO 1: Correo Reunión --- */
.btn_reunion_contenedor .btn_correo_reunion .wp-block-button__link {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%) !important;
    box-shadow: 0 8px 20px rgba(41, 182, 246, 0.35) !important;
}

.btn_reunion_contenedor .btn_correo_reunion .wp-block-button__link::before {
    content: "✉️ ";
    margin-right: 6px;
    font-size: 18px; /* Icono grande */
}
.btn_reunion_contenedor .btn_correo_reunion .wp-block-button__link::after {
    content: " ✉️";
    margin-left: 6px;
    font-size: 18px;
}

.btn_reunion_contenedor .btn_correo_reunion .wp-block-button__link:hover {
    background: linear-gradient(135deg, #0288d1 0%, #01579b 100%) !important;
    transform: translateY(-5px) scale(1.04) !important; /* Elevación dinámica */
    box-shadow: 0 14px 26px rgba(2, 136, 209, 0.45) !important;
}

/* --- BOTÓN INTERNO 2: Instagram Reunión --- */
.btn_reunion_contenedor .btn_instagram_reunion .wp-block-button__link {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35) !important;
}

.btn_reunion_contenedor .btn_instagram_reunion .wp-block-button__link::before {
    content: "📸 ";
    margin-right: 6px;
    font-size: 18px; /* Icono grande */
}
.btn_reunion_contenedor .btn_instagram_reunion .wp-block-button__link::after {
    content: " 📸";
    margin-left: 6px;
    font-size: 18px;
}

.btn_reunion_contenedor .btn_instagram_reunion .wp-block-button__link:hover {
    background: linear-gradient(135deg, #e6683c 0%, #dc2743 30%, #cc2366 60%, #bc1888 100%) !important;
    transform: translateY(-5px) scale(1.04) !important;
    box-shadow: 0 14px 26px rgba(204, 35, 102, 0.45) !important;
}

/* 3. Adaptación para móviles (Se apilan verticalmente para no pisarse) */
@media (max-width: 650px) {
    .btn_reunion_contenedor {
        flex-wrap: wrap !important;
        gap: 15px !important;
    }

    .btn_reunion_contenedor .wp-block-button {
        width: 100% !important;
    }

    .btn_reunion_contenedor .wp-block-button__link {
        width: 100% !important;
        display: block !important;
        padding: 16px 20px !important;
        font-size: 17px !important;
    }
}
/* Fin Botones Reunion */

/* Talleres SM_ESCUCHA 360 */

/* 1. Rejilla a 2 columnas alineada arriba */
.tarjetas-talleres .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    align-items: start !important; /* Fuerza a que la rejilla empiece arriba */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 650px) {
    .tarjetas-talleres .wp-block-post-template {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* 2. Tarjeta blanca (Elimina cualquier margen superior propio de WordPress) */
.tarjetas-talleres .wp-block-post-template > li {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 18px !important;
    margin: 0 !important; /* <--- ELIMINA EL DESNIVEL */
    align-self: start !important; /* <--- ALINEA TODAS LAS TARJETAS ARRIBA */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.tarjetas-talleres .wp-block-post-template > li:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

/* 3. Título del Taller */
.tarjetas-talleres .wp-block-post-title {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    color: #1a202c !important;
}

.tarjetas-talleres .wp-block-post-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* 4. Fecha */
.tarjetas-talleres .wp-block-post-date {
    font-size: 0.825rem !important;
    font-weight: 600 !important;
    color: #718096 !important;
    margin-bottom: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* 5. Imagen Destacada (Grande, nítida y a ancho completo) */
.tarjetas-talleres .wp-block-post-featured-image {
    width: 100% !important;
    margin: 0 0 16px 0 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    background: transparent !important;
}

.tarjetas-talleres .wp-block-post-featured-image img {
    width: 100% !important;
    height: 170px !important; /* Foto grande y proporcionada */
    object-fit: cover !important; /* Llena el recuadro sin marcos grises */
    object-position: center !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 12px !important;
    display: block !important;
}

/* 6. Botón */
.tarjetas-talleres .wp-block-read-more {
    margin-top: auto !important;
    background-color: #005f73 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 10px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
}

.tarjetas-talleres .wp-block-read-more:hover {
    background-color: #004959 !important;
    color: #ffffff !important;
}

/* 7. Contenedor centrado y separado de las tarjetas */
.tarjetas-talleres .wp-block-query-pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 35px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

/* 8. Todos los elementos (números, botones anterior/siguiente) convertidos en botones */
.tarjetas-talleres .wp-block-query-pagination a,
.tarjetas-talleres .wp-block-query-pagination span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 14px !important;
    min-width: 38px !important;
    height: 38px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #2d3748 !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

/* 9. Efecto al pasar el ratón por encima */
.tarjetas-talleres .wp-block-query-pagination a:hover {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #005f73 !important;
    transform: translateY(-2px) !important;
}

/* 10. Página ACTIVA (en la que está navegando el usuario) */
.tarjetas-talleres .wp-block-query-pagination .current,
.tarjetas-talleres .wp-block-query-pagination span.page-numbers.current {
    background-color: #005f73 !important;
    color: #ffffff !important;
    border-color: #005f73 !important;
    box-shadow: 0 4px 10px rgba(0, 95, 115, 0.25) !important;
}

/* 11. Ajuste para los textos "Página anterior" y "Página siguiente" */
.tarjetas-talleres .wp-block-query-pagination-previous,
.tarjetas-talleres .wp-block-query-pagination-next {
    padding: 8px 16px !important;
}
/* Fin Talleres SM_ESCUCHA 360 */