
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* ======= HEADER ======= */
.tabla_principal_top {
    width: 100%;
    background: #004d61;
    padding: 15px 0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    z-index: 1000;
    
}

.contenidos {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logotipo {
    height: 50px;
}

.menutop {
    display: flex;
    gap: 20px;
}

.botonmenu {
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
    text-decoration: none;
}

.botonmenu:hover,
.botonmenu_sel {
    color: #ffd700;
}

/* ======= BANNER ======= */
#indexbanner {
    position: relative;
    width: 100%;
    height: 520px;
    background: url('../img/filosofia-politica_integral.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
}

#indexbanner::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

#indexbanner .eslogan {
    position: relative;
    z-index: 2;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.bco {
    color: #ffd700;
}

/* ======= NOTICIAS ======= */
.noticias-destacadas {
    padding: 60px 10%;
    background: #f9f9f9;
}

.titulo-noticias {
    text-align: center;
    font-size: 36px;
    color: #003b5c;
    margin-bottom: 50px;
    font-weight: bold;
    
}

.contenedor-noticia {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    gap: 40px;
}

.contenedor-noticia.invertido {
    flex-direction: row-reverse;
}

.imagen-noticia img {
    width: 500px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.15);
}

.texto-noticia {
    flex: 1;
}

.texto-noticia h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #005f73;
}

/* ======= TARJETAS RH ======= */
.seccion-rh {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
}

.contenedor-rh {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

.tarjeta-rh {
  background: rgb(255, 255, 255);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-rh {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background-color: #004c66;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

/* CURSOS SEMANLES CSS */
.tarjeta-rh {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px;
}

.tarjeta-rh h3 {
    text-align: center;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.calendario-header {
    display: flex;
    justify-content: center; /* Centramos el título */
    align-items: center;
    margin-bottom: 20px;
}

.calendario-header h2 {
    color: #333;
    font-size: 1.3rem;
    margin: 0;
}

.calendario-grid, .calendario-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.dia-header {
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    color: #555;
    border-bottom: 2px solid #eee;
}

.dia-celda {
    position: relative;
    height: 100px;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    padding: 5px;
    transition: background-color 0.3s;
    overflow: hidden;
}

.dia-celda:not(.dia-vacio):hover {
    background-color: #f9f9f9;
}

.dia-numero {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

.dia-celda.hoy {
    background-color: #e7f3ff;
}

.dia-celda.hoy .dia-numero {
    color: #007bff;
}

.dia-vacio {
    background-color: #fafafa;
}

.curso {
    background-color: #28a745;
    color: white;
    font-size: 0.7rem;
    padding: 3px 5px;
    border-radius: 3px;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* Contenedor de los cursos */
.cursos {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Estilo de cada curso */
.curso {
    background-color: #28a745;
    color: white;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.8em;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

.curso:hover {
    opacity: 0.8;
}

/* ======= FOOTER ======= */
.footer {
    background-color: #0a2239;
    color: #fff;
    padding: 40px 20px 20px 20px;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #ffd700;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 30px;
    padding-top: 15px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}


/* ======= ICONOS REDES ======= */
.social-icons {
  position: fixed;
  top: 40%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

/* ======= NOTIFICACIONES FLOTANTES ======= */
.notificaciones-flotantes {
    position: fixed;
    bottom: 20px;
    right: 70px;
    width: 300px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.alerta-cumple {
    background: #fff;
    border-left: 6px solid #ff9800;
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: bold;
    color: #333;
    animation: slideIn 0.5s ease;
    pointer-events: auto;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
/* ======= ANIMACIONES DE SCROLL ======= */
.animar-izq, .animar-der {
    opacity: 0;
    transition: all 0.8s ease-out;
    will-change: transform, opacity;
}

.animar-izq {
    transform: translateX(-100px);
}

.animar-der {
    transform: translateX(100px);
}

.animar-izq.visible, .animar-der.visible {
    opacity: 1;
    transform: translateX(0);
}
.btn-vermas {
    background: #004d61;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    display: inline-block;
}

.btn-vermas:hover {
    background: #006680;
    transform: scale(1.05);
}
/* ======= PANEL RH ======= */
.seccion-rh {
    background: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
}

.seccion-rh h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #003b5c;
    font-weight: bold;
}

.contenedor-rh {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}

.tarjeta-rh {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-rh h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #004d61;
}

.tarjeta-rh p,
.tarjeta-rh li,
.tarjeta-rh a {
    font-size: 15px;
    color: #333;
}

.tarjeta-rh ul {
    list-style: disc inside;
    padding: 0;
    margin: 0;
}

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


.btn-rh {
    background: #004d61;
    color: #fff !important;   
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s;
}

.btn-rh:hover {
    background: #006680;
    transform: scale(1.05);
    color: #fff !important;  
}



/* ===== SUBMENÚ DESPLEGABLE ===== */
.menu-desplegable {
    position: relative;
    display: inline-block;
}

.menu-desplegable .submenu {
    display: none;
    position: absolute;
    background: #004d61;
    min-width: 220px;
    top: 100%;
    left: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2000;
}

.menu-desplegable:hover > .submenu {
    display: block;
}

.submenu .menu-desplegable > .submenu {
    left: 100%; 
    top: 0;
    border-radius: 8px;
}
.submenu .menu-desplegable {
    display: block;
    width: 100%;
}

/* Y esta hace que el propio enlace también ocupe todo el espacio de su contenedor */
.submenu .menu-desplegable > a {
    display: block;
    width: 100%;
    box-sizing: border-box; /* Evita problemas de tamaño con el padding */
}

.submenu a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.submenu a:hover {
    background: #006680;
    color: #ffd700;
}

#eventosMes {
  flex: 1 1 100%;
  max-width: 800px;
  margin: 40px auto;
  text-align: center;
}

#eventosMes h3 {
  font-size: 24px;
  color: #004d61;
  margin-bottom: 20px;
}

#listaEventos {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

#listaEventos li {
  background: #f9f9f9;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-left: 6px solid #004d61;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#listaEventos li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#eventosMes {
  flex: 1 1 100%;
  max-width: 1000px;
  margin: 40px auto;
  text-align: center;
}

#eventosMes h3 {
  font-size: 24px;
  color: #004d61;
  margin-bottom: 20px;
}

.eventos-contenedor {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.columna-eventos {
  flex: 1;
  min-width: 350px;
}

.columna-eventos h4 {
  text-align: center;
  color: #004d61;
  margin-bottom: 15px;
}

.columna-eventos ul {
  list-style: none;
  padding: 0;
}

.columna-eventos li {
  background: #f9f9f9;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-left: 6px solid #004d61;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  font-size: 15px;
}
.columna-eventos li {
  background: #ffffff;
  padding: 14px 18px;
  margin-bottom: 12px;
  border-left: 6px solid #004d61;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.columna-eventos li:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.columna-eventos li span.icono {
  font-size: 20px;
  flex-shrink: 0;
}

.texto-evento {
  line-height: 1.4;
  color: #333;
}

.texto-evento b {
  color: #004d61;
}

.documentos-recientes {
  flex: 1 1 100%;
  max-width: 900px;   
  margin: 40px auto;
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  text-align: center;
}

.documentos-recientes h3 {
  font-size: 24px;
  color: #004d61;
  margin-bottom: 20px;
  font-weight: bold;
}

.documentos-recientes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.documentos-recientes li {
  margin-bottom: 12px;
  font-size: 15px;
}

.documentos-recientes a {
  color: #004d61;
  font-weight: bold;
  text-decoration: none;
}

.documentos-recientes a:hover {
  color: #006680;
  text-decoration: underline;
}

.documentos-recientes {
  max-width: 900px;        
  margin: 40px auto;       
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.documentos-recientes h3 {
  font-size: 24px;
  color: #004d61;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.documentos-recientes ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.documentos-recientes li {
  margin-bottom: 12px;
  font-size: 15px;
  text-align: left;
}
/* estilo botón Ver todas */
.documentos-recientes .btn {
  display: inline-block;
  padding: 10px 22px;
  background-color: #00796b;   /* verde azulado */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.documentos-recientes .btn:hover {
  background-color: #004d40;   /* tono más oscuro al pasar el mouse */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor principal que posiciona todo en la pantalla */
.notificaciones-contenedor {
    position: fixed; /* Lo fija en la pantalla */
    top: 150px;       /* Distancia desde arriba */
    right: 5px;     /* Distancia desde la derecha */
    z-index: 1000;   /* Se asegura que esté por encima de otros elementos */
}

/* El ícono o botón que siempre está visible */
.notificaciones-icono {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* La lista de notificaciones que estará oculta */
.lista-oculta {
    /* --- Magia para ocultar --- */
    opacity: 0;
    visibility: hidden;
    transform: scaleX(0.9) translateX(10px); /* Nueva animación horizontal */
    transform-origin: right center;          /* La animación empieza desde la derecha */
    transition: all 0.2s ease-in-out;

    /* --- NUEVA Posición (a la izquierda) --- */
    position: absolute;
    top: 0;                  /* Alinea la parte superior de la lista con la del ícono */
    right: 105%;             /* Mueve la lista a la izquierda del ícono (100%) + un espacio (5%) */
    
    /* --- Estilo (sin cambios) --- */
    width: 350px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 5px;
}

/* --- Muestra la lista al pasar el mouse (con la nueva animación) --- */
.notificaciones-contenedor:hover .lista-oculta {
    opacity: 1;
    visibility: visible;
    transform: scaleX(1) translateX(0); /* Vuelve a su tamaño y posición original */
}

/* Estilo para cada alerta individual (como las de tu imagen) */
.alerta-cumple {
    background-color: #f0f7ff; /* Un color de fondo suave */
    padding: 12px;
    margin: 5px;
    border-radius: 5px;
    border-left: 4px solid #007bff; /* Un borde distintivo */
    font-size: 14px;
}

/* Ajustamos el ícono para que el contador se posicione correctamente */
.notificaciones-icono {
    position: relative; /* Necesario para posicionar el badge */
    padding-right: 25px; /* Damos un poco más de espacio a la derecha */
}

/* Estilo para el contador (la burbuja roja) */
.contador-badge {
    /* --- Posición --- */
    position: absolute;
    top: -5px;   /* Ligeramente arriba */
    right: -5px; /* Ligeramente a la derecha */

    /* --- Apariencia --- */
    background-color: #dc3545; /* Color rojo de notificación */
    color: white;
    font-family: sans-serif;
    font-size: 11px;
    font-weight: bold;
    
    /* --- Forma --- */
    width: 18px;
    height: 18px;
    border-radius: 50%; /* Para hacerlo un círculo perfecto */
    
    /* --- Centrado del número --- */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* --- Oculto por defecto --- */
    transform: scale(0);
    transition: transform 0.2s ease;
}

/* Estilo para mostrar el contador cuando tiene contenido */
.contador-badge:not(:empty) {
    transform: scale(1); /* Lo hacemos visible */
}