

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;500&display=swap');

:root {
    --primary-color: #005A9C;
    --secondary-color: #00A9E0;
    --background-color: #f4f7f6;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}


.tarjetas {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}
 
h2.no-underline::after {
    display: none; /* Esto oculta el subrayado */
}

.speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.speaker-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    text-align: center;
    padding: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid var(--primary-color);
}

#conferencistas .speaker-card {
    border-top-color: var(--secondary-color);
}


.speaker-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.speaker-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid var(--background-color);
    box-shadow: 0 0 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.speaker-card:hover .speaker-photo {
    transform: scale(1.05);
}

.speaker-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    margin: 0.5rem 0;
    color: var(--primary-color);
}

.speaker-institution {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.bio-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.bio-link:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* --- Modal Styles --- */
.modal {
    display: none; /* Asegúrate de que esta línea esté aquí y no sea sobrescrita */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    /* Estas propiedades 'display: flex', 'align-items' y 'justify-content'
       solo deben aplicarse cuando el modal está visible, no por defecto. */
    /* display: flex; /* <-- QUITA ESTO O COMENTA ESTO PARA QUE NO APAREZCA AL INICIO */
    /* align-items: center; */
    /* justify-content: center; */
}

/* Agrega una clase para mostrar el modal con flexbox cuando sea necesario */
.modal.show {
    display: flex; /* Solo muestra el modal cuando la clase 'show' esté presente */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg-color); /* Use your card background color */
    margin: auto; /* Centered in the middle */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px var(--shadow-color); /* Use your shadow color */
    position: relative;
    width: 90%; /* Adjust width as needed */
    max-width: 800px; /* Max width for larger screens */
    animation-name: animatetop;
    animation-duration: 0.4s;
    max-height: 90vh; /* Max height of the modal */
    overflow-y: auto; /* Enable scrolling for modal content if it's too long */
}

/* Close button */
.modal-close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close-button:hover,
.modal-close-button:focus {
    color: var(--primary-color); /* Change color on hover */
    text-decoration: none;
    cursor: pointer;
}

/* Modal header (for speaker name) */
#modalSpeakerName {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center; /* Center the modal title */
}

/* Modal body (for semblanza content) */
#modalSemblanzaContent {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    text-align: justify; /* Justify text for better readability */
}

/* Animation for showing the modal */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}
/* --- New CSS for Footer Title Alignment --- */
.footer-iibi-title {
    text-align: left; /* Aligns the text to the left */
    /* You might also need to adjust margin if there's any auto-margin causing centering */
    margin-left: 0;
    margin-right: auto; /* Pushes it to the left if it's a flex item */
}

/* Ensure the parent container doesn't override it with text-align: center; */
.footer-head {
    /* If .footer-head has text-align: center, you might need to remove it or override */
    /* text-align: left; /* Apply to the parent if needed to ensure all content aligns left */
}
