/*
 * components.css
 * Componentes reutilizables: navbar, menús, botones, footer
 */

/* Altura reservada bajo el navbar fijo (padding 1rem + logo 3.5rem + padding 1rem + margen) */
:root {
    --navbar-offset: 5.75rem;
        --spacing: .25rem;

}

@media (max-width: 768px) {
    :root {
        --navbar-offset: 5.5rem;
    }
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.navbar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.navbar.at-top {
    background: rgba(var(--color-bg-rgb), 0.75);
    backdrop-filter: blur(10px);
}

.navbar.at-top .navbar-container { justify-content: space-between; }
.navbar.at-top .navbar-menu {
    background: var(--color-surface);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(var(--color-bg-rgb), 0.75);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-navbar);
}

.navbar.scrolled .navbar-container {
    justify-content: center;
    position: relative;
}

.navbar.scrolled .navbar-logo-link {
    position: absolute;
    left: 1.5rem;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .navbar-menu {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0 auto;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .navbar-menu-link {
    background: transparent;
    color: var(--color-text);
    padding: 0.5rem 1rem;
}

.navbar.scrolled .navbar-menu-link.active { color: var(--color-accent); }
.navbar.scrolled .navbar-menu-link.dropdown-toggle { background: transparent; color: var(--color-text); }
.navbar.scrolled .navbar-menu-link.dropdown-toggle.active { color: var(--color-accent); }

@media (max-width: 1024px) {
    .navbar, .navbar.scrolled, .navbar.at-top {
        background: rgba(var(--color-bg-rgb), 0.75);
        backdrop-filter: blur(10px);
        box-shadow: var(--shadow-navbar);
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .navbar .navbar-container, .navbar.scrolled .navbar-container { justify-content: space-between; position: static; }
    .navbar .navbar-logo-link, .navbar.scrolled .navbar-logo-link { position: static; }
    .navbar .navbar-right, .navbar.scrolled .navbar-right { margin-left: auto; }
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo-link {
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar-logo { height: 3.5rem; width: auto; transition: transform 0.3s ease; }
.navbar-logo:hover { transform: scale(1.05); }
.navbar-right { display: flex; align-items: center; gap: 1.5rem; }

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-surface-glass);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-menu-item { position: relative; }
.navbar-menu-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    transition: color 0.3s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
    border-radius: 1rem;
}

.navbar-menu-link:hover, .navbar-menu-link.active { color: #8DA54B; }
.navbar.at-top .navbar-menu-link.active { background: rgba(var(--color-primary-rgb), 0.1); }

@media (min-width: 1025px) {
    .navbar-menu {
        background: rgba(var(--color-nav-tint-rgb), 0.05);
        padding: 0.25rem;
        border-radius: 20px;
        gap: 0;
    }
    .navbar-menu-link {
        font-family: var(--font-menu);
        font-size: 0.875rem;
        font-weight: 500;
        padding: 8px 18px;
        color: var(--color-text-nav);
        border-radius: 20px;
    }
    .navbar-menu-link:hover { background-color: rgba(var(--color-nav-tint-rgb), 0.1); color: #8DA54B;}
    .navbar-menu-link.active { background-color: var(--color-primary); color: white; box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1); }
    .navbar.at-top .navbar-menu { background: var(--color-surface); padding: 0.25rem; border-radius: 20px; }
    .navbar.at-top .navbar-menu-link { font-family: var(--font-menu); font-size: 0.875rem; font-weight: 500; padding: 8px 18px; color: var(--color-text-nav); border-radius: 20px; }
    .navbar.at-top .navbar-menu-link:hover { background-color: rgba(var(--color-nav-tint-rgb), 0.1); color: var(--color-text-nav); }
    .navbar.at-top .navbar-menu-link.active { background-color: var(--color-primary); color: white; }
    .navbar.scrolled .navbar-menu { background: rgba(var(--color-nav-tint-rgb), 0.05); padding: 0.25rem; border-radius: 20px; gap: 0; }
    .navbar.scrolled .navbar-menu-link, .navbar.scrolled .navbar-menu-link.dropdown-toggle {
        font-family: var(--font-menu);
        font-size: 0.875rem;
        font-weight: 500;
        padding: 8px 18px;
        color: var(--color-text-nav);
        border-radius: 20px;
        background: transparent;
    }
    .navbar.scrolled .navbar-menu-link:hover, .navbar.scrolled .navbar-menu-link.dropdown-toggle:hover { background-color: rgba(var(--color-nav-tint-rgb), 0.1); color: var(--color-text-nav); }
    .navbar.scrolled .navbar-menu-link.active, .navbar.scrolled .navbar-menu-link.dropdown-toggle.active { background-color: var(--color-primary); color: white; }
}

.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 0.5rem; }
.dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
}
.dropdown.active .dropdown-toggle::after { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--color-dropdown-bg);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.65rem 1rem;
    margin: 0.15rem 0.5rem;
    border-radius: 0.65rem;
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: rgba(26, 47, 40, 0.08);
    color: #8DA54B;
    outline: none;
}
@media (min-width: 1025px) {
    .dropdown-item { font-family: var(--font-menu); font-size: 0.875rem; font-weight: 500; color: var(--color-text-nav); }
    .dropdown-item:hover,
    .dropdown-item:focus-visible { background: rgba(26, 47, 40, 0.08); color: #8DA54B; }
}

.dropdown-menu--mega {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3.5rem;
    min-width: 36rem;
    padding: 1.75rem 2.25rem 2rem;
    left: auto;
    right: 0;
    border-radius: 0.75rem;
}
.dropdown-mega-col {
    min-width: 0;
}
.dropdown-mega-heading {
    margin: 0 0 0.75rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.4);
    font-family: var(--font-title);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a2f28;
}
.dropdown-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dropdown-item--mega {
    padding: 0.55rem 0.85rem;
    margin: 0;
    border-radius: 0.65rem;
    background: transparent;
}
.dropdown-item--mega:hover,
.dropdown-item--mega:focus-visible {
    background: rgba(26, 47, 40, 0.08);
    color: #8DA54B;
}
@media (min-width: 1025px) {
    .dropdown-item--mega {
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--color-text);
    }
    .dropdown-item--mega:hover,
    .dropdown-item--mega:focus-visible {
        background: rgba(26, 47, 40, 0.08);
        color: #8DA54B;
    }
}

.mobile-dropdown-heading {
    padding: 0.75rem 0 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
}

/* Toggle claro / oscuro (iconos: luna en modo claro, sol en modo oscuro) */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
    color: var(--color-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.1);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}
.theme-toggle-icon--sun {
    display: none;
}
html[data-theme="dark"] .theme-toggle-icon--moon {
    display: none;
}
html[data-theme="dark"] .theme-toggle-icon--sun {
    display: flex;
}

.search-icon {
    background: none;
    border: none;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    color: var(--color-icon);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.search-icon:hover { color: var(--color-primary); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--color-icon);
    transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 5.5rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 998;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem 1.5rem 4rem;
    overflow-y: auto;
    height: calc(100vh - 5.5rem);
    flex-direction: column;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
    .mobile-menu { display: flex; }
    .navbar-menu { display: none; }
    .menu-toggle { display: flex; }
    .search-icon { display: none; }
}

.mobile-menu > ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mobile-menu-item { margin-bottom: 0.75rem; width: 100%; }
.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: white;
    font-family: var(--font-menu);
    font-size: 1.25rem;
    border-radius: 0.5rem;
    transition: background 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.mobile-dropdown > .mobile-menu-link::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
}
.mobile-dropdown.active > .mobile-menu-link::after { transform: rotate(180deg); }
.mobile-menu-link:hover, .mobile-menu-link.active { background: rgba(255, 255, 255, 0.2); }
.mobile-dropdown-menu { margin-top: 0.5rem; padding-left: 0; display: none; list-style: none; }
.mobile-dropdown.active .mobile-dropdown-menu { display: block; }
.mobile-search {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.mobile-search .theme-toggle {
    color: #fff;
}
.mobile-search .theme-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}
.mobile-search .theme-toggle:focus-visible {
    outline-color: #fff;
}
.mobile-search-icon {
    background: none;
    border: none;
    width: 2rem;
    height: 2rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-search-icon:hover { opacity: 0.8; }

/* CONTENT SECTION - Scroll reveal */
.content-section {
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .content-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .content-section.visible { opacity: 1; transform: none; }
    .navbar-logo,
    .navbar-logo-link {
        transition: none;
    }
    .navbar-logo:hover {
        transform: none;
    }
    .scroll-to-top {
        transition: none;
    }
    .scroll-to-top.visible {
        transform: none;
    }
    .scroll-to-top:hover {
        transform: none;
    }
}

/* Alternar fondos entre secciones */
.content-section:nth-of-type(even) {
    background: var(--color-section-even);
}
.content-section:nth-of-type(odd) {
    background: var(--color-section-odd);
}
.main-content .container > .content-section:first-of-type {
    background: var(--color-section-odd);
}

/* SEARCH MODAL */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.3s step-end;
    pointer-events: none;
}
.search-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s step-start;
    pointer-events: auto;
}
.search-modal.active.closing {
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s step-end 0.25s;
}
.search-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}
.search-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    background: var(--color-modal-surface);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-modal.active .search-modal-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.search-modal.active.closing .search-modal-content {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.search-modal-close:hover { background: var(--color-close-hover); color: var(--color-primary); }
.search-form { display: flex; flex-direction: column; }
.search-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}
.search-input {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-input-border);
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.search-submit {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.search-submit:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.4);
}
@media (max-width: 768px) {
    .search-modal-content { padding: 2rem 1.5rem; width: 95%; }
    .search-form-row { flex-direction: column; }
    .search-input { padding: 0.875rem 1rem; font-size: 0.9375rem; }
    .search-submit { width: 100%; padding: 0.875rem 1.5rem; }
}

/* FOOTER
 * Visual de udlap-footers.css con las clases de este archivo.
 * Breakpoint desktop (3 columnas, checks, texto a la izquierda): min-width 993px
 */
.footer {
    background: #1a1a1a;
    color: #e8e8e8;
    margin-top: 3.125rem;
    padding: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.75;
}
.footer-inner {
    width: 100%;
    margin-inline: auto;
    padding: 3rem 1rem 0;
    box-sizing: border-box;
    padding-block:calc(var(--spacing)*16);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 75rem;
    margin-inline: auto;    
}
.footer-col,
.footer-col--brand,
.footer-col--contact,
.footer-col--social,
.footer-col--nav {
    min-width: 0;
}
.footer-col--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-col--contact,
.footer-col--social,
.footer-col--nav {
    text-align: center;
}
.footer-heading {
    margin: 0 0 1rem;
    font-family: var(--font-title);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}
.footer-logo {
    width: auto;
    height: clamp(6rem, 14vw, 8rem);
    max-width: 13.75rem;
    margin: 0 0 1.5rem;
    display: block;
    object-fit: contain;
}
.footer-text {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-style: 0.875rem;
    font-size: 1.1875rem;
    line-height: 1.65;
    color: #ccc;
}
.footer-text:last-child {
    margin-bottom: 0;
}
.footer-text--name {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #fff;
}
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}
.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: var(--color-accent-orange, #ff6b35);
    color: #fff;
    text-decoration: none;
}
.footer-link,
.footer-copyright-link {
    color: var(--color-accent-orange, #ff6b35);
    text-decoration: none;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-link:hover,
.footer-link:focus-visible,
.footer-copyright-link:hover,
.footer-copyright-link:focus-visible {
    color: #fff;
}
.footer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1.25;
}
.footer-nav li + li {
    margin-top: 0.125rem;
}
.footer-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1.1875rem;
    line-height: 1.25;
    color: #ccc;
    text-decoration: none;
    transition: color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-nav-link:hover,
.footer-nav-link:focus-visible {
    color: var(--color-accent-orange, #ff6b35);
    text-decoration: none;
}
.footer-check {
    display: none;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: var(--color-accent-orange, #ff6b35);
}
.footer-bottom {
    padding: 1.25rem 1rem 2rem;
    margin-inline: -1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;    
}
.footer-copyright {
    margin: 0 auto 0.5rem;
    max-width: 800px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
}

/* Footer internas (simple) */
.footer--simple {
    background: var(--color-footer, #262d27);
    color: #fff;
    text-align: center;
    border-top: none;
}
.footer--simple .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-footer-copyright, #1e2420);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3rem 1.5rem 2rem;
    box-sizing: border-box;
}
.footer--simple .footer-logo-link {
    display: block;
}
.footer--simple .footer-logo {
    height: auto;
    max-width: 300px;
    margin: 0 auto 30px;
}
.footer--simple .footer-text,
.footer--simple .footer-copyright {
    max-width: 800px;
    margin: 0 auto 0.5rem;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.75;
    color: inherit;
}
.footer--simple .footer-link,
.footer--simple .footer-copyright-link {
    transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.footer--simple .footer-link:hover,
.footer--simple .footer-link:focus-visible,
.footer--simple .footer-copyright-link:hover,
.footer--simple .footer-copyright-link:focus-visible {
    color: #e2e8f0;
}
.footer--simple .footer-bottom {
    width: 100%;
    padding: 0;
    margin-inline: 0;
    border-top: none;
}

[data-theme='dark'] .footer--simple {
    background: #131517;
}
[data-theme='dark'] .footer--simple .footer-inner {
    background: #0a0b0c;
}
[data-theme='dark'] .footer--simple .footer-link:hover,
[data-theme='dark'] .footer--simple .footer-link:focus-visible,
[data-theme='dark'] .footer--simple .footer-copyright-link:hover,
[data-theme='dark'] .footer--simple .footer-copyright-link:focus-visible {
    color: #e2e8f0;
}

@media (min-width: 993px) {
    .footer-inner {
        padding: 4rem 1rem 0;
    }
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;        
    }
    .footer-col--contact,
    .footer-col--social,
    .footer-col--nav {
        text-align: left;
    }
    .footer-col--social .footer-social,
    .footer-col--nav .footer-social {
        justify-content: flex-start;
    }
    .footer-check {
        display: block;
    }
     .footer:not(.footer--simple) .footer-nav {
      columns: 2;
      column-gap: 1.5rem;
    }
    .footer:not(.footer--simple) .footer-nav li {
      break-inside: avoid;
    }
}

@media (max-width: 1024px) {
    .footer--simple .footer-logo {
        max-width: 250px;
    }
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.scroll-to-top svg { width: 1.5rem; height: 1.5rem; }

@media (max-width: 1024px) {
    .scroll-to-top { width: 2.5rem; height: 2.5rem; bottom: 1.5rem; right: 1.5rem; }
    .scroll-to-top svg { width: 1.25rem; height: 1.25rem; }
}

.footer:not(.footer--simple) .footer-grid {
  padding-block-end: calc(var(--spacing, 0.25rem) * 16);
}