/* ==========================================
   CONFIGURACIÓN GLOBAL Y RESETEO
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #d4cfb4;
    font-family: 'Jost'; 
    color: #424143; 
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'BauerBodoni';
    color:#424143;
}

em, i, .italic {
    font-family: 'JostItalic';
    font-style: italic;
}

/* ==========================================
   HEADER FIJO (STICKY NAVIGATION)
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #d4cfb4;
    z-index: 1000;
    padding: 1.5rem 2rem;
}

.header-container {
    max-width: 1140px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1. Izquierda: Logo */
.header-left {
    flex: 1;
}

.logo-link {
    display: inline-block;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* 2. Centro: Menú de navegación */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

.main-nav a {
    text-decoration: none;
    color: #424143; 
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #424143;
}

/* Efecto de subrayado animado */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #8E7646;
    transition: width 0.3s ease;
}

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

.nav-separator {
    color: #424143; 
    font-weight: 400;
    font-size: 1rem;
}

/* 3. Derecha: Redes Sociales */
.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
}

.social-icons a {
    color: #8E7646; 
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.7;
}

/* ==========================================
   SECCIÓN 1: INICIO (HERO)
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8rem 2rem 4rem 2rem;
}

.hero-image-container {
    max-width: 1480px; /* Llevado un poco más lejos para asegurar gran impacto */
    width: 94%;
    margin: 0 auto;
    text-align: center;
}

.hero-img {
    width: 100%;
    height: 720px; /* Altura optimizada para monitores grandes */
    border-radius: 4px;
    object-fit: cover;
    object-position: center 75%; 
    display: block;
}


/* ==========================================
   SECCIÓN 2: NOSOTROS (ESTILO EDITORIAL)
   ========================================== */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
}

.about-container {
    max-width: 1480px;
    width: 94%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

.about-text-wrapper {
    flex: 1;
}

/* Título NOSOTROS */
.about-title {
    font-family: 'BauerBodoni', serif;
    font-size: 3.4rem;
    color: #424143;
    margin-bottom: 2rem; 
    letter-spacing: 2px;
    font-weight: normal;
}

/* Estilo base de los párrafos */
.about-paragraph {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #424143;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.first-paragraph {
    text-indent: 0;
}

.indented-paragraph {
    text-indent: 2rem; 
}

.line-indent {
    display: block;
    text-indent: 2rem; 
}

/* Letra Capital dorada  */
.drop-cap {
    font-family: 'BauerBodoni', serif;
    font-size: 5rem;
    line-height: .70;
    float: left;
    margin-right: 2px;
    color: #8E7646; 
    font-weight: bold;
}

/* Imagen a la derecha */
.about-image-wrapper {
    flex: 1.25; 
}

.about-img {
    width: 100%;
    height: 620px; /* Imagen de nosotros con gran presencia */
    object-fit: cover;
    object-position: center center;
    border-radius: 4px;
    display: block;
}


/* ==========================================
   SECCIÓN 3: GALERÍA DE IMÁGENES (1, 2, 3)
   ========================================== */
.gallery-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    background-color: #d4cfb4;
}

.gallery-container {
    max-width: 1480px;
    width: 94%;
    margin: 0 auto;
}

/* 3 imágenes lado a lado */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.gallery-item {
    width: 100%;
}

.gallery-img {
    width: 100%;
    height: 660px; /* Altura generosa para la galería trío */
    object-fit: cover;
    object-position: center center;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: block;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}


/* ==========================================
   SECCIÓN 4: MENÚ (ESTILO 3 COLUMNAS + ACORDEÓN)
   ========================================== */
.menu-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    background-color: #d4cfb4;
}

/* Menú devuelto a su ancho original exacto para mantener su proporción intacta */
.menu-container {
    max-width: 1200px; 
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

/* Columnas laterales de imágenes del menú con su tamaño original respetado */
.menu-images-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.menu-img-wrapper {
    width: 100%;
}

.menu-img {
    width: 100%;
    height: 380px; /* Tamaño original conservado */
    object-fit: cover;
    object-position: center center;
    border-radius: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Columna central del Menú */
.menu-content-column {
    flex: 1.2;
    text-align: center;
}

.menu-main-title {
    font-family: 'BauerBodoni', serif;
    font-size: 3rem;
    color: #424143;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Estilos del Acordeón */
.accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border-top: 0px solid #b8b198;
    border-bottom: 1px solid #8E7646;
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 0;
    font-family: 'Jost', serif;
    font-size: 1.4rem;
    color: #424143;
    letter-spacing: 1.5px;
    text-align: center;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 900;
}

.accordion-header:hover {
    color: #8E7646;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    padding: 0 1rem;
    text-align: center;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.menu-item {
    margin-bottom: 1.2rem;
}

.item-name {
    font-family: 'Jost', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: #424143;
}

.item-price {
    font-family: 'Jost', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.item-separator {
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    margin: 0 0.5rem; 
    font-weight: normal;
}

.item-desc {
    font-family: 'Jost', sans-serif;
    font-size: 0.85rem;
    color: #6b696c;
    margin-top: 0.2rem;
}

/* Cuadrícula de imágenes para móvil (Oculta por defecto en escritorio) */
.mobile-images-grid {
    display: none;
}


/* ==========================================
   SECCIÓN 5: CONTACTO Y MAPA
   ========================================== */
.contact-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem;
    background-color: #d4cfb4;
}

.contact-container {
    max-width: 1480px;
    width: 94%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5rem;
}

/* Columna del Mapa */
.contact-map-column {
    flex: 1.1;
    width: 100%;
}

.map-wrapper {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.map-img {
    width: 100%;
    height: 620px; /* Mapa imponente en pantallas grandes */
    display: block;
    object-fit: cover;
}

/* Columna del Formulario */
.contact-form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-main-title {
    font-family: 'BauerBodoni', serif;
    font-size: 3.4rem;
    color: #424143;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-weight: normal;
}

/* Estilos del Formulario minimalista */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-group {
    width: 100%;
}

.form-input, 
.form-textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #8E7646;
    padding: 0.9rem 0; 
    font-family: 'Jost', sans-serif;
    font-size: 1.05rem; 
    color: #424143;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder, 
.form-textarea::placeholder {
    color: #8c8673;
    opacity: 1;
}

.form-input:focus, 
.form-textarea:focus {
    border-bottom-color: #8E7646;
}

.form-textarea {
    resize: vertical;
    min-height: 110px; 
    border: 1px solid #8E7646; 
    padding: 0.9rem;
    border-radius: 2px;
}

/* Botón de Enviar */
.form-submit-wrapper {
    display: flex;
    justify-content: flex-end; 
    margin-top: 0.5rem;
}

.submit-btn {
    background: transparent;
    border: 1px solid #8E7646;
    color: #424143;
    padding: 0.8rem 3rem;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #8E7646;
    border-color: #8E7646;
    color: #d4cfb4;
}

/* Dirección Postal */
.contact-address {
    margin-top: 2.5rem;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    color: #424143;
    line-height: 1.5;
}


/* ==========================================
   MEDIA QUERIES (DISEÑO RESPONSIVO)
   ========================================== */

@media (max-width: 900px) {
    .gallery-section {
        min-height: auto;
        padding: 4rem 1rem;
    }

    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        scrollbar-width: none; 
    }

    .gallery-grid::-webkit-scrollbar {
        display: none; 
    }

    .gallery-item {
        min-width: 85%; 
        scroll-snap-align: center;
    }

    .gallery-img {
        height: 380px; 
    }
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-text-wrapper, .about-image-wrapper {
        width: 100%;
        flex: unset;
    }

    .about-img {
        height: 380px;
    }

    .menu-images-column {
        display: none !important;
    }

    .menu-content-column {
        width: 100%;
        flex: 100%;
        padding: 0 1rem;
    }

    .menu-section {
        min-height: auto;
        padding: 4rem 1rem;
    }

    .menu-main-title {
        font-size: 2.4rem;
        margin-bottom: 2rem;
    }

    .mobile-images-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 3rem; 
    }

    .mobile-images-grid .menu-img {
        height: 180px; 
    }

    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-form-column {
        order: 1;
        width: 100%;
    }

    .contact-map-column {
        order: 2;
        width: 100%;
    }

    .map-img {
        height: 380px; 
    }

    .contact-main-title {
        font-size: 2.4rem;
        text-align: center;
    }

    .contact-address {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 1.2rem;
    }

    .logo-img {
        height: 50px;
    }

    .header-center {
        gap: 0.8rem;
    }

    .main-nav a {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .social-icons a {
        font-size: 1rem;
    }

    .hero-section {
        padding: 6rem 1rem 2rem 1rem;
    }
}

@media (max-width: 576px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .header-left, .header-center, .header-right {
        justify-content: center;
    }

    .hero-section {
        padding-top: 10rem;
    }
}

/* Tipografías */
@font-face {
    font-family: 'BauerBodoni';
    src: url('../fonts/BauerBodoni-BlackCond.eot');
    src: url('../fonts/BauerBodoni-BlackCond.eot?#iefix') format('embedded-opentype'),
        url('../fonts/BauerBodoni-BlackCond.woff2') format('woff2'),
        url('../fonts/BauerBodoni-BlackCond.woff') format('woff'),
        url('../fonts/BauerBodoni-BlackCond.ttf') format('truetype'),
        url('../fonts/BauerBodoni-BlackCond.svg#BauerBodoni-BlackCond') format('svg');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'JostItalic';
    src: url('../fonts/Jost-Italic.eot');
    src: url('../fonts/Jost-Italic.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Jost-Italic.woff2') format('woff2'),
        url('../fonts/Jost-Italic.woff') format('woff'),
        url('../fonts/Jost-Italic.ttf') format('truetype'),
        url('../fonts/Jost-Italic.svg#Jost-Italic') format('svg');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Regular.eot');
    src: url('../fonts/Jost-Regular.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Jost-Regular.woff2') format('woff2'),
        url('../fonts/Jost-Regular.woff') format('woff'),
        url('../fonts/Jost-Regular.ttf') format('truetype'),
        url('../fonts/Jost-Regular.svg#Jost-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}