* {
    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 */
}

/* ===== ESTILOS PARA GESTIÓN DE NOTICIAS (MODAL Y BOTONES) ===== */

/* --- Contenedor del Título y Botones --- */
.titulo-seccion-con-boton { 
    display: flex; 
    justify-content: center; 
    align-items: center;
    gap: 20px; 
    flex-wrap: wrap; 
    margin-bottom: 50px;
}
.titulo-seccion-con-boton .titulo-noticias {
    margin-bottom: 0;
}

/* --- Modal y su Contenido --- */
body .modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.6); 
    z-index: 2000; 
    display: none; 
    justify-content: center; 
    align-items: center; 
}
body .modal-content { 
    background: #fff; 
    padding: 30px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 600px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
    position: relative; 
}
body .modal-close { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    font-size: 24px; 
    font-weight: bold; 
    cursor: pointer; 
    color: #555; 
}

/* --- Botones de Agregar y Eliminar --- */
body .btn-agregar { 
    background: #28a745; 
    color: white; 
    padding: 10px 18px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 16px; 
    cursor: pointer; 
    border: none; 
    transition: background 0.3s; 
}
body .btn-agregar:hover { 
    background: #218838; 
}
body .btn-eliminar-rojo { 
    background-color: #dc3545; 
    border: none; 
    color: white; 
    padding: 10px 18px; 
    border-radius: 8px; 
    font-weight: bold; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background-color 0.3s; 
}
body .btn-eliminar-rojo:hover { 
    background-color: #c82333; 
}

/* --- Formulario Dentro del Modal --- */
body .form-group { 
    margin-bottom: 15px; 
}
body .form-group label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: bold; 
}
body .form-group input[type="text"],
body .form-group input[type="url"],  /* <-- LÍNEA AÑADIDA */
body .form-group input[type="file"], /* <-- LÍNEA AÑADIDA */
body .form-group textarea { 
width: 100%; 
padding: 10px; 
border: 1px solid #ccc; 
border-radius: 5px; 
/* Es buena idea asegurar el box-sizing aquí también */
box-sizing: border-box; 
}
/* 2. Campo de archivo (ahora separado) */
body .form-group input[type="file"] {
width: 100%;
box-sizing: border-box;
    /* Nota que le quitamos el padding y el border que no sabe cómo aplicar */
}

/* --- Modo Eliminación --- */
body .btn-eliminar-noticia { 
    display: none; 
    background-color: #c82333; 
    color: white; 
    border: none; 
    padding: 8px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
    margin-top: 15px; 
}
body .modo-eliminar-activo .btn-eliminar-noticia { 
    display: inline-block; 
}

/* ===== ESTILOS PARA GESTIÓN DE CALENDARIO ===== */

/* --- Contenedor de botones de control del calendario --- */
body .calendario-controles {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

body .calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* --- Estilos para modal de detalles del curso --- */
body .modal-curso-detalles {
    text-align: left;
}
body .modal-curso-detalles h3 {
    color: #005f73;
    margin-bottom: 10px;
}
body .modal-curso-detalles p {
    margin-bottom: 20px;
    line-height: 1.5;
}
body .modal-curso-detalles a {
    font-weight: bold;
    color: #004d61;
}

/* --- Cursor y feedback visual para el calendario --- */
.modo-agregar-curso-activo .dia-celda:not(.dia-vacio) {
    cursor: pointer;
    background-color: #e7f3ff !important;
}
.modo-agregar-curso-activo .dia-celda:not(.dia-vacio):hover {
    background-color: #cce4ff !important;
}
.modo-eliminar-curso-activo .curso {
    cursor: crosshair;
    background-color: #dc3545 !important;
    opacity: 0.8;
}
.modo-eliminar-curso-activo .curso:hover {
    opacity: 1;
}

/* ========================================= */
/* ESTILOS PARA EL PANEL DE ADMINISTRADOR    */
/* ========================================= */

.admin-controls {
    position: fixed !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 999999 !important; /* Un z-index absurdamente alto para ganar siempre */
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px;
    border-radius: 50%; /* Lo hacemos circular */
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    border: 1px solid #ddd;
    display: block !important;
    width: 50px;
    height: 50px;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.admin-controls a {
    font-size: 2rem;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
    line-height: 1;
}

.admin-controls a:hover {
    transform: scale(1.15) rotate(10deg);
}

/* ========================================= */
/* ESTILOS PARA GESTIÓN DE BENEFICIOS        */
/* ========================================= */

/* Icono de lápiz para editar */
.icono-gestion {
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 8px;
    display: inline-block;
    transition: transform 0.2s;
}
.icono-gestion:hover {
    transform: scale(1.2);
}

/* Modal de gestión más grande */
.modal-beneficios-gestion {
    max-width: 900px;
}

/* Contenedor de las dos columnas */
.gestion-beneficios-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

/* Estilo de cada columna */
.gestion-columna {
    flex: 1;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
}
.gestion-columna h3 {
    text-align: center;
    color: #004d61;
    margin-top: 0;
    margin-bottom: 15px;
}
.gestion-columna h4 {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-bottom: 15px;
}

/* Lista de elementos a gestionar */
.lista-gestion {
    min-height: 150px;
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid #ddd;
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
}
.item-gestion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee;
}
.item-gestion:last-child {
    border-bottom: none;
}
.item-gestion span {
    flex-grow: 1;
    font-size: 0.9em;
}
.btn-eliminar-item {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
}
.btn-eliminar-item:hover {
    color: #a01c2a;
}

/* --- NUEVOS ESTILOS PARA FORMULARIO ESTÉTICO --- */

/* Grupo de botones Radio */
.radio-group {
    display: flex;
    gap: 15px;
    align-items: center;
}
.radio-group input[type="radio"] {
    margin-right: 5px;
}
.radio-group label {
    font-weight: normal;
    margin-bottom: 0;
}

/* Contenedor que evita el salto de layout */
.link-input-wrapper {
    position: relative;
    min-height: 80px; /* Altura fija para el contenedor */
}

/* Posicionamos ambos inputs en el mismo lugar */
.link-input-wrapper .form-group {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Lógica de visibilidad */
.link-input-wrapper .input-pdf {
    opacity: 0;
    visibility: hidden;
}
.link-input-wrapper.show-pdf .input-pdf {
    opacity: 1;
    visibility: visible;
}
.link-input-wrapper.show-pdf .input-url {
    opacity: 0;
    visibility: hidden;
}

.form-beneficio button.btn-agregar {
    width: 100%;
    margin-top: 10px;
}
/* Alineación del martillo en el menú superior */
.menutop {
    display: flex;
    align-items: center; /* Centra verticalmente todos los elementos */
    gap: 20px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Separación del último texto del menú */
}

.martillo-link {
    font-size: 22px; /* Ajusta el tamaño para que combine con el menú */
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.martillo-link:hover {
    transform: scale(1.2);
}

/* IMPORTANTE: Elimina o comenta el estilo antiguo de .admin-controls 
   que tenías con position: fixed para que no flote sobre la pantalla */
/* .admin-controls { position: fixed !important; ... } */
