/* ==========================================
   1. FUENTES Y GENERALES
   ========================================== */
@font-face {
    font-family: 'buffalo';
    src: url('../fuentes/malliyasignatureregular-lgy8d.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.nombre-ponente {
    font-family: 'buffalo', sans-serif;
    font-size: 2rem;
    color: #000055;
    line-height: 1.2;
}

.puesto-ponente {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.70rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #000066;
    line-height: 1.2;
}

.encabezado-seccion {
    text-align: center;
    margin: 30px 0;
}

.img-encabezado {
    max-width: 450px;
    width: 90%;
    height: auto;
}

/* ==========================================
   2. GRID DE TARJETAS (2 COLUMNAS)
   ========================================== */
.contenedor-conferencias {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas exactas */
    gap: 35px;
    max-width: 85%;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
}

.tarjeta-conferencia {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Proporción horizontal/rectandular para la imagen de fondo */
    background-size: 90% 100%; /* 'contain' evita estiramientos. Cambia a 'cover' si prefieres llenar bordes */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);*/
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tarjeta-conferencia:hover {
    transform: translateY(-6px);
    /*box-shadow: 0 8px 20px rgba(255, 155, 0, 0.5);*/
}

/* Posicionamiento del Botón a la izquierda */
.btn-semblanza {
    position: absolute;
    bottom: 50px;  /* Ajusta este valor para subir/bajar el botón dentro de la tarjeta */
    left: 50px;    /* Alineado a la izquierda */
    background-color: #000055;
    color: #ffffff;
    border: 1px solid #ffffff;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-semblanza:hover {
    background-color: #FF9933;
    transform: scale(1.03);
}

/* ==========================================
   3. VENTANA MODAL
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.modal-contenido {
    position: relative;
    width: 100%;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.modal-cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    color: #000055;
    cursor: pointer;
    font-weight: bold;
    z-index: 20;
}

.modal-cerrar:hover { color: #FF9933; }

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 18px;
    color: #000055;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
}

.modal-nav:hover { background: #000055; color: #fff; }
.nav-izq { left: 10px; }
.nav-der { right: 10px; }

/* Estructura Flexible dentro de la Modal */
.modal-grid-flex {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.modal-col-texto { flex: 1 1 60%; color: #000055; }
.modal-col-foto { flex: 1 1 40%; display: flex; flex-direction: column; align-items: center; text-align: center; }

.img-proposito { width: 100%; max-width: 400px; height: auto; margin-bottom: 15px; }
.cv-texto p { font-size: 0.9rem; line-height: 1.5; color: #000055; text-align: justify; }

.modal-foto-circulo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
}

.modal-redes a { color: #000055; font-weight: bold; text-decoration: none; }
.modal-redes a:hover { color: #FF9933; }

/* ==========================================
   4. ADAPTACIÓN RESPONSIVA (Celulares)
   ========================================== */
@media (max-width: 768px) {
    .contenedor-conferencias {
        grid-template-columns: 1fr; /* 1 columna en pantallas chicas */
    }

    .modal-grid-flex {
        flex-direction: column-reverse;
        align-items: center;
    }

    .modal-col-texto, .modal-col-foto {
        width: 100%;
    }
	
.btn-semblanza {
    position: absolute;
    bottom: 30px;  /* Ajusta este valor para subir/bajar el botón dentro de la tarjeta */
    left: 20px;    /* Alineado a la izquierda */
}
	
}



/* 1. Evita que la página completa se mueva horizontalmente */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 2. Regla universal para que el padding y borders NO sumen ancho extra */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 3. Ajuste responsive adicional para el contenedor de tarjetas */
@media (max-width: 768px) {
    .contenedor-conferencias {
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
    }

    .tarjeta-conferencia {
        aspect-ratio: 4 / 3; /* Asegura una buena proporción en móvil */
    }
}