/*
Theme Name: Astra Child - Sesiones COEPES
Theme URI: https://coepesguanajuato.mx
Description: Child theme de Astra que agrega una plantilla personalizada para el Custom Post Type "Sesiones", mostrando los campos de ACF (fecha, lugar, participantes, acta, acuerdos y archivos) sin modificar el tema Astra original.
Author: COEPES Guanajuato
Template: astra
Version: 1.1.0
Text Domain: coepes-sesiones-child
*/

/* ==========================================================
   Estilos para la plantilla single-sesiones.php
   ========================================================== */

.sesion-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.sesion-header {
    border-bottom: 3px solid #1a237e;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.sesion-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.sesion-volver:hover {
    text-decoration: underline;
}

.sesion-titulo {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #1a237e;
}

.sesion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.95rem;
    color: #444;
}

.sesion-meta strong {
    color: #1a237e;
}

.sesion-seccion {
    margin-bottom: 35px;
}

.sesion-seccion-titulo {
    font-size: 1.3rem;
    color: #ffffff;
    background: #1a237e;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    margin: 0;
}

.sesion-seccion-contenido {
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 20px;
    border-radius: 0 0 6px 6px;
    background: #fafafa;
    line-height: 1.7;
}

.sesion-seccion-contenido p:last-child {
    margin-bottom: 0;
}

.sesion-archivo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #1a237e;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sesion-archivo:hover {
    background: #1a237e;
    border-color: #1a237e;
    color: #ffffff;
}

.sesion-archivos-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sesion-vacio {
    color: #888;
    font-style: italic;
}

.sesion-listado {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sesion-listado-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.sesion-listado-item:last-child {
    border-bottom: none;
}

.sesion-listado-item a {
    font-weight: 600;
    color: #1a237e;
    text-decoration: none;
}

.sesion-listado-item a:hover {
    text-decoration: underline;
}

.sesion-listado-fecha {
    color: #666;
    font-size: 0.9rem;
}

.sesion-imagen-destacada {
    margin-bottom: 15px;
}

.sesion-imagen-destacada img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

/* ---- Carrusel ---- */

.sesion-carrusel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.sesion-carrusel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 4px 14px;
    -webkit-overflow-scrolling: touch;
}

.sesion-carrusel::-webkit-scrollbar {
    height: 8px;
}

.sesion-carrusel::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 4px;
}

.sesion-tarjeta {
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: block;
}

.sesion-tarjeta:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sesion-tarjeta-imagen {
    width: 100%;
    height: 140px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sesion-tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sesion-tarjeta-imagen-placeholder {
    font-size: 2.5rem;
    color: #bbb;
}

.sesion-tarjeta-texto {
    padding: 12px;
}

.sesion-tarjeta-titulo {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #1a237e;
}

.sesion-tarjeta-fecha {
    font-size: 0.85rem;
    color: #777;
}

.sesion-carrusel-flecha {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #1a237e;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(26, 35, 126, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.sesion-carrusel-flecha:hover {
    background: #00897b;
    box-shadow: 0 4px 14px rgba(0, 137, 123, 0.4);
    transform: scale(1.08);
}

.sesion-carrusel-flecha:active {
    transform: scale(0.95);
}

.sesion-carrusel-flecha-izq {
    margin-right: -21px;
}

.sesion-carrusel-flecha-der {
    margin-left: -21px;
}


/* ==========================================================
   Meta box: Documentos de la sesión
   ========================================================== */
.coepes-documento-sesion-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border: 1px solid #dcdcde;
    background: #fff;
    border-radius: 4px;
}

.coepes-documento-sesion-item .dashicons {
    color: #2271b1;
}

.coepes-documento-sesion-item a {
    flex: 1;
}
