/* ==== GOOGLE FONTS ==== */
@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");

/* ==== ESTRUCTURA GENERAL ==== */
html,
body {
    height: 100vh;
    overflow: auto;
}
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: #ffffff;
    color: #333;
}
/* ==== CONTAINER GENERAL ==== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* ==== HERO ==== */
.hero {
    background: url("/images/portada/portada0.jpg") no-repeat center center
        fixed;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 9rem;
    color: #ffffff;
    text-align: center;
}

/* ==== HEADER TOP (Logo Barra Superior) ==== */
.header-top {
    width: 100%;
    margin-top: 45px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0);
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

/* ==== LOGO ==== */
.logo {
    font-family: "Lobster", cursive;
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    display: inline;
}

.color-a {
    color: #f7ce27;
}

.color-rest {
    color: #ffffff;
}

.color-s {
    color: #f3854a;
}

.color-blue {
    color: #50b6e9;
}

/* ==== NAVBAR (Menú Barra Inferior) ==== */
.navbar-container {
    width: 100%;
    padding: 0.5rem 0;
    margin-top: 100px;
    position: fixed;
    top: 5.8rem;
    left: 0;
    right: 0;
    z-index: 99;
}

.navbar {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
    margin: 0;
    font-family: "Lobster", "Segoe UI", sans-serif;
}

.nav-links a {
    color: rgba(16, 140, 181, 0.99);
    text-decoration: none;
    font-size: 25px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffcc00;
}

/* ==== BOTÓN HAMBURGUESA ==== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ==== CENTRADO DEL CONTENEDOR Y PESTAÑAS ==== */
.hero-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ==== PESTAÑAS ==== */
.tabs-container {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.tabs {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.tab {
    background-color: #f0f0f0;
    color: #333;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    transition: background 0.3s ease;
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: #ffcc00;
    color: #004080;
}
/* Contenedor de las pestañas */
.nav-tabs {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Enlaces estilo pastel elegante */
.tab-link {
    display: inline-block;
    padding: 10px 24px;
    background-color: #f0f8ff;
    color: #446e8f;
    font-weight: 500;
    border: 2px solid #a2c3d8;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1;
}
.tab-link {
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.tab-link.active {
    background-color: #a2c3d8;
    color: #ffffff;
    font-weight: 600;
    border-color: #8fb6cd;
}

.tab-link:hover {
    background-color: #ffffff;
    color: #2c5870;
}

#hero-title.dynamic-title {
    font-family: "Lobster", cursive !important;
    margin-bottom: 0.5rem;
}

#hero-description {
    margin-top: 0;
}

#hero-description::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 4px;
    color: #000;
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
/* ==== HERO CONTENT ==== */

.hero-content {
    background-color: rgba(178, 217, 229, 0.345);
    padding: 2rem 1.5rem;
    border-radius: 0 0 12px 12px;
    width: 700px;
    min-height: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: -6px;
}

.hero-content h2 {
    font-size: 2.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #333;
}

.btn {
    background-color: #ffcc00;
    color: #004080;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #e6b800;
}

.top-right-link {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 999;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e6f0f8;
    color: #446e8f;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid #a2c3d8;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.admin-link i {
    font-size: 1rem;
}

.admin-link:hover {
    background-color: #d0e5f2;
    color: #2c5870;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.social {
    display: flex; /* Coloca los íconos en línea horizontal */
    justify-content: center; /* Centra los íconos horizontalmente */
    gap: 5px; /* Espaciado entre los íconos */
    margin-top: 20px; /* Espaciado superior */
}

.social a {
    display: inline-block;
    width: 40px; /* Tamaño del ícono */
    height: 40px;
}

.social img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.social img:hover {
    transform: scale(1.2);
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
}

/* ==== RESPONSIVE ==== */

@media (max-height: 901px) {

    /* Ajuste de .header-top para que no sea fijo */
    .header-top {
        width: 100%;
        margin-top: -55px;
        margin-bottom: 30px;
        text-align: center;
        background-color: rgba(0, 0, 0, 0);
        padding: 1rem 0;
        position: relative;

    }

    /* Ajuste de .hero-wrapper para que respete el flujo del documento */
    .hero-wrapper {
        position: relative;
        margin-bottom: 10px;
        top: 0;
        left: 0;
        transform: none;
        margin-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
    background-color: rgba(178, 217, 229, 0.545);
    padding: 2rem 1.5rem;
    border-radius: 0 0 12px 12px;
    width: 700px;
    min-height: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: -6px;
}

}

@media (max-width: 1124px) {


    .navbar-container {
        top: 5.5rem;
    }

    .hero-content {
        padding: 2.5rem 1.5rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
        width: 90%;
        height: auto;
        padding: 1.5rem 1rem;
    }

    .btn {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }
}
.mobile-menu {
    display: none;
    position: absolute;
    top: 50px; /* Ajusta según la posición del botón */
    right: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 200px;
}
@media (max-width: 768px) {
    .nav-tabs {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        padding: 1rem 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 3.5rem;
        left: 0;
        right: 0;
    }

    .nav-tabs.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .tab-link {
        padding: 12px;
        font-size: 1.2rem;
    }

    /* Mostrar el menú cuando esté activo */
    .mobile-menu.active {
        display: flex; /* Cambiar a flexbox para centrar el contenido */
        justify-content: center; /* Centrar horizontalmente */
        align-items: center; /* Centrar verticalmente */
        position: fixed; /* Asegurar que el menú ocupe toda la pantalla */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0); /* Fondo semitransparente */
        z-index: 1000;
    }

    /* Ocultar el contenido principal cuando el menú está activo */
    .hero-content.hidden {
        display: none;
    }

    /* Estilos para el botón */
    .menu-toggle {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1100;
    }

    /* Estilo de los elementos del menú */
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        text-align: center;
    }

    .mobile-menu li {
        margin: 20px 0;
    }

    .mobile-menu a {
        text-decoration: none;
        color: #333;
        font-size: 18px;
        padding: 10px 20px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    .mobile-menu a:hover {
        background-color: #ddd;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    .navbar-container {
        top: 6.8rem;
    }

    .hero-content {
        padding: 2rem 0.8rem;
        margin: 0 10px;
        width: calc(100% - 1px);
        margin-top: 2rem;
    }

    .hero-content h2 {
        font-size: 2rem;
        font-size: clamp(1.8rem, 5vw, 2.8rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}
