:root {
    --primary-color: #4a2c2a; /* Dark brown */
    --secondary-color: #8c5d4b; /* Lighter brown */
    --accent-color: #d1b88e; /* Tan/Gold */
    --text-color: #f7f3e9; /* Off-white */
    --dark-text: #333333;
    --light-bg: #f7f3e9;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

/* Header and Navigation */
.main-header {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.logo-link {
    display: block;
    width: 50px;  /* ancho del logo */
    height: 50px;  /* alto del logo */
    background-size: contain; /* ajusta proporcional */
    background-repeat: no-repeat;
    background-position: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.8rem;
}
.logo-img-custom {
    max-height: 60px !important;
    width: auto !important;
    object-fit: contain;
}


.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-weight: 400;
    transition: color 0.3s ease;
    padding-bottom: 0.2rem;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Home Section - Carousel */
.hero-section {
    padding: 0;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-color);
    text-align: center;
    max-width: 800px;
    z-index: 10;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0a57e;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-color);
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 20;
    transition: background 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
}


/* Other Sections */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

p {
    line-height: 1.8;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 3rem;
    text-align: left;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
}

.about-image-container {
    flex: 1;
    height: 400px;
    /* La propiedad background ya no es necesaria */
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    overflow: hidden; /* Para que la imagen respete el border-radius */
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra el contenedor sin distorsionarse */
}

/* Menu Section */
/* Menu Section */
.menu-section {
    background-color: var(--card-bg);
}

.menu-grid {
    display: grid;
    /* Esto es lo que hace que el grid sea flexible y responsive */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item-card {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    overflow: hidden; /* Para que la imagen no se salga de los bordes redondeados */
}

.menu-item-card:hover {
    transform: translateY(-5px);
}

.menu-image {
    width: 100%;
    height: 150px; /* Altura fija para todas las imágenes del menú */
    object-fit: cover; /* Asegura que la imagen llene el espacio sin distorsionarse */
    border-radius: 8px;
    margin-bottom: 1rem;
}

.menu-item-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.menu-item-card p {
    color: #777;
    margin-top: 0.5rem;
}

/* Gallery Section */
.gallery-section {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    /* Elimina esta línea: background-size: cover; */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    overflow: hidden; /* Importante para que la imagen se ajuste al border-radius */
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que la imagen cubra todo el espacio sin distorsionarse */
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
}

.contact-section h2 {
    color: var(--text-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
/* Asegura que el texto dentro de la tarjeta de contacto mantenga su color */
.contact-card a {
    color: inherit;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.contact-card h3 {
    margin: 1rem 0 0.5rem;
    color: var(--text-color);
}

/* Promo Banner */
.promo-banner {
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-align: center;
    padding: 3rem 2rem;
    box-shadow: 0 -5px 10px rgba(0,0,0,0.1);
}

.promo-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.promo-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.promo-banner .btn {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.promo-banner .btn:hover {
    background-color: var(--secondary-color);
    color: var(--accent-color);
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        padding: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-section {
        flex-direction: column;
    }

    .about-content h2 {
        text-align: center;
    }

    .about-image-container {
        width: 100%;
        height: 300px;
        margin-top: 2rem;
    }
    
    .menu-grid, .gallery-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    /* Corrección para el encabezado fijo */
main {
    padding-top: 5rem; /* Ajusta este valor si tu barra de navegación es más alta */
}

@media (max-width: 768px) {
    /* Ajuste para dispositivos móviles */
    main {
        padding-top: 8rem; /* Más espacio para acomodar el menú desplegable */
    }
}
}