
/* ============================= */
/* RESET */
/* ============================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{

font-family: Arial, Helvetica, sans-serif;
line-height:1.6;
color:#333;
background:#ffffff;

}

#header{
position:relative;
}

/* ============================= */
/* HEADER LOGO MENU Y SUBMENU */
/* ============================= */


.header{
position:sticky;
top:0;
width:100%;
background:#b5121b;
z-index:9999;
box-shadow:0 2px 10px rgba(0,0,0,0.15);
}


.header-container{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
}


/* LOGO */

.logo-area{

display:flex;
align-items:center;
gap:15px;

}

.logo-area img{

height:60px;

}


/* titulo subtitulo */

.titulo{
line-height:1.2;
}

.titulo h1{
color:white;
font-size:20px;
margin:0;
}

.titulo span{
color:white;
font-size:14px;
}


/* MENU */
.menu{
display:flex;
transition:all 0.3s ease;
}

.menu.active{
display:block;
}

.menu ul{

display:flex;
list-style:none;
gap:25px;

}

.menu a{

color:white;
text-decoration:none;
font-weight:bold;
font-size:15px;

}

.menu a:hover{
opacity:0.8;
}


.menu li{

position:relative;

}


/* SUBMENU */

.submenu ul{

position:absolute;
top:100%;
left:0;
background:#a10f13;
list-style:none;
min-width:200px;
display:none;
padding:10px 0;
border-radius:4px;
z-index:99999;

}

.submenu ul li{

padding:10px 20px;

}

.submenu ul li a{

color:white;
font-weight:normal;

}

.submenu:hover ul{

display:block;

}

.menu-toggle{
display:none;
}

/*responsive menu*/

@media (max-width:768px){

.menu{
display:none;
position:absolute;
top:100%;
left:0;
width:100%;
background:#b5121b;
flex-direction:column;
padding:20px 0;
}

.menu ul{
flex-direction:column;
gap:12px;
}

.menu.active{
display:block;
}


.menu li{
text-align:center;
}

.menu-toggle{
display:block;
font-size:24px;
background:none;
border:none;
color:white;
cursor:pointer;
}

}



/* ============================= */
/* HERO CONGRESO */
/* ============================= */

.hero{

background-image:url('../../Imagenes/congreso-banner.jpg');
background-size:cover;
background-position:center;
height:420px;
display:flex;
align-items:center;
justify-content:center;
text-align:center;
position:relative;
z-index:1;

}


.hero-overlay{

background:rgba(0,0,0,0.55);
padding:40px;
color:white;
border-radius:6px;

}

.hero h1{

font-size:36px;
margin-bottom:10px;

}

.hero p{

font-size:18px;
margin-bottom:20px;

}

.btn{

display:inline-block;
background:#b5121b;
color:white;
padding:12px 22px;
text-decoration:none;
border-radius:4px;
font-weight:bold;

}

.btn:hover{

background:#8d0e14;

}


/* ============================= */
/* SWIPER */
/* ============================= */

.slider{

padding:60px 40px;
background:#f4f4f4;

}

.swiper-slide{

text-align:center;
padding:40px;

}

.swiper-slide h3{

font-size:22px;
margin-bottom:10px;
color:#b5121b;

}

.swiper-slide p{

max-width:700px;
margin:auto;

}

/* ============================= */
/* PRESIDENTE INDEX*/
/* ============================= */

.presidente-section{

padding:70px 40px;

}

.presidente-container{

display:flex;
align-items:center;
gap:40px;
max-width:1100px;
margin:auto;

}

.presidente-foto img{

width:300px;
border-radius:6px;

}

.presidente-texto h2{

margin-bottom:10px;
color:#b5121b;

}

.presidente-texto .intro{

font-weight:bold;
margin-bottom:20px;

}

.presidente-texto h3{

margin-top:15px;

}

.cargo{

color:#777;
margin-bottom:15px;

}

/* ============================= */
/* BENEFICIOS INDEX*/
/* ============================= */

.beneficios{

background:#f8f8f8;
padding:70px 40px;
text-align:center;

}

.beneficios h2{

margin-bottom:40px;
color:#b5121b;

}

.beneficios-grid{

display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;

}

.beneficio-card{

background:white;
padding:30px;
width:300px;
border-radius:6px;
box-shadow:0 2px 8px rgba(0,0,0,0.1);

}

.beneficio-card h3{

margin-bottom:10px;

}

.beneficio-card p{

margin-bottom:20px;

}

/* ============================= */
/* UBICACION INDEX */
/* ============================= */

.ubicacion{

padding:70px 40px;
text-align:center;

}

.ubicacion h2{

margin-bottom:25px;
color:#b5121b;

}

/* ============================= */
/* WHATSAPP */
/* ============================= */

.whatsapp-float{

position:fixed;
bottom:25px;
right:25px;
background:#25D366;
color:white;
font-size:28px;
width:55px;
height:55px;
display:flex;
align-items:center;
justify-content:center;
border-radius:50%;
text-decoration:none;
box-shadow:0 4px 10px rgba(0,0,0,0.3);

}

.whatsapp-float:hover{

transform:scale(1.1);

}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media(max-width:900px){

.presidente-container{

flex-direction:column;
text-align:center;

}

.menu ul{

flex-direction:column;
gap:10px;

}

.hero{

height:320px;

}

.hero h1{

font-size:26px;

}

}



/* PROFESORES INTERNACIONALES */

.profesores{

padding:70px 40px;
text-align:center;
background:#f4f4f4;

}

.profesores h2{

color:#b5121b;
margin-bottom:20px;

}

.profesores-intro{

max-width:800px;
margin:auto;
margin-bottom:40px;

}

.profesores-grid{

display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;

}

.profesor-card{

background:white;
padding:30px;
width:280px;
border-radius:6px;
box-shadow:0 3px 10px rgba(0,0,0,0.1);

}

.profesor-card h3{

color:#b5121b;
margin-bottom:10px;

}

.btn-congreso{

display:inline-block;
margin-top:40px;
background:#b5121b;
color:white;
padding:14px 28px;
text-decoration:none;
border-radius:5px;
font-weight:bold;

}

.btn-congreso:hover{

background:#8e0f15;

}



/* ============================= */
/* HERO HISTORIA */
/* ============================= */

.historia-hero{

background:#f4f4f4;
padding:140px 40px 60px;
text-align:center;

}

.historia-hero h1{

font-size:36px;
color:#b5121b;
margin-bottom:10px;

}

.historia-hero p{

font-size:18px;
color:#555;

}


/* ============================= */
/* CONTENIDO HISTORICO */
/* ============================= */

.historia-contenido{

max-width:900px;
margin:auto;
padding:60px 40px;
line-height:1.8;
font-size:16px;

}

.historia-contenido p{

margin-bottom:20px;

}


/* ============================= */
/* GALERIA HISTORICA */
/* ============================= */

.historia-galeria{

padding:60px 40px;
text-align:center;
background:#fafafa;

}

.historia-galeria h2{

color:#b5121b;
margin-bottom:25px;

}

.historia-galeria img{

width:100%;
max-width:750px;
border-radius:6px;
box-shadow:0 4px 12px rgba(0,0,0,0.15);

}


/* ============================= */
/* TIMELINE */
/* ============================= */

.timeline{

padding:80px 40px;
max-width:900px;
margin:auto;
position:relative;

}

/* linea vertical */

.timeline::before{

content:"";
position:absolute;
left:100px;
top:70px;
bottom:70px;
width:3px;
background:#b5121b;

}

.timeline-item{

display:flex;
gap:40px;
margin-bottom:45px;
position:relative;

}

.timeline-year{

font-weight:bold;
font-size:22px;
color:#b5121b;
min-width:120px;
text-align:right;

}

.timeline-content{

background:#fafafa;
padding:20px 25px;
border-radius:6px;
box-shadow:0 2px 8px rgba(0,0,0,0.1);

}


/* ============================= */
/* AUTORIA */
/* ============================= */

.autor-historia{

text-align:center;
padding:60px 40px;
font-style:italic;
color:#555;
background:#f9f9f9;

}

.timeline h2{

text-align:center;
margin-bottom:50px;
color:#b5121b;

}

/* ============================= */
/* RESPONSIVE HISTORIA */
/* ============================= */

@media(max-width:900px){

.timeline::before{

left:100px;

}

.timeline-item{

flex-direction:column;
gap:10px;

}

.timeline-year{

text-align:left;

}

}


/* DESARROLLO INSTITUCIONAL */

.historia-completa{

max-width:900px;
margin:auto;
padding:60px 40px;
line-height:1.8;

}

.historia-completa h2{

color:#b5121b;
margin-bottom:25px;
text-align:center;

}

.historia-completa p{

margin-bottom:20px;

}


/* ============================= */
/* ESTILOS PAGINA FUNDADORES */
/* ============================= */

.seccion-fundadores {
    background: #fdfdfd;
    padding-bottom: 80px;
}

.fundadores-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 40px;
}

.fundadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -30px; /* Sube un poco para entrar en el hero */
}

.fundador-card {
    background: white;
    padding: 40px 30px 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-top: 5px solid #b5121b;
    position: relative;
    transition: transform 0.3s ease;
}

.fundador-card:hover {
    transform: translateY(-10px);
}

.ciudad-tag {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #b5121b;
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

.fundador-card ul {
    list-style: none;
}

.fundador-card ul li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
    font-size: 15px;
}

.fundador-card ul li:last-child {
    border-bottom: none;
}

/* PLACA DE HONOR */
.distinciones-especiales {
    padding: 100px 40px;
    background: #f4f4f4;
    text-align: center;
}

.placa-honor {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 60px;
    border: 1px solid #ddd;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.02), 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
}

/* Esquinas decorativas para la placa */
.placa-honor::before {
    content: "";
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid #b5121b;
    opacity: 0.3;
}

.distincion-item {
    margin: 30px 0;
}

.distincion-item span {
    display: block;
    color: #b5121b;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.distincion-item h3 {
    font-size: 26px;
    margin-top: 5px;
}




/* ============================= */
/* ESTILOS DIRECTORIO DE SOCIOS (GRID) */
/* ============================= */

.socios-seccion {
    padding: 60px 20px;
    background: #f9f9f9; /* Un fondo sutil para resaltar las tarjetas */
}

.container-directorio {
    max-width: 1200px;
    margin: auto;
}

/* Reutilizamos tu buscador con leves ajustes */
.buscador-container {
    margin: 0 auto 40px auto;
    position: relative;
    max-width: 500px;
}

.buscador-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b5121b;
}

.buscador-container input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.buscador-container input:focus {
    border-color: #b5121b;
}

/* Estructura de Rejilla (Grid) */
.socios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta de Socio */
.member-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
    border-bottom: 4px solid #b5121b; /* Tu color institucional */
}

.member-card:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 100%;
    height: 350px;
    object-fit: cover; /* Esto recorta la foto proporcionalmente en lugar de estirarla */
    object-position: top; /* Centra el encuadre en la cara del doctor */
    background-color: #eee;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 19px;
    color: #222;
    margin-bottom: 8px;
    font-weight: bold;
}

.member-specialty {
    display: inline-block;
    color: #b5121b;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    background: rgba(181, 18, 27, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
}

/* Acciones y Redes */
.member-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    color: #555;
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
}

.btn-icon:hover {
    background: #b5121b;
    color: white;
}

.btn-cv {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: 0.3s;
}

.btn-cv:hover {
    background: #000;
}

/* Contenedor para la foto y el badge del cargo */
.photo-container {
    position: relative; /* Permite posicionar el badge encima de la foto */
    overflow: hidden;
}

.badge-cargo {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #b5121b; /* Rojo institucional */
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 5;
}






/* ============================= */
/* ESTILOS PAST PRESIDENTES */
/* ============================= */

.past-presidentes-seccion {
    padding: 60px 20px;
    background: #fff;
}

.tabla-scroll {
    overflow-x: auto; /* Para que en celular se pueda deslizar la tabla */
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tabla-presidentes {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.tabla-presidentes th {
    background: #333; /* Gris oscuro para diferenciarlo de los activos (rojo) */
    color: white;
    text-align: left;
    padding: 15px 20px;
    font-size: 14px;
    text-transform: uppercase;
}

.tabla-presidentes td {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 16px;
}

.periodo-celda {
    font-weight: bold;
    color: #b5121b; /* El periodo en rojo para resaltar */
    width: 30%;
}

.tabla-presidentes tr:hover {
    background-color: #f9f9f9;
}

.intro-tabla {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}



/* ============================= */
/* ESTILOS PÁGINA CONTACTO */
/* ============================= */

/* 1. El Contenedor que centra todo */
.container-contacto {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 2. El Hero (Encabezado gris) */
.contacto-hero {
    text-align: center;
    padding: 80px 20px;
    background: #f8f8f8;
    margin-bottom: 40px;
}

/* 3. Las 3 Tarjetas (Grid) */
.contacto-grid {
    display: grid;
    /* Ajustamos a 230px para que las 4 entren cómodamente en una fila si hay espacio */
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

/* Color específico para LinkedIn si quieres que resalte */
.contacto-card .fa-linkedin {
    color: #0077b5; /* Azul LinkedIn */
}

.contacto-card {
    background: #fff;
    padding: 35px 25px;
    text-align: center;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contacto-card:hover {
    transform: translateY(-5px);
    border-color: #b5121b;
    background: #fffafa;
}

.contacto-card i {
    font-size: 45px;
    color: #b5121b;
    margin-bottom: 20px;
}

.contacto-card h3 {
    margin-bottom: 10px;
    font-size: 22px;
}

/* El botón rojo dentro de la tarjeta */
.btn-directo {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #b5121b;
    color: white !important;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
}

/* 4. Mapa y Ubicación */
.mapa-seccion {
    margin-bottom: 60px;
    text-align: center;
}

.info-mapa h2 {
    color: #b5121b;
    margin-bottom: 10px;
}

.iframe-wrapper {
    max-width: 900px; /* Mapa un poco más flaco para que luzca elegante */
    margin: 25px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 5. Instagram */
.instagram-feed-container {
    max-width: 900px;
    margin: 60px auto;
    text-align: center;
}

.widget-instagram {
    margin: 30px 0;
    min-height: 300px;
}

.btn-instagram {
    display: inline-block;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 14px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn-instagram:hover {
    transform: scale(1.05);
}



/* ============================= */
/* ESTILOS PÁGINA PRESIDENTE */
/* ============================= */

.container-presidente {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.presidente-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap; /* Para móviles */
}

/* Foto y Marco */
.presidente-foto {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.marco-foto {
    border: 10px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
}

.marco-foto img {
    width: 100%;
    display: block;
    filter: grayscale(10%); /* Toque elegante */
}

.presidente-firma h3 {
    color: #b5121b;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* Mensaje */
.presidente-contenido {
    flex: 2;
    min-width: 300px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.quote-icon {
    font-size: 50px;
    color: rgba(181, 18, 27, 0.1);
    position: absolute;
    top: 20px;
    left: 20px;
}

.mensaje-texto p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-align: justify;
}

.final-saludo {
    font-weight: bold;
    color: #333;
}

.divider-rojo {
    width: 60px;
    height: 4px;
    background: #b5121b;
    margin-top: 10px;
}

/* Hero específico para esta página */
.presidente-hero {
    background: #2c3e50; /* Un azul muy oscuro o el rojo institucional */
    color: white;
    padding: 100px 20px;
    text-align: center;
}


/* ============================= */
/* ESTILOS PÁGINA BIBLIOTECA     */
/* ============================= */

/* Contenedor principal */
.container-biblioteca {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

/* Títulos de cabecera */
.titulo-principal-seccion {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.subtitulo-seccion {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
}

/* Títulos de secciones con línea roja */
.titulo-recurso {
    color: #b5121b;
    border-left: 5px solid #b5121b;
    padding-left: 15px;
    margin: 40px 0 25px;
    font-size: 24px;
    font-weight: bold;
}

/* --- SECCIÓN DEL LIBRO ÚNICO (TARJETA ESPECIAL) --- */
.recursos-grid-centrado {
    display: flex;
    justify-content: center;
    margin: 30px 0 60px;
    width: 100%;
}

.recurso-card-especial {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    transition: 0.3s ease;
}

.recurso-card-especial:hover {
    transform: translateY(-5px);
    border-color: #b5121b;
}

/* Icono del libro principal */
.recurso-card-especial i.fa-book-open-reader,
.recurso-card-especial i.fa-book {
    font-size: 60px;
    color: #b5121b;
    margin-bottom: 20px;
    display: block;
}

/* --- BOTONES UNIFICADOS (ESTILO GEMELO) --- */

/* Base común para ambos botones para que midan lo mismo */
.btn-biblioteca-base {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 30px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 14px !important;
    transition: 0.3s ease !important;
    width: fit-content !important;
    margin: 0 auto !important;
    border: none !important;
}

/* Botón Azul (Antiguo Badge) */
.badge-edicion-boton {
    background: #2c3e50 !important;
    color: white !important;
    margin-bottom: 12px !important; /* Espacio entre botones */
}

.badge-edicion-boton:hover {
    background: #1a252f !important;
    transform: translateY(-2px);
}

/* Botón Rojo (Descarga) */
.btn-descarga-especial {
    background: #b5121b !important;
    color: white !important;
}

.btn-descarga-especial:hover {
    background: #8e0e15 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(181, 18, 27, 0.3);
}

/* Iconos dentro de los botones */
.btn-biblioteca-base i {
    margin-right: 12px !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
}

/* Nota de conservación */
.alerta-historica {
    background: #fdf2f2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    border-left: 4px solid #b5121b;
}

/* --- TABLA DE ENLACES CIENTÍFICOS --- */
.tabla-scroll {
    overflow-x: auto;
    margin-bottom: 50px;
}

.tabla-recursos {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.tabla-recursos th {
    background: #2c3e50;
    color: white;
    padding: 15px;
    text-align: left;
}

.tabla-recursos td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.tabla-recursos a {
    color: #b5121b;
    font-weight: bold;
    text-decoration: none;
}

/* --- SECCIÓN DE SOCIEDADES (FLEX) --- */
.sociedades-flex {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lista-links {
    flex: 1;
    min-width: 280px;
}

.lista-links ul {
    list-style: none;
    padding: 0;
}

.lista-links li {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ccc;
}

.lista-links a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
    display: block;
}

.lista-links a:hover {
    color: #b5121b;
    transform: translateX(5px);
}


/* ============================= */
/* FOOTER */
/* ============================= */

.footer{
background:#1a1a1a;
color:white;
padding:50px 20px;
}

.footer-grid{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:40px;
max-width:1100px;
margin:auto;

}

.footer h3{

margin-bottom:15px;

}

/* INFO CONTACTO */

.footer-info i{
color:#b5121b;
margin-right:8px;
}

.footer-info p{

margin-bottom:8px;
color:#ddd;

}

.footer-info a{

color:white;
text-decoration:none;

}

.footer-info a:hover{

color:#b5121b;

}

/* LINKS */

.footer-links ul{

list-style:none;
padding:0;
margin:0;

}

.footer-links li{

margin-bottom:8px;

}

.footer-links a{

color:#ddd;
text-decoration:none;

}

.footer-links a:hover{

color:white;

}

/* REDES SOCIALES */

.social-icons{

margin-top:10px;

}

.social-icons a{

display:inline-flex;
align-items:center;
justify-content:center;

width:40px;
height:40px;

background:#b5121b;
color:white;

border-radius:50%;

margin-right:10px;

font-size:18px;

transition:0.3s;

}

.social-icons a:hover{

background:#8d0e14;
transform:translateY(-3px);

}

/* COPYRIGHT */

.copyright{

text-align:center;
margin-top:40px;
font-size:14px;
color:#bbb;

}


/*aqui se integra codigo nuevo para el tema de los contactos y ver perfil*/
/* Alineación horizontal de iconos sociales */
.member-contact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.btn-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f4f4f4;
    color: #b5121b !important;
    text-decoration: none;
    transition: 0.3s;
}

.btn-icon:hover {
    background: #b5121b;
    color: white !important;
}

/* Estilo del botón de perfil */
.btn-perfil {
    display: inline-block;
    background: #b5121b;
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-perfil:hover {
    background: #2c3e50;
}

/* --- -------------------------------*/
/*codigo 17032026*/
/* --- -------------------------------*/


/* --- MEJORAS DE ESTILO PREMIUM (APPLE/TESLA STYLE) --- */

/* 1. Tipografía: Importante para el look moderno */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Montserrat:wght@700&display=swap');

body {
    font-family: 'Inter', sans-serif; 
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Hace la letra más nítida */
}

/* 2. Espaciado: Da "aire" al sitio para que no se vea amontonado */
section {
    padding: 100px 5% !important; 
}

/* 3. Botón Ghost: El que pusimos junto al botón rojo */
.btn-ghost {
    display: inline-block;
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    background: #ffffff;
    color: #b5121b !important; /* Cambia a rojo al pasar el mouse */
}

/* 4. Tarjetas con sombras suaves (Efecto Elevación) */
.profesor-card, .beneficio-card, .member-card {
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important; 
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.profesor-card:hover, .member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12) !important;
}

/* 5. Ajuste para el Banner (Hero) nítido */
.hero {
    image-rendering: -webkit-optimize-contrast;
    overflow: hidden;
}


/* --- ESTILO GALERÍA DE HONOR (PAST PRESIDENTES) --- */

.past-card-historica {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 0; /* Bordes rectos para un look más serio/clásico */
}

.past-card-historica:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(181, 18, 27, 0.1); /* Sutil brillo rojo SEC */
    border-color: #b5121b;
}

.marco-foto {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 50%; /* Foto circular tipo medalla */
    border: 3px solid #f8f8f8;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.foto-historica {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-historica .label-gestion {
    font-size: 10px;
    letter-spacing: 2px;
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.nombre-historico {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 auto 10px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linea-divisora {
    width: 40px;
    height: 2px;
    background: #b5121b;
    margin: 10px auto;
}

.periodo-historico {
    font-weight: 700;
    color: #333;
    font-size: 0.95rem;
}

.in-memoriam {
    display: block;
    font-size: 11px;
    font-style: italic;
    color: #b5121b;
    margin-top: 5px;
}