/*
Theme Name: Colegio Loyola Custom
Theme URI: https://somosmagis.com/dev/
Author: Colegio Loyola Gumilla
Description: Tema personalizado para el sitio institucional del Colegio Loyola Gumilla.
Version: 1.0.0
Text Domain: loyola-custom
*/

/* =========================================================
   1. VARIABLES GENERALES DEL TEMA
   ========================================================= */

:root {
    --loyola-red: #c8102e;
    --loyola-blue: #003b7a;
    --loyola-blue-dark: #002d62;
    --loyola-gold: #d6a84f;

    --loyola-white: #ffffff;
    --loyola-light: #f5f7fa;
    --loyola-text: #1f2937;
    --loyola-muted: #667085;

    --header-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   2. RESET BÁSICO
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--loyola-light);
    color: var(--loyola-text);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

/* =========================================================
   3. HEADER GENERAL
   ========================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    background: transparent;
}

/* =========================================================
   4. FRANJA ROJA SUPERIOR
   ========================================================= */

.top-bar-red {
    width: 100%;
    min-height: 50px;
    background-color: var(--loyola-red);
    color: var(--loyola-white);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-align: center;
}

/* =========================================================
   5. BARRA BLANCA TRANSPARENTE DEL MENÚ
   ========================================================= */

.nav-bar-white-transparent {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--header-shadow);
}

/* =========================================================
   6. CONTENEDOR GENERAL DEL NAV
   ========================================================= */

.nav-container {
    width: 100%;
    max-width: 1460px;
    margin: 0 auto;

    padding: 0 42px;

    position: relative;
    display: flex;
    align-items: stretch;

    min-height: 92px;
}

/* =========================================================
   7. LOGO INSTITUCIONAL
   ========================================================= */

.logo-wrapper {
    position: absolute;
    left: 42px;
    top: -30px;
    z-index: 3010;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.main-logo {
    width: auto;
    height: 118px;
    display: block;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.22));
}

/* =========================================================
   8. CONTENEDOR DE NAVEGACIÓN
   ========================================================= */

.header-navigation {
    width: 100%;
    padding-left: 120px;
    display: flex;
    flex-direction: column;
}

/* =========================================================
   9. QUICKLINKS SUPERIORES
   ========================================================= */

.sub-menu-row {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 24px;

    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.secondary-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
}

.secondary-menu a {
    color: #9ca3af;
    font-size: 0.84rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.secondary-menu a:hover {
    color: var(--loyola-red);
}

/* =========================================================
   10. ÍCONOS DE REDES SOCIALES
   ========================================================= */

.social-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-icons a {
    color: #4b5f78;
    font-size: 1.08rem;
    line-height: 1;
    text-decoration: none;
    opacity: 0.95;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.social-icons a:hover {
    color: var(--loyola-red);
    opacity: 1;
    transform: translateY(-1px);
}

/* =========================================================
   11. BOTÓN ACCESOS
   ========================================================= */

.accesos-wrapper {
    position: relative;
}

.btn-accesos {
    min-height: 38px;
    background-color: #064583;
    color: var(--loyola-white);

    border: 0;
    border-radius: 5px;

    padding: 0 22px;

    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.1px;

    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-accesos:hover {
    background-color: var(--loyola-blue-dark);
    transform: translateY(-1px);
}

/* =========================================================
   12. DESPLEGABLE DE ACCESOS
   ========================================================= */

.accesos-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    min-width: 180px;

    background-color: #064583;
    list-style: none;

    border-radius: 6px;
    padding: 7px 0;

    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);

    transition: all 0.2s ease;
    z-index: 3100;
}

.accesos-wrapper:hover .accesos-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accesos-dropdown a {
    display: block;

    padding: 11px 16px;

    color: var(--loyola-white);
    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 600;

    transition: background-color 0.2s ease;
}

.accesos-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* =========================================================
   13. MENÚ PRINCIPAL
   ========================================================= */

.main-navigation {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-right: 150px;
}

.main-menu {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    list-style: none;
}

.main-menu > li {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 42px;
}

.main-menu > li > a {
    color: #24466f;
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.main-menu > li > a i {
    font-size: 0.72rem;
}

.main-menu > li:hover > a {
    color: var(--loyola-red);
}

/* Somos Mag+s como ítem normal del menú principal */

.main-menu-external-item {
    min-height: 42px;
}

.main-menu-somos-magis {
    color: #24466f !important;
    text-decoration: none;

    font-size: 0.9rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.12px !important;

    display: inline-flex;
    align-items: center;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.main-menu-somos-magis:hover {
    color: var(--loyola-red) !important;
}

/* =========================================================
   14. DESPLEGABLES DEL MENÚ PRINCIPAL
   ========================================================= */

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 250px;

    background-color: var(--loyola-white);
    list-style: none;

    border-radius: 7px;
    padding: 8px 0;

    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: all 0.2s ease;
    z-index: 3090;
}

.main-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;

    padding: 11px 18px;

    color: #263238;
    text-decoration: none;

    font-size: 0.9rem;
    font-weight: 500;

    white-space: nowrap;

    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: #f4f7fb;
    color: var(--loyola-blue-dark);
    padding-left: 23px;
}

/* =========================================================
   15. EVITAR BORDE NEGRO AL HACER CLIC
   ========================================================= */

.main-menu a:focus,
.main-menu a:active,
.btn-accesos:focus,
.btn-accesos:active,
.accesos-dropdown a:focus,
.accesos-dropdown a:active,
.dropdown-menu a:focus,
.dropdown-menu a:active,
.mobile-menu-toggle:focus,
.mobile-menu-toggle:active {
    outline: none;
    box-shadow: none;
}

/* =========================================================
   16. BOTÓN MÓVIL
   ========================================================= */

.mobile-menu-toggle {
    display: none;
}

/* =========================================================
   17. HOME TEMPORAL / HERO
   ========================================================= */

.home-main {
    width: 100%;
}

.home-hero {
    position: relative;

    min-height: 100vh;
    width: 100%;

    background-image: url("https://images.unsplash.com/photo-1541339907198-e08756dedf3f?q=80&w=1920");
    background-size: cover;
    background-position: center top;

    display: flex;
    align-items: center;

    padding: 190px 40px 90px;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(0, 30, 65, 0.58),
        rgba(0, 30, 65, 0.25),
        rgba(0, 0, 0, 0.12)
    );
}

.home-hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    color: var(--loyola-white);
}

.hero-kicker {
    display: inline-block;

    margin-bottom: 18px;

    color: #f6d77a;

    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.home-hero h1 {
    max-width: 780px;

    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    font-weight: 800;

    margin-bottom: 22px;
}

.home-hero p {
    max-width: 660px;

    font-size: 1.12rem;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 24px;

    border-radius: 6px;

    font-weight: 800;
    text-decoration: none;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--loyola-red);
    color: var(--loyola-white);
}

.btn-primary:hover {
    background-color: #a80d26;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--loyola-white);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* =========================================================
   18. CONTENEDORES GENERALES
   ========================================================= */

.section-container,
.content-container,
.footer-container {
    width: 100%;
    max-width: 1180px;

    margin: 0 auto;

    padding-left: 24px;
    padding-right: 24px;
}

/* =========================================================
   19. ACCESOS RÁPIDOS TEMPORALES
   ========================================================= */

.quick-access-section {
    background-color: var(--loyola-white);
    padding: 80px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-heading span {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--loyola-red);

    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.85rem;
}

.section-heading h2 {
    color: var(--loyola-blue-dark);

    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.quick-card {
    background-color: #ffffff;

    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;

    padding: 28px 24px;

    text-decoration: none;

    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);

    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
    border-color: rgba(200, 16, 46, 0.25);
}

.quick-card i {
    color: var(--loyola-red);
    font-size: 1.8rem;
    margin-bottom: 18px;
}

.quick-card h3 {
    color: var(--loyola-blue-dark);
    font-size: 1.18rem;
    margin-bottom: 10px;
}

.quick-card p {
    color: var(--loyola-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================================
   20. CONTENIDO NORMAL DE WORDPRESS
   ========================================================= */

.site-content {
    padding: 185px 0 80px;
    min-height: 70vh;
    background-color: var(--loyola-light);
}

.content-article {
    background-color: var(--loyola-white);

    border-radius: 14px;

    padding: 46px;

    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
}

.page-title {
    color: var(--loyola-blue-dark);

    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;

    margin-bottom: 24px;
}

.entry-content {
    color: var(--loyola-text);

    font-size: 1.02rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.2em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--loyola-blue-dark);

    line-height: 1.2;

    margin-top: 1.6em;
    margin-bottom: 0.7em;
}

.entry-content ul,
.entry-content ol {
    margin-left: 1.4em;
    margin-bottom: 1.2em;
}

.entry-content li {
    margin-bottom: 0.4em;
}

/* =========================================================
   21. FOOTER
   ========================================================= */

.site-footer {
    background-color: #082f52;
    color: var(--loyola-white);
    margin-top: 0;
}

.footer-main {
    padding: 54px 0 46px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 1.35fr 1fr 0.9fr;
    gap: 64px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 22px;
}

.footer-logo {
    width: auto;
    height: 92px;
    display: block;
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.22));
}

.footer-brand h2 {
    color: var(--loyola-white);
    font-size: 1.28rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.footer-brand p {
    max-width: 280px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.7;
}

.footer-column h3 {
    color: var(--loyola-gold);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.footer-contact-list,
.footer-links {
    list-style: none;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.55;
}

.footer-contact-icon {
    width: 18px;
    min-width: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--loyola-gold);
    padding-left: 4px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-social a {
    width: 42px;
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--loyola-white);
    text-decoration: none;

    font-size: 1.18rem;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-social a:hover {
    background-color: rgba(214, 168, 79, 0.16);
    border-color: rgba(214, 168, 79, 0.3);
    color: var(--loyola-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 17px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* Responsive footer */

@media (max-width: 980px) {
    .footer-main {
        padding: 46px 0 38px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 34px;
    }
}

@media (max-width: 640px) {
    .footer-main {
        padding: 42px 0 34px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .footer-brand,
    .footer-column {
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo {
        height: 82px;
    }

    .footer-brand h2 {
        font-size: 1.12rem;
    }

    .footer-bottom p {
        font-size: 0.78rem;
    }
}

/* =========================================================
   22. RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 1180px) {
    .nav-container {
        padding-left: 28px;
        padding-right: 28px;
    }

    .logo-wrapper {
        left: 28px;
    }

    .header-navigation {
        padding-left: 145px;
    }

    .main-logo {
        height: 108px;
    }

    .main-navigation {
        padding-right: 60px;
    }

    .main-menu {
        gap: 18px;
    }

    .main-menu > li > a,
    .main-menu-somos-magis {
        font-size: 0.84rem !important;
    }

    .secondary-menu {
        gap: 14px;
    }

    .secondary-menu a {
        font-size: 0.8rem;
    }
}

/* =========================================================
   23. RESPONSIVE MÓVIL GRANDE
   ---------------------------------------------------------
   En móvil:
   - se ocultan los quicklinks superiores;
   - se muestran ACCESOS + redes sociales;
   - el menú principal queda debajo.
   ========================================================= */

@media (max-width: 980px) {
    .site-header {
        position: fixed;
    }

    .top-bar-red {
        min-height: 54px;

        font-size: 0.86rem;
        line-height: 1.35;
        letter-spacing: 3px;

        padding: 10px 92px 10px 118px;

        justify-content: center;
        text-align: center;
    }

    .nav-container {
        min-height: 68px;
        align-items: center;
        padding-left: 24px;
        padding-right: 24px;
    }

    .logo-wrapper {
        top: -36px;
        left: 28px;
    }

    .main-logo {
        height: 96px;
    }

    .mobile-menu-toggle {
        margin-left: auto;

        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;

        width: 42px;
        height: 42px;

        border: 0;
        background-color: var(--loyola-blue);
        border-radius: 6px;

        cursor: pointer;

        padding: 0 10px;

        box-shadow: 0 8px 18px rgba(0, 45, 98, 0.22);
    }

    .mobile-menu-toggle span {
        display: block;

        height: 2px;
        width: 100%;

        background-color: var(--loyola-white);
        border-radius: 99px;
    }

    .header-navigation {
        position: absolute;
        top: 100%;
        left: 0;

        width: 100%;

        padding-left: 0;

        background-color: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);

        display: none;

        max-height: calc(100vh - 122px);
        overflow-y: auto;
        overflow-x: hidden;
    }

    .header-navigation.is-open {
        display: block;
    }

    .secondary-menu {
        display: none !important;
    }

    .sub-menu-row {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        min-height: auto;

        padding: 20px 24px 18px;
        gap: 16px;

        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .accesos-wrapper {
        order: 1;
    }

    .social-icons {
        order: 2;
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .social-icons a {
        color: #24466f;
        font-size: 1.08rem;
        opacity: 1;
    }

    .btn-accesos {
        min-height: 38px;
        padding: 0 18px;
        font-size: 0.86rem;
    }

    .accesos-dropdown {
        left: 0;
        right: auto;
        top: calc(100% + 8px);
        min-width: 190px;
    }

    .main-navigation {
        min-height: auto;

        padding: 0 24px 24px;

        justify-content: flex-start;
    }

    .main-menu {
        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .main-menu > li {
        min-height: auto;

        display: block;

        border-bottom: 1px solid rgba(15, 23, 42, 0.08);

        padding: 0;
    }

    .main-menu > li > a,
    .main-menu-somos-magis {
        padding: 15px 0;
        justify-content: space-between;

        color: #002d62 !important;
        font-size: 0.9rem !important;
        font-weight: 500 !important;
        letter-spacing: 0.12px !important;
    }

    .dropdown-menu {
        position: static;

        opacity: 1;
        visibility: visible;
        transform: none;

        box-shadow: none;
        border-radius: 0;

        min-width: 100%;

        padding: 0 0 12px;

        display: none;
    }

    .main-menu > li:hover .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 14px;
        background-color: #f7f9fc;
    }

    .home-hero {
        padding-top: 150px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .quick-access-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-content {
        padding-top: 170px;
    }
}

/* =========================================================
   24. RESPONSIVE MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 640px) {
    .top-bar-red {
        min-height: 54px;

        font-size: 0.78rem;
        line-height: 1.35;
        letter-spacing: 2.6px;

        padding: 9px 74px 9px 110px;
    }

    .nav-container {
        min-height: 68px;

        padding-left: 18px;
        padding-right: 18px;
    }

    .logo-wrapper {
        left: 20px;
        top: -34px;
    }

    .main-logo {
        height: 90px;
    }

    .home-hero {
        min-height: 92vh;

        padding-top: 140px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .home-hero h1 {
        font-size: 2.2rem;
    }

    .home-hero p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .quick-access-section {
        padding: 56px 0;
    }

    .quick-access-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .content-article {
        padding: 30px 22px;
    }

    .site-content {
        padding-top: 155px;
    }
}

/* =========================================================
   25. MEJORAS PREMIUM PARA SUBMENÚS CON ÍCONOS
   ========================================================= */

.dropdown-link-with-icon {
    display: flex !important;
    align-items: center;
    gap: 11px;
}

.dropdown-icon {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 26px;

    border-radius: 8px;

    background-color: rgba(0, 59, 122, 0.08);
    color: var(--loyola-blue-dark);

    font-size: 0.82rem;

    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-link-with-icon:hover .dropdown-icon {
    background-color: rgba(200, 16, 46, 0.1);
    color: var(--loyola-red);
    transform: translateY(-1px);
}

.dropdown-submenu-item {
    position: relative;
}

.policies-trigger {
    justify-content: space-between;
    cursor: default;
}

.dropdown-link-label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.policies-chevron {
    font-size: 0.68rem;
    color: #98a2b3;
    margin-left: 14px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.dropdown-submenu-item:hover .policies-chevron {
    transform: rotate(180deg);
    color: var(--loyola-red);
}

.policies-submenu {
    list-style: none;

    margin: 2px 12px 8px 54px;
    padding: 0;

    border-left: 2px solid rgba(200, 16, 46, 0.18);

    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;

    transform: translateY(-4px);

    transition:
        max-height 0.25s ease,
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease;
}

.dropdown-submenu-item:hover .policies-submenu {
    max-height: 220px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.policy-link {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;

    padding: 10px 12px !important;

    color: #344054 !important;
    background-color: rgba(245, 247, 250, 0.78);

    border-radius: 8px;

    font-size: 0.84rem !important;
    font-weight: 500 !important;
    line-height: 1.35;

    white-space: normal !important;

    margin-top: 6px;

    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.policy-icon {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    border-radius: 50%;

    background-color: rgba(0, 59, 122, 0.09);
    color: var(--loyola-blue-dark);

    font-size: 0.76rem;

    margin-top: 1px;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.policy-link:hover {
    background-color: rgba(200, 16, 46, 0.08) !important;
    color: var(--loyola-red) !important;
    transform: translateX(2px);
    padding-left: 12px !important;
}

.policy-link:hover .policy-icon {
    background-color: rgba(200, 16, 46, 0.13);
    color: var(--loyola-red);
}

.dropdown-menu-premium {
    min-width: 310px;
}

/* =========================================================
   26. RESPONSIVE DEL SUBMENÚ DE POLÍTICAS
   ========================================================= */

@media (max-width: 980px) {
    .dropdown-link-with-icon {
        gap: 10px;
    }

    .dropdown-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 0.78rem;
    }

    .policies-submenu {
        margin: 0 0 10px 34px;
        border-left: 2px solid rgba(200, 16, 46, 0.18);
    }

    .dropdown-submenu-item:hover .policies-submenu {
        max-height: 260px;
    }

    .policy-link {
        font-size: 0.83rem !important;
    }
}

/* =========================================================
   27. OCULTAR BARRA DE SCROLL VISUAL
   ---------------------------------------------------------
   Permite seguir bajando/subiendo, pero oculta la barra
   lateral visible en navegadores compatibles.
   ========================================================= */

html,
body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.header-navigation {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.header-navigation::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* =========================================================
   AJUSTE PARA BARRA ADMIN DE WORDPRESS
   ---------------------------------------------------------
   Cuando estás logueado, WordPress muestra una barra negra
   superior. Este ajuste evita que el header fijo quede
   debajo de esa barra.
   ========================================================= */

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}