@import "base.css";

html {
    scroll-behavior: smooth;
}


/* ==========================================================================
   Componente: Header Web (Responsivo con Menú Desplegable)
   ========================================================================== */

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #514D3F;
    padding: 0 40px; 
    height: 80px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease; 
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-brand .logo-text {
    color: #f5efe0; 
    font-weight: 700;
}

.header-brand .logo {
    height: 140px; 
    width: auto; 
    object-fit: contain; 
    margin-top: 5px; 
}

.header-brand .logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-family-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: #f5efe0; 
    padding-block: 0.5rem;
    transition: color var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--honey-gold); 
}

.hero-section {
    padding-top: 90px; 
}

.header-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 20px;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f5efe0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   Media Query: Vista Móvil (Menor a 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .main-header {
        padding: 0 24px;
    }

    .header-toggle {
        display: flex; 
    }

    .header-nav {
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        background-color: #514D3F;
        flex-direction: column;
        gap: 0;
        padding-block: 1rem;
        border-top: 1px solid rgba(245, 239, 224, 0.1);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .header-nav.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding-block: 1.2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(245, 239, 224, 0.05);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .header-toggle.is-active .hamburger-line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .header-toggle.is-active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .header-toggle.is-active .hamburger-line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}
/* ==========================================================================
   Componente: Footer Principal
   ========================================================================== */
.main-footer {
    background-color: #514D3F;
    color: #ffffff;
    padding-block: 3rem;
    padding-inline: 2rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    flex: 1 1 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-top: -30px;
    margin-bottom: -20px; 
    justify-content: flex-start; 
}

.footer-logo .logo-img {
    height: 110px; 
    width: auto;
    object-fit: contain;
    margin-left: -38px; 
}

.logo-text {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.12rem;
}

.logo-highlight{
    color: #dfaf53;
}

.footer-description{
    color: #ffffff;
    font-family: var(--font-family-base);
    font-size: 0.9rem;
    max-width: 260px;
}

.footer-links-group,
.footer-socials {
    flex: 1 1 160px;
}

.footer-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--space-1);
}

.footer-list a {
    color: var(--color-text-subtle);
    font-size: 0.9rem;
}

.footer-list a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    flex-direction: row; 
    gap: 12px; 
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    transition: background-color var(--transition-base, 0.2s), color var(--transition-base, 0.2s);
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: var(--color-dark);
}