/* =========================================
   ESTILOS GENERALES DE PÁGINAS
   ========================================= */

/* Layout Comité Científico
   ----------------------------------------- */
.comite-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Texto | 50% Fotos */
    gap: 4rem; /* Espacio generoso entre columnas */
    margin-bottom: 3rem;
    align-items: start;
}

/* Columna Texto (Izquierda) */
h1.entry-title {
    text-transform: uppercase;
    font-size: 1.7rem;
}
.comite-content-text .entry-content p {
    margin-bottom: 1.5em;
    font-size: 1.05rem;
    line-height: 1;
    color: #333;
}

.comite-content-text h2, 
.comite-content-text h3, .entry-content h2, .entry-content h3 {
    font-family: var(--font-primary);
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}
.comite-content-text h2, .entry-content h2 {
    color: var(--sohah-teal-dark);
    font-size: 1.1rem;
}
.comite-content-text h3, .entry-content h3 {
    color: #000;
    font-size: 1rem;
}
/* Lista de nombres (si usas lista en el editor) */
.comite-content-text ul, .entry-content ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    font-style: italic;
    font-weight: normal;
    color: #444;
    padding-left: 55px;
}
ul.entryenlaces {
    list-style: none;
    padding: 0;
    margin: 0;
    font-style: normal  ;
    font-weight: normal;
    color: #000;
    border: 0px solid #000 !important;
    border-radius: 0px !important;
}
ul.entryenlaces li {
    margin-bottom: 5px;
    border: 0px solid var(--sohah-teal-dark) !important;
    padding: 0px !important;
    margin: 0px !important;
    padding-left: 15px;
}
ul.entryenlaces li h2 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--sohah-teal-dark);
    margin-bottom: 5px;
    font-style: normal;
}
ul.xoxo, ul.guiasclinicas {
    margin: 0 0 15px 0;
    padding: 0 !important;
}
ul.xoxo li {
    margin-bottom: 5px !important;
    border-left: 1px solid var(--sohah-teal-dark) !important;
    padding: 0px 0 5px 15px !important;
    margin: 0px !important;
    font-style: normal !important;
}
ul.guiasclinicas li {
    margin-bottom: 5px !important;
    border-left: 1px solid var(--sohah-teal-dark) !important;
    padding: 0px 55px 10px 15px !important;
    margin: 0px !important;
    font-style: normal !important;
}
.comite-content-text a {
    color: #000 !important;
    text-decoration: none !important;
}
.comite-content-text a:hover {
    color: var(--sohah-teal-dark) !important;
    text-decoration: none !important;
}
/* Columna Fotos (Derecha) - Grid interno */
.comite-members-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 fotos por fila exactas */
    gap: 15px;
}

.member-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.2; /* Formato retrato suave */
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el hueco sin deformar */
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(100%); /* Efecto blanco y negro inicial (opcional, como la foto) */
}

/* Hover Effect: Color y ligero zoom */
.member-item:hover .member-photo {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Espaciado extra para el banner final */
.mt-large {
    margin-top: 4rem;
}

/* Modificar solo la caja de comentarios de los casos clínicos */
.entry-casosclinicos img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}
.entry-casosclinicos {
    width: 100%;
}
figure.page-hero-image img {
    width: 100%;
}
.page-content-text-casosclinicos {
    width: 100%;
}

.sohah-comentarios-custom .commentlist .comment {
    background-color: #f9f9f9;
    border-left: 2px solid var(--sohah-teal-dark);
    border-bottom: 1px solid var(--sohah-teal-dark); /* El azul de SoHaH */
    border-radius: 0px;
    margin-bottom: 20px;

}
ol.commentlist {
    margin-bottom: 20px;
    margin-left: 20px;
}
ol.commentlist li {
    padding: 20px;
}
.comment-author {
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--sohah-teal-dark);
}
.comment-meta, .comment-body p {
    margin-bottom: 10px;
}
/* Cambiar el botón de enviar solo en este debate */
.sohah-comentarios-custom .form-submit input[type="submit"] {
    background-color: #1a1a1a;
    color: #fff;
    text-transform: uppercase;
}
.sohah-debate-header h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    color: var(--sohah-teal-dark);
} 
h3#comments, #respond h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: 'Times New Roman', Times, serif;
    font-style: normal;
    color: #000;
    font-weight: normal;
}

.sohah-debate-header p {
    margin-bottom: 10px;
}
/* comentarios */
#respond input {
    background-color: #f9f9f9;
    border: 1px solid #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}
#respond textarea {
    background-color: #f9f9f9;
    border: 1px solid #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}
#respond input[type="submit"] {
    background-color: var(--sohah-teal-dark) !important;
    color: #fff !important;
    text-transform: uppercase;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    font-family: var(--font-primary);
    border-radius: 0px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    margin: 0px;
}
#respond form {
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--sohah-teal-dark);
}   
/* Ocultar los textos de fuera (labels) en el formulario de comentarios */
#respond label {
    display: none !important;
}

/* Opcional: Darle un color elegante al texto del placeholder para que se lea bien */
#respond input::placeholder,
#respond textarea::placeholder {
    color: #555;
    opacity: 1; /* Firefox a veces los pone medio transparentes */
}
/* Layout Curriculum (Dr. Fernando)
   ----------------------------------------- */
.curriculum-layout-grid, .page-layout-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Texto ancho | Foto estrecha */
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Ajustes de contenido */
.curriculum-content-text .entry-content p, .page-content-text .entry-content p {
    margin-bottom: 1em;
    text-align: left; /* Opcional, según diseño */
}

/* Foto Derecha */
.curriculum-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra suave como en la foto */
    border-radius: 2px;
}

.anos {
    min-width: 60px;
    text-align: right;
    font-weight: bold;
    color: var(--sohah-teal-dark);
    font-size: 1.1rem;
    display:inline-block;
    font-family: var(--font-primary);
}
.txtanos {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 10px;
    font-family: var(--font-primary);
    color:#000;
    display:inline-block !important;
}
/* ==================================================== */
/* SOHAH: CORRECCIONES RESPONSIVE PARA CASOS CLÍNICOS   */
/* ==================================================== */

@media (max-width: 768px) {
    /* 1. Apilar la estructura principal (Texto arriba, Sidebar abajo) */
    .page-layout-grid {
        display: block !important; /* Rompe el grid/flex en móvil */
        width: 100% !important;
        overflow-x: hidden; /* Evita cualquier desbordamiento accidental */
    }

    /* 2. Asegurar que las columnas ocupan el 100% real */
    .page-content-text-casosclinicos,
    .page-photo-area {
        width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 3. Evitar que las imágenes rompan la caja */
    .entry-casosclinicos img,
    figure.page-hero-image img {
        max-width: 100% !important;
        height: auto !important;
        box-sizing: border-box; /* Fundamental para que el padding no sume ancho */
    }

    /* 4. Arreglar el desbordamiento de los comentarios */
    ol.commentlist {
        margin-left: 0px !important; /* Quitamos el margen izquierdo que empujaba hacia fuera */
        padding-left: 0px !important;
    }
    
    ol.commentlist li {
        padding: 10px !important; /* Reducimos el padding interno en móvil */
    }
}

/* Regla general de seguridad para todas las pantallas */
.sohah-debate-clinico-wrapper {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word; /* Obliga a los textos muy largos (ej. URLs) a saltar de línea */
}


/* RESPONSIVE (Móvil y Tablet Vertical) */
@media (max-width: 900px) {
    .comite-layout-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 2rem;
    }

    /* En móvil, las fotos pasan abajo */
    .comite-members-grid {
        order: 2; /* Opcional: si quieres las fotos antes o después */
        grid-template-columns: repeat(3, 1fr); /* Mantenemos 3 pequeñas o pasamos a 2 */
    }
    .curriculum-layout-grid, .page-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* En móvil ponemos la foto arriba del texto */
    .curriculum-photo-area {
        order: -1; 
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }
}
/*
@media (max-width: 600px) {
    .comite-members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
*/
