#iconCerrar {
    position: absolute;
    /* position: fixed absolute;  */
    right: 1px;
    top: 1px;
    width: 32px;
    height: 32px;
}

#info {
    z-index: 9999;
    display: none;
    border-radius: 40px 2px 2px 40px;
    background-color: yellow;
    color: black;
    position: absolute;
    /* position: fixed absolute;  */
    right: 1px;
    top: 1px;
    padding: 15px;
    line-height: 1.3;
    /* 1.4 */
    font-size: 15px;
    width: 420px;
    box-shadow: 0px 0px 15px #9ac6e0;
    -webkit-box-shadow: 0px 0px 15px #9ac6e0;
    -moz-box-shadow: 0px 0px 15px #9ac6e0;
    -o-box-shadow: 0px 0px 15px #9ac6e0;
}

nav li i {
    color: orange;
    /*font-size: medium;*/
}

#area{
    min-height: 70vh;
}

@keyframes gentlePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.1);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
}

/* Reset y estilos base */
* {
    margin: 0px;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    /*background-color: #f5f5f5;*/
    /*background: linear-gradient(to bottom, #ff7e5f, #feb47b);*/
    min-height: 100vh;
    /*background: linear-gradient(to bottom, yellow, red);*/
    background: linear-gradient(to bottom, yellow, #B91C1C);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Banner superior */
.banner-top {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: block;
}

.banner-top img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #fff;
    border-radius: 5px;
}

/* Contenedor principal */
.container {
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    max-width: 1000px;
    /* 1200 */
    margin: 0 auto;
    padding: 10px 2px 10px 2px;
    /* 20 */
    /*align-items: flex-start;*/
    /* Menu flotante */
}

/* Menú de navegación */
.nav-container {
    flex: 0 0 190px;
    /* 250 */
    background-color: #2c3e50;
    /*background-color: green;*/
    color: white;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 10px;
    /* 20 */
    line-height: 2;
    /* Menu flotante */
    /*position: sticky;
    top: 0px;*/
}

.menu-toggle {
    display: none;
    padding: 15px;
    background-color: #1a252f;
    cursor: pointer;
    font-weight: bold;
}

.menu-toggle i {
    margin-right: 10px;
}

.nav-menu {
    padding: 10px 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu>li>a {
    display: block;
    padding: 6px 15px;
    /* 12 */
    transition: background-color 0.3s;
}

.nav-menu>li>a:hover {
    background-color: #34495e;
    color: yellow;
}

.nav-menu li.has-submenu>a::after {
    content: '\f053';
    /* f078 */
    font-family: 'Font Awesome 7 Free';
    /* Font Awesome 6 Free */
    font-weight: 900;
    float: right;
    font-size: 0.8em;
    margin-top: 3px;
    transition: transform 0.3s ease;
}

/* Rotar la flecha cuando el submenú está activo */
.nav-menu li.has-submenu.active>a::after {
    transform: rotate(-90deg);
    /* 180 */
}

.submenu {
    display: none;
    /*background-color: #34495e;*/
    background-color: green;
    padding-left: 15px;
    transition: all 0.3s ease;
}

.submenu li a {
    display: block;
    padding: 5px 15px;
    /* 10 */
    transition: background-color 0.3s;
}

.submenu li a:hover {
    background-color: #3d566e;
}

/* Contenido principal */
.main-content {
    flex: 1;
    min-width: 300px;
}

/* Imagen de banner responsiva */
.banner-img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto 10px auto;
    border-radius: 5px;
}

/* Área de login y redes sociales */
.quick-access {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 10px;
    /* 20 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.login-link {
    /*color: #2980b9;*/
    /*font-weight: bold;*/
    /*color: #374151;*/
    /*background: #f8fafc;*/
    /*border: 1px solid #cbd5e1;*/
    animation: gentlePulse 3s ease-in-out infinite;

    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
    border: 1px solid rgba(0, 102, 204, 0.2);
    padding: 0px 6px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link:hover {
    color: #004499;
    background: rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.4);
    transform: translateY(-1px);
}

.login-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.login-link:hover::after {
    width: 100%;
}

.social-icons a {
    display: inline-block;
    margin-left: 15px;
    font-size: 1.2em;
    color: #7f8c8d;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #2980b9;
}

/* Áreas de contenido */
.content-area {
    background-color: #f1f6f0;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 0px;
    /* 20 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.prose-text {
    margin-bottom: 0px;
    /* 30 */
}

.news-section h2 {
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.news-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-item h3 {
    color: #2980b9;
    margin-bottom: 5px;
}

.news-item .date {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 10px;
}

/* Pie de página */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    margin: 0 auto;
    max-width: 1000px;
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .nav-container {
        flex: 0 0 190px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .nav-container {
        flex: 1;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        /* 20 */
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
    }

    .nav-menu.active {
        display: block;
    }

    .submenu {
        padding-left: 25px;
    }

    /* Banner responsivo en móviles */
    .banner-top img {
        border-radius: 5px;
    }
}

@media (max-width: 480px) {
    .quick-access {
        flex-direction: column;
        align-items: flex-start;
    }

    .social-icons {
        margin-top: 10px;
    }

    .social-icons a {
        margin-left: 0;
        margin-right: 15px;
    }
}