/*
 * components.css
 * Componentes reutilizables: navbar, menús, botones, footer
 */

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition:
        transform var(--duration-navbar, 0.72s) var(--ease-bounce, cubic-bezier(0.22, 1.45, 0.32, 1)),
        opacity 0.45s var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1)),
        background-color var(--duration-navbar, 0.72s) var(--ease-bounce, cubic-bezier(0.22, 1.45, 0.32, 1)),
        box-shadow var(--duration-navbar, 0.72s) var(--ease-bounce, cubic-bezier(0.22, 1.45, 0.32, 1)),
        padding var(--duration-navbar, 0.72s) var(--ease-bounce, cubic-bezier(0.22, 1.45, 0.32, 1));
    padding: 1rem 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

.navbar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Estado al inicio de la página (escritorio: fondo semitransparente #F5F5F0) */
.navbar.at-top {
    background: rgba(245, 245, 240, 0.75);
    backdrop-filter: blur(10px);
}

.navbar.at-top .navbar-container {
    justify-content: space-between;
}

.navbar.at-top .navbar-menu {
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.navbar.at-top .navbar-menu-link {
    transition: all 0.45s var(--ease-in-out);
}

/* Estado al hacer scroll (centrado con cintillo, fondo semitransparente #F5F5F0 en escritorio) */
.navbar.scrolled {
    background: rgba(245, 245, 240, 0.75);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .navbar-container {
    justify-content: space-between;
    position: relative;
}

.navbar.scrolled .navbar-logo-link {
    position: static;
}

.navbar.scrolled .navbar-menu {
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
}

.navbar.scrolled .navbar-menu-link {
    background: transparent;
    color: #1a1a1a;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.45s var(--ease-in-out);
    text-decoration: none;
    display: inline-block;
    box-shadow: none;
}

.navbar.scrolled .navbar-menu-link:hover {
    background: transparent;
    color: #1a1a1a;
    transform: none;
    box-shadow: none;
}

.navbar.scrolled .navbar-menu-link.active {
    background: rgba(210, 121, 97, 0.25);
    color: #D27961;
    box-shadow: none;
}

.navbar.scrolled .navbar-menu-link.dropdown-toggle {
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
}

.navbar.scrolled .navbar-menu-link.dropdown-toggle:hover {
    background: transparent;
    color: #1a1a1a;
}

.navbar.scrolled .navbar-menu-link.dropdown-toggle.active {
    background: rgba(210, 121, 97, 0.25);
    color: #D27961;
}

/* Navbar en móvil y tableta: mismo aspecto siempre (sin cambios al hacer scroll), fondo semitransparente */
@media (max-width: 1024px) {
    .navbar,
    .navbar.scrolled,
    .navbar.at-top {
        background: rgba(245, 245, 240, 0.75);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    /* Mismo comportamiento que móvil: logo a la izquierda, hamburguesa a la derecha (sin centrado al hacer scroll) */
    .navbar .navbar-container,
    .navbar.scrolled .navbar-container {
        justify-content: space-between;
        position: static;
    }

    .navbar .navbar-logo-link,
    .navbar.scrolled .navbar-logo-link {
        position: static;
    }

    /* Las 3 líneas del menú hamburguesa siempre alineadas a la derecha en móvil y tableta */
    .navbar .navbar-right,
    .navbar.scrolled .navbar-right {
        margin-left: auto;
        margin-right: 0;
    }
}

.navbar-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    height: 3.5rem;
    width: auto;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem;
    margin-right: var(--navbar-menu-shift, 0px);
    transition: margin var(--duration-navbar, 0.72s) var(--ease-bounce, cubic-bezier(0.22, 1.45, 0.32, 1));
}

/* Menú desktop - base */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.navbar-menu-item {
    position: relative;
    margin-right: 0px;
    margin-bottom: 0px;
}

.navbar-menu-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #1a1a1a;
    transition: color 0.45s var(--ease-in-out);
    border-radius: 1rem;
}

.navbar-menu-link:hover {
    color: #FF6B35;
}

.navbar-menu-link.active {
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.15);
}

.navbar.at-top .navbar-menu-link.active {
    background: rgba(255, 107, 53, 0.2);
    color: #D27961;
}

/* Menú desktop: estilo tipo pagina1 (solo desktop, tipografía Poppins) */
@media (min-width: 1025px) {
    .navbar-menu {
        background: rgba(26, 47, 40, 0.05);
        padding: 0.25rem;
        border-radius: 20px;
        backdrop-filter: none;
        gap: 0;
    }

    .navbar-menu-link {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 500;
        padding: 8px 18px;
        color: #1A2F28;
        border-radius: 20px;
        transition: all 0.45s var(--ease-in-out);
        white-space: nowrap;
    }

    .navbar-menu-link:hover {
        background-color: rgba(26, 47, 40, 0.1);
        color: #1A2F28;
    }

    .navbar-menu-link.active {
        background-color: #88B04B;
        color: white;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navbar.at-top .navbar-menu {
        background: #fff;
        padding: 0.25rem;
        border-radius: 20px;
        backdrop-filter: none;
    }

    .navbar.at-top .navbar-menu-link {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 500;
        padding: 8px 18px;
        color: #1A2F28;
        border-radius: 20px;
    }

    .navbar.at-top .navbar-menu-link:hover {
        background-color: rgba(26, 47, 40, 0.1);
        color: #1A2F28;
    }

    .navbar.at-top .navbar-menu-link.active {
        background-color: #88B04B;
        color: white;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Estado scrolled: mismo estilo pill con Poppins */
    .navbar.scrolled .navbar-menu {
        background: rgba(26, 47, 40, 0.05);
        padding: 0.25rem;
        border-radius: 20px;
        gap: 0;
    }

    .navbar.scrolled .navbar-menu-link,
    .navbar.scrolled .navbar-menu-link.dropdown-toggle {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 500;
        padding: 8px 18px;
        color: #1A2F28;
        border-radius: 20px;
        background: transparent;
        transition: all 0.45s var(--ease-in-out);
        white-space: nowrap;
    }

    .navbar.scrolled .navbar-menu-link:hover,
    .navbar.scrolled .navbar-menu-link.dropdown-toggle:hover {
        background-color: rgba(26, 47, 40, 0.1);
        color: #1A2F28;
    }

    .navbar.scrolled .navbar-menu-link.active,
    .navbar.scrolled .navbar-menu-link.dropdown-toggle.active {
        background-color: #88B04B;
        color: white;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    /* Forzar estado activo visible en escritorio (por si at-top/scrolled no aplican aún) */
    .navbar .navbar-menu-link.active,
    .navbar .navbar-menu-link.dropdown-toggle.active {
        background-color: #88B04B !important;
        color: white !important;
        box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Dropdown */
.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.45s var(--ease-in-out);
    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: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 0.5rem 0;
    min-width: 12rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.45s var(--ease-in-out);
    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.75rem 1.5rem;
    color: #1a1a1a;
    transition: all 0.45s var(--ease-in-out);
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

@media (min-width: 1025px) {
    .dropdown-item {
        font-family: 'Poppins', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #1A2F28;
    }

    .dropdown-item:hover {
        background: rgba(26, 47, 40, 0.1);
        color: #88B04B;
    }
}

/* Megamenú «Componentes» (ancho completo bajo la barra; desktop + móvil) */
.navbar-menu-item.megamenu {
    position: static;
}

.megamenu-panel.dropdown-menu {
    left: 0;
    right: 0;
    width: auto;
    max-width: 100%;
    margin-top: 0.75rem;
    padding: 0;
    min-width: 0;
    border-radius: 0.75rem;
}

.megamenu-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1.25rem;
    padding: 1rem 1.25rem 0.65rem;
    align-items: start;
}

.megamenu-column {
    min-width: 0;
}

.megamenu-heading {
    font-family: var(--font-menu);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #334155;
    margin: 0 0 0.5rem;
    padding: 0 0.65rem 0.35rem;
    border-bottom: 2px solid rgba(210, 121, 97, 0.35);
}

.megamenu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.megamenu-list > li {
    margin: 0;
}

.megamenu-panel .dropdown-item {
    padding: 0.5rem 0.65rem;
    border-radius: 0.45rem;
    white-space: normal;
    text-decoration: none;
}

.megamenu-panel .dropdown-item:hover,
.megamenu-panel .dropdown-item:focus-visible {
    text-decoration: none;
}

.megamenu-footer {
    margin: 0;
    padding: 0.65rem 1.25rem 0.95rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.megamenu-ver-todos {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent, #d27961);
    text-decoration: none;
}

.megamenu-ver-todos:hover,
.megamenu-ver-todos:focus-visible {
    text-decoration: none;
}

@media (min-width: 1101px) {
    .megamenu-inner:has(> .megamenu-column:nth-child(4):last-child) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1100px) {
    .megamenu-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.mobile-dropdown--megamenu .mobile-dropdown-menu {
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-megamenu-label {
    list-style: none;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.65rem 1.5rem 0.25rem;
    margin: 0;
    pointer-events: none;
}

.mobile-megamenu-label:first-of-type {
    padding-top: 0.35rem;
}

/* Búsqueda */
.search-icon {
    background: none;
    border: none;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    color: #1a1a1a;
    transition: color 0.45s var(--ease-in-out);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    outline: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.search-icon:hover {
    color: #FF6B35;
}

.search-icon:focus,
.search-icon:active {
    outline: none;
    border: none;
}

/* Menú hamburguesa (móvil) */
.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: #1a1a1a;
    transition: all 0.45s var(--ease-in-out);
    position: relative;
}

.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);
}

/* Menú móvil */
.mobile-menu {
    display: none; /* Oculto por defecto, solo visible en móvil */
    position: fixed;
    top: 5.5rem; /* Altura aproximada del navbar en móvil */
    left: 0;
    right: 0;
    bottom: 0;
    background: #FF6B35;
    z-index: 998; /* Debajo del navbar (z-index 1000) */
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.45s var(--ease-in-out);
    padding: 2rem 1.5rem;
    padding-bottom: 4rem; /* Padding inferior generoso para asegurar que todo sea visible */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    -webkit-overflow-scrolling: touch; /* Mejor scroll en iOS */
    height: calc(100vh - 5.5rem); /* Altura fija basada en viewport menos navbar */
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .mobile-menu {
        display: flex; /* Mostrar en móvil y tableta */
        top: 5.5rem; /* Altura del navbar */
        padding: 2rem 1.5rem 4rem; /* Padding inferior generoso */
        height: calc(100vh - 5.5rem); /* Altura fija */
        flex-direction: column;
    }

    .mobile-menu-link {
        font-size: calc(1.25rem - 2px);
    }
}

.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%;
    display: block;
    flex-shrink: 0;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    transition: background 0.45s var(--ease-in-out);
    width: 100%;
    box-sizing: border-box;
}

/* Flecha para elementos con dropdown */
.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.45s var(--ease-in-out);
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.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;
    width: 100%;
}

.mobile-dropdown-menu li {
    margin-bottom: 0.5rem;
    width: 100%;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-search {
    margin-top: auto; /* Empujar al final del contenedor flex */
    padding-top: 2rem;
    padding-bottom: 1rem; /* Espacio adicional al final */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search-icon {
    background: none;
    border: none;
    padding: 0;
    width: 2rem;
    height: 2rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s var(--ease-in-out);
}

.mobile-search-icon svg {
    width: 100%;
    height: 100%;
}

.mobile-search-icon:hover {
    opacity: 0.8;
}

.mobile-search-icon {
    background: none;
    border: none;
    padding: 0;
    width: 2rem;
    height: 2rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s var(--ease-in-out);
    outline: none;
}

.mobile-search-icon svg {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mobile-search-icon:hover {
    opacity: 0.8;
}

.mobile-search-icon:focus,
.mobile-search-icon:active {
    outline: none;
    border: none;
}

/* ============================================
   HERO / ENCABEZADO
   ============================================ */
.hero {
    padding: 8rem 2rem 4rem; /* Espacio para navbar + 50px superior en desktop */
    text-align: center;
    background: transparent;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem; /* Espacio para navbar + proporcional en móvil */
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .hero-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
}

.hero-title {
    color: #D27961;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    background-color: #889C81;
    color: white;
    padding: 1rem 2rem;
    margin-top: 3rem;
    border-radius: 0.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.45s var(--ease-in-out);
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
    box-shadow: 0 2px 4px rgba(136, 156, 129, 0.2);
}

.hero-button:hover {
    background-color: #72866A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 156, 129, 0.4);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   CONTENIDO CON ANIMACIONES
   ============================================ */
.content-section {
    padding: 3rem 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}



/* ============================================
   MODAL DE BÚSQUEDA
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s var(--ease-in-out), visibility 0.45s var(--ease-in-out);
    pointer-events: none;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.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%);
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.search-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #1a1a1a;
    cursor: pointer;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.45s var(--ease-in-out);
    line-height: 1;
}

.search-modal-close:hover {
    background: #f5f5f0;
    color: #FF6B35;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-label {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.search-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #1a1a1a;
    transition: all 0.45s var(--ease-in-out);
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-submit {
    background-color: #FF6B35;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.45s var(--ease-in-out);
    align-self: flex-start;
}

.search-submit:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

@media (max-width: 768px) {
    .search-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .search-label {
        font-size: 1.125rem;
    }
    
    .search-input {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }
    
    .search-submit {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #262d27;
    color: white;
    margin-top: 50px;
    padding: 3rem 0 2rem;
    width: 100%;
    min-width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.75;
}

.footer-logo {
    max-width: 300px;
    margin: 0 auto 2rem;
    display: block;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-text {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.75;
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #FF6B35;
    transition: color 0.45s var(--ease-in-out);
    text-decoration: none;
}

.footer-link:hover {
    color: #E2E8F0;
}

/* ============================================
   BOTÓN IR AL INICIO
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: #FF6B35;
    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.45s var(--ease-in-out);
    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: #e55a2b;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive: menú hamburguesa en móvil y tableta */
@media (max-width: 1024px) {
    .navbar-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .search-icon {
        display: none;
    }


    .footer-logo {
        max-width: 250px;
    }

    .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;
    }
}
