/* ==========================================
   Footer Congreso
   ========================================== */

.ahc-main-footer {
    width: 100%;
    background-color: transparent;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 3;
}

.ahc-footer-background {
    width: 100%;
    background-color: var(--ahc-footer-bg, #8C1318);
    background-image: var(--ahc-footer-bg-image);
    background-position: bottom center;
    background-repeat: no-repeat;
    background-size: 100% auto;
    border-radius: 32px 32px 0 0;
    padding: 60px 0 180px;
}

.ahc-main-footer .gdev-footer-container.ahc-footer-card {
    width: calc(100% - 64px);
    margin: 0 auto;
    color: var(--white, #FFFFFF);
    position: relative;
}

.ahc-footer-main-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.ahc-footer-logo-col {
    flex: 0 0 260px;
}

.ahc-footer-logo-col a {
    display: inline-flex;
    align-items: center;
}

.ahc-footer-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.ahc-footer-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr)) auto;
    gap: 30px;
}

.ahc-footer-col h4 {
    margin: 0 0 20px;
    color: #FFFFFF;
    font-family: var(--font-heading, inherit);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
}

.ahc-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ahc-footer-menu li {
    margin: 0 0 10px;
    padding: 0;
}

.ahc-footer-menu a,
.ahc-footer-legal-links a,
.ahc-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.ahc-footer-menu a {
    font-size: 14px;
    line-height: 1.45;
}

.ahc-footer-menu a:hover,
.ahc-footer-legal-links a:hover,
.ahc-contact-item a:hover {
    color: #FFFFFF;
}

.ahc-footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 5px;
}

.ahc-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
}

.ahc-contact-icon {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.8);
}

.ahc-footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 40px 0 20px;
}

.ahc-footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.ahc-copyright {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.8);
}

.ahc-footer-legal-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ahc-footer-legal-links a {
    font-size: 12px;
    line-height: 1.45;
}

/* ==========================================
   Modal existente del tema
   ========================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border-radius: 8px;
    color: #333;
    text-align: center;
}

.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.modal-body .logo-area img {
    max-width: 150px;
    margin-bottom: 20px;
}

.modal-body .title-area h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.modal-body .description-area p {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.modal-footer {
    margin-top: 25px;
}

@media (max-width: 1024px) {
    .ahc-main-footer .gdev-footer-container.ahc-footer-card {
        width: calc(100% - 48px);
    }

    .ahc-footer-main-row {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .ahc-footer-logo-col {
        flex: 0 0 auto;
        display: flex;
        justify-content: center;
    }

    .ahc-footer-logo {
        max-width: 220px;
    }

    .ahc-footer-grid {
        width: 100%;
        grid-template-columns: repeat(4, minmax(120px, 1fr));
        gap: 25px;
    }

    .ahc-footer-contact-details {
        grid-column: span 4;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 30px;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .ahc-footer-background {
        border-radius: 24px 24px 0 0;
        padding: 50px 0 140px;
    }

    .ahc-main-footer .gdev-footer-container.ahc-footer-card {
        width: calc(100% - 40px);
    }

    .ahc-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }

    .ahc-footer-contact-details {
        grid-column: span 2;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .ahc-contact-item {
        white-space: normal;
        justify-content: center;
    }

    .ahc-footer-bottom-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .ahc-footer-legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ahc-footer-background {
        border-radius: 16px 16px 0 0;
        padding: 40px 0 100px;
    }

    .ahc-main-footer .gdev-footer-container.ahc-footer-card {
        width: calc(100% - 32px);
    }

    .ahc-footer-grid {
        grid-template-columns: 1fr;
    }

    .ahc-footer-contact-details {
        grid-column: span 1;
    }

    .ahc-footer-legal-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.ahc-footer-social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ahc-footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transition: all 0.25s ease;
}

.ahc-footer-social-link:hover {
    background-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.ahc-footer-social-link img {
    width: 18px;
    height: 18px;
    display: block;
    object-fit: contain;
}

.ahc-footer-account-link.is-disabled,
.ahc-footer-account-link[aria-disabled="true"] {
    opacity: 0;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ahc-footer-social-links {
        justify-content: center;
        margin-top: 20px;
    }
}