/* Desplegable «Como ayudar» (compartido por todas las páginas con el menú superior) */
.topbar {
    overflow: visible;
}

.site-nav {
    display: block;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--black, #121212);
    background: #ffffff;
    color: var(--black, #121212);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.topbar .topbar-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--black, #121212);
    background: #f3c9e4;
    color: var(--black, #121212);
    text-decoration: none;
    border-radius: 10px;
    min-width: 42px;
    min-height: 42px;
    font-size: 0;
    line-height: 1;
    margin-right: 8px;
    position: relative;
    box-shadow: 0 4px 10px rgba(15, 62, 114, 0.16);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.topbar .topbar-login::before {
    content: "";
    width: 16px;
    height: 16px;
    display: block;
    background: #0f3e72;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.topbar .topbar-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(15, 62, 114, 0.22);
    filter: brightness(1.02);
}

@media (min-width: 769px) {
    .topbar .topbar-inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .topbar .logo {
        flex: 0 0 auto;
    }

    .topbar .site-nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .topbar .menu {
        flex-wrap: nowrap !important;
        justify-content: center;
        gap: 10px 22px;
        width: 100%;
    }

    .topbar .menu a,
    .topbar .nav-como-ayudar > summary {
        font-size: clamp(15px, 1.45vw, 18px);
        letter-spacing: 0.012em;
        white-space: nowrap;
    }

    .topbar .topbar-login,
    .topbar .donar-btn {
        flex: 0 0 auto;
    }

    .topbar .topbar-login {
        margin-right: 0;
    }
}

.mobile-login-item {
    display: none;
}

.mobile-login-item a::before {
    content: " ";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: -2px;
    background: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.menu-item-dropdown {
    position: relative;
    list-style: none;
}

.nav-como-ayudar {
    position: relative;
}

.nav-como-ayudar > summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--black, #121212);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.topbar .menu .nav-como-ayudar > summary {
    font-size: 100% !important;
    font-family: inherit !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
}

.nav-como-ayudar > summary::-webkit-details-marker {
    display: none;
}

.nav-como-ayudar > summary::marker {
    content: "";
}

.nav-como-ayudar > summary:hover {
    text-decoration: underline;
}

.nav-como-ayudar__caret {
    font-size: 0.62em;
    line-height: 1;
    opacity: 0.75;
}

.nav-como-ayudar__panel {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 8px);
    margin: 0;
    padding: 10px 0;
    min-width: min(300px, 92vw);
    background: #b9daf5;
    border: 2px solid var(--black, #121212);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    list-style: none;
    z-index: 60;
}

.nav-como-ayudar__panel li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-como-ayudar__panel a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--black, #121212);
    font-weight: 600;
    font-style: normal;
    text-transform: none;
    letter-spacing: normal;
    font-family: inherit;
    line-height: 1.3;
}

.nav-como-ayudar__panel a:hover {
    background: rgba(255, 255, 255, 0.55);
}

.nav-como-ayudar__panel a:focus-visible {
    outline: 2px solid #0f3e72;
    outline-offset: -2px;
}

@media (max-width: 900px) {
    .nav-como-ayudar__panel {
        left: 0;
        transform: none;
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .topbar .topbar-inner {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 12px;
    }

    .topbar .logo {
        display: flex;
        justify-content: flex-start;
        flex: 0 0 auto;
    }

    .topbar .logo img {
        width: 64px;
        height: 64px;
    }

    .topbar .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 110px;
        max-width: 140px;
        margin: 0 auto;
    }

    .topbar .topbar-login {
        display: none;
    }

    .topbar .site-nav {
        display: none;
        width: 100%;
        order: 4;
    }

    .topbar .site-nav.is-open {
        display: block;
    }

    .topbar .menu {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        justify-content: stretch !important;
    }

    .topbar .menu > li {
        list-style: none;
    }

    .topbar .mobile-login-item {
        display: list-item;
    }

    .topbar .menu a,
    .topbar .nav-como-ayudar > summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 8px 10px;
        text-align: center;
        font-size: 15px !important;
        border: 1px solid rgba(18, 18, 18, 0.25);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.58);
    }

    .topbar .menu .nav-como-ayudar > summary {
        font-size: 15px !important;
    }

    .topbar .menu-item-dropdown {
        grid-column: 1 / -1;
    }

    .topbar .nav-como-ayudar > summary {
        justify-content: center;
    }

    .topbar .nav-como-ayudar__panel {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        margin-top: 8px;
        min-width: 0;
        width: 100%;
        box-shadow: none;
    }

    .topbar .donar-btn {
        flex: 0 0 auto;
        min-width: 94px;
        padding: 8px 10px;
        font-size: 13px;
        line-height: 1.05;
    }
}

@media (max-width: 480px) {
    .topbar .menu {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-footer .footer-inner {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 14px;
        padding-bottom: 16px;
    }

    .site-footer .footer-subscribe {
        max-width: none !important;
        min-width: 0;
        padding: 12px 12px 10px;
    }

    .site-footer .footer-subscribe h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .site-footer .footer-subscribe p {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .site-footer .subscribe-form {
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .site-footer .subscribe-form input {
        min-width: 170px;
    }

    .site-footer .subscribe-form button {
        white-space: nowrap;
        min-height: 40px;
    }

    .site-footer .footer-brand {
        flex: 0 0 auto;
        text-align: center !important;
    }

    .site-footer .footer-brand img {
        width: 92px;
        height: 92px;
        margin-inline: auto !important;
    }

    .site-footer .footer-credit {
        font-size: 13px;
        padding-top: 8px;
        padding-bottom: 9px;
    }
}

@media (max-width: 560px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .site-footer .footer-brand {
        justify-self: center;
    }

    .site-footer .subscribe-form {
        flex-direction: column;
        align-items: stretch;
    }

    .site-footer .subscribe-form input,
    .site-footer .subscribe-form button {
        width: 100%;
    }
}
