/* =====================================================
   STYLES.CSS
   ESTILOS GLOBALES DEL SITIO - BAKE ME UP
   ===================================================== */


/* =====================================================
   1. FUENTES PERSONALIZADAS
   Tipografías cargadas localmente
   ===================================================== */

@font-face {
    font-family: 'Bake Script';
    src: url('../fonts/BakeScript.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Armany';
    src: url('../fonts/Armany-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* =====================================================
   2. VARIABLES DE COLOR
   Paleta central del sitio
   ===================================================== */

:root {
    --verde-oliva: #535839;
    --azul-gris-claro: #97a6bb;
    --azul-gris-medio: #79879b;
    --dorado: #d0bb7d;
    --cafe-oscuro: #26120f;
    --crema: #f5dfac;
    --blanco: #ffffff;
}


/* =====================================================
   3. RESET GLOBAL Y BASE
   Elimina estilos por defecto del navegador
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Armany', Georgia, serif;
    color: var(--cafe-oscuro);
    background-color: var(--blanco);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Contenedor centralizado del sitio */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}


/* =====================================================
   4. HEADER PRINCIPAL
   Barra superior fija del sitio y diseño de navegación
   ===================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(38, 18, 15, 0.08);
    font-family: 'Armany', Georgia, serif;
    transform: translateY(0);
    transition: transform 0.35s ease;
}

.header--hidden {
    transform: translateY(-100%);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 10px 8px; /* Más padding arriba, menos abajo */
}

.logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}


/* =====================================================
   5. NAVEGACIÓN PRINCIPAL
   Links del menú y botón de llamada a la acción (CTA)
   ===================================================== */

.nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: 'Armany', Georgia, serif;
    color: var(--cafe-oscuro);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

/* Animación de subrayado */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--dorado);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--verde-oliva);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    font-family: 'Armany', Georgia, serif;
    background-color: var(--verde-oliva);
    color: var(--blanco);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 9px 22px;
    border-radius: 30px;
    letter-spacing: 0.6px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--cafe-oscuro);
    transform: translateY(-2px);
}


/* =====================================================
   6. BOTONES GLOBALES
   Estilos de botones reutilizables en el sitio
   ===================================================== */

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--verde-oliva);
    color: var(--blanco);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(83, 88, 57, 0.25);
}

.btn-primary:hover {
    background-color: var(--cafe-oscuro);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(38, 18, 15, 0.3);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 48px;
    background-color: transparent;
    color: var(--verde-oliva);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 2px solid var(--verde-oliva);
    border-radius: 50px;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background-color: var(--verde-oliva);
    color: var(--blanco);
    transform: translateY(-2px);
}


/* =====================================================
   7. TIPOGRAFÍA GLOBAL Y TÍTULOS DE SECCIÓN
   ===================================================== */

h1,
h2,
h3 {
    font-family: 'Armany', Georgia, serif;
    font-weight: normal;
}

.section-title,
.section-title-dark {
    font-family: 'Armany', Georgia, serif;
    font-size: 56px;
    color: var(--cafe-oscuro);
    text-align: center;
    line-height: 1.2;
}

.section-title {
    margin-bottom: 30px;
}

.section-title-dark {
    margin-bottom: 70px;
}

/* Letra inicial decorativa optimizada para legibilidad en fondos dinámicos */
.section-title span,
.section-title-dark span {
    font-family: 'Bake Script', cursive;
    font-size: 1.4em;
    color: inherit;
    font-weight: normal;
}


/* =====================================================
   8. SECCIÓN VISÍTANOS
   ===================================================== */

.visit-address-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.visit-address-link:hover {
    color: var(--dorado);
}

.address-icon {
    margin-right: 6px;
}


/* =====================================================
   9. FOOTER PRINCIPAL
   Pie de página, columnas y grillas de información
   ===================================================== */

.footer {
    background-color: var(--cafe-oscuro);
    color: var(--crema);
    padding: 35px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 0.8fr;
    gap: 40px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-section h4 {
    font-family: 'Bake Script', cursive;
    font-size: 29px;
    margin-bottom: 0;
    color: var(--dorado);
    font-weight: normal;
}

.footer-section h4.footer-heading-mixed {
    font-family: 'Armany', Georgia, serif;
}

.footer-section h4.footer-heading-mixed .decorative-letter {
    font-family: 'Bake Script', cursive;
    font-size: 1.3em;
    vertical-align: top;
    display: inline-block;
    line-height: 1;
}

.footer-section p {
    margin-bottom: 6px;
    line-height: 1.8;
    font-size: 18px;
}

.footer-section strong {
    color: var(--dorado);
    font-weight: 600;
}

.footer-address {
    opacity: 0.85;
}

.footer-section a,
.footer-map-link {
    color: var(--crema);
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-section a:hover,
.footer-map-link:hover {
    color: var(--dorado);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.footer-logo {
    height: 160px;
    width: auto;
    object-fit: contain;
    margin-left: -20px;
    margin-top: -15px;
    margin-bottom: -10px;
    transform: scale(1.15);
    transform-origin: left center;
}

.footer-tagline {
    font-style: italic;
    color: var(--azul-gris-claro);
    font-size: 16px;
}


/* =====================================================
   10. REDES SOCIALES
   Iconos, isotipos y copyright inferior
   ===================================================== */

.social-link {
    display: flex;
    align-items: center; /* Alinea verticalmente el icono y el texto en el centro */
    gap: 12px;           /* Espacio entre el icono y el texto */
    text-decoration: none;
    color: var(--crema); /* Usamos el color de la sección */
    font-size: 16px;
    font-family: 'Armany', Georgia, serif;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--dorado);
}

.social-link svg {
    fill: currentColor; /* Hace que el icono tome el color del texto */
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.08);
}

/* =====================================================
   11. RESPONSIVE Y MÓVIL
   Estilos de adaptación para tablet y celular
   ===================================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--cafe-oscuro);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Ajustes para tabletas */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .section-title,
    .section-title-dark {
        font-size: 42px;
    }
}

/* Ajustes para dispositivos móviles (Celulares) */
@media (max-width: 768px) {
    /* Header compacto */
    .logo img {
        height: 60px;
    }

    .header .container {
        padding: 8px 10px;
    }

    .nav {
        position: fixed;
        top: 76px; /* Ajuste basado en la altura del header en móvil */
        left: -100%;
        width: 100%;
        height: calc(100vh - 76px);
        background-color: var(--blanco);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(38, 18, 15, 0.1);
    }

    .nav.active {
        left: 0;
    }

    .nav-link {
        font-size: 18px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Footer en móvil */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .section-title,
    .section-title-dark {
        font-size: 36px;
    }
    
    .footer-isotipo-img {
        height: 20px;
    }
}

/* Padding de seguridad para contenedores en pantallas pequeñas */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
}
/* =====================================================
   HORARIOS DEL FOOTER
   ===================================================== */

.footer-hours {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-hours .hours-grid {
    display: grid;
    grid-template-columns: auto auto; /* Dos columnas automáticas */
    gap: 8px 24px; /* Espaciado entre días y horas */
    font-size: 18px;
    text-align: left;
}

.footer-hours .day {
    color: var(--dorado);
    font-weight: 600;
}

.footer-hours .time {
    color: var(--crema);
    text-align: left; /* Horas alineadas a la izquierda de su columna */
}

@media (max-width: 768px) {
    .footer-hours {
        align-items: center; /* Centrado en móviles */
    }
    
    .footer-hours .hours-grid {
        text-align: center;
        grid-template-columns: 1fr 1fr; /* Mantiene dos columnas */
        gap: 6px 16px;
    }
}