body {
    font-family: 'Raleway', sans-serif; /* Using a common font, consider adding a web font link if needed */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is above other content */
    background-color: #fff; /* Ensure background for sticky header */
}

.header-container {
    display: flex;
    justify-content: space-between; /* Pushes logo left, button right */
    align-items: center;
    position: relative; /* Needed for absolute positioning of nav */
    padding: 10px 0; /* Adjust padding as needed */
}

/* Language Switcher Styles */
.language-switcher {
    /* Position it before the hamburger on medium/large screens */
    order: 1; /* Default order */
    margin-left: auto; /* Push it towards the right */
    margin-right: 15px; /* Space before hamburger */
}

.language-switcher button {
    background: none;
    border: 1px solid #ccc;
    padding: 5px 8px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 3px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.language-switcher button:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.language-switcher button.active {
    background-color: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}

.logo {
    height: 50px; /* Keep logo size */
    width: auto;
}

/* Hamburger Button Styles */
.hamburger-menu {
    background: none;
    border: none;
    font-size: 1.8em; /* Adjust icon size */
    color: #333; /* Icon color */
    cursor: pointer;
    padding: 5px;
    display: block; /* Ensure it's always visible */
    order: 2; /* Ensure it comes after the language switcher */
}

/* Navigation Menu Styles */
#main-nav {
    display: none; /* Hide nav by default */
    position: absolute;
    top: 100%; /* Position below the header */
    right: 0; /* Align to the right */
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 200px; /* Adjust as needed */
    z-index: 999; /* Below header but above main content */
    order: 3; /* Ensure it's considered last in flex order if needed */
}

#main-nav.active {
    display: block; /* Show nav when active */
}

#main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Use flex for vertical layout */
    flex-direction: column;
}

#main-nav ul li {
    margin: 0; /* Remove horizontal margin */
    border-bottom: 1px solid #eee; /* Separator lines */
}
#main-nav ul li:last-child {
    border-bottom: none;
}

#main-nav ul li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease; /* Added transition */
}

#main-nav ul li a:hover {
    background-color: #333; /* Hover background: dark grey */
    color: #fff; /* Hover text color: white */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #eac69a; /* Example color from original */
}

#hero {
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, might crop */
}

.content-section {
    padding: 40px 0; /* Adjust padding as needed */
    text-align: center;
}

.content-section h1,
.content-section h2 {
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif; /* Example font from original */
    color: #000;
}

.content-section p {
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.image-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax effect */
    position: relative;
    color: #fff;
}

.image-bg .overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    padding: 40px 20px;
    color: #fff; /* Ensure text is white for contrast */
}

.text-light h2,
.text-light p {
    color: #fff; /* Ensure text is visible over the overlay */
}

/* Optional: Add a fallback for sections without an overlay */
.container.content-section {
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white background */
    padding: 20px;
    border-radius: 8px; /* Optional: Add rounded corners */
}

.button {
    display: inline-block; /* Ensure padding and border are applied correctly */
    background-color: #fff; /* Initial background: white */
    color: #000; /* Initial text color: black */
    border: 2px solid #000; /* Initial border: 2px solid black */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 0; /* No rounded corners */
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Smooth transition */
    margin-top: 15px; /* Keep margin if needed */
}

.button:hover {
    background-color: #333; /* Hover background: dark grey */
    color: #fff; /* Hover text color: white */
    border-color: #fff; /* Hover border: white (or match background) */
}

.responsive-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border: 1px solid #eee;
}

footer {
    background: #f8f8f8;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}

/* Basic Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    nav ul li {
        margin: 5px 0;
    }
    #hero {
        height: 50vh;
    }
    .content-section {
        padding: 40px 0;
    }
    .image-bg {
         background-attachment: scroll; /* Disable parallax on mobile for performance */
    }

    /* Make active nav full width on small screens */
    #main-nav.active {
        width: 100%;
        left: 0; /* Ensure it starts from the left edge */
        right: auto; /* Override the default right: 0 */
        min-width: unset; /* Remove min-width constraint */
    }

    /* Optional: Center text in full-width menu */
    #main-nav ul li a {
        text-align: center;
    }

    .language-switcher {
        /* Example: Move it below logo or adjust spacing */
        margin-right: 10px;
    }
}

#pintxos .content-section {
    background-color: #fff; /* White background for the text section */
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px; /* Optional: Add rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

#pintxos .image-section {
    height: 300px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
}

.image-section {
    height: 300px; /* Or any desired height */
    background-size: cover;
    background-position: center;
    width: 100%; /* Ensure it takes full width */
}

#pintxos .content-section,
#vinos .content-section,
#co .content-section,
#reservas .content-section,
#instagram-link .content-section,
#mapa .content-section,
#contacto .content-section {
    background-color: #fff; /* White background */
    padding: 40px 20px; /* Adjust padding */
}

/* Contact Section Styles */
.contact-blocks-container h2 {
    margin-bottom: 40px; /* Space below the main "Contacto" title */
}

.contact-blocks {
    display: flex;
    justify-content: space-around; /* Distribute space */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 30px; /* Space between blocks */
    text-align: center;
}

.contact-block {
    flex: 1; /* Allow blocks to share space */
    min-width: 220px; /* Minimum width before wrapping */
    padding: 15px;
}

.contact-icon {
    /* Adjust styling for Font Awesome icons */
    font-size: 2.5em; /* Control icon size with font-size */
    margin-bottom: 15px;
    color: #333; /* Set icon color (adjust as needed) */
    /* Remove width, height, and filter if they were used for img */
    /* width: 45px; */
    /* height: 45px; */
    /* filter: grayscale(100%); */
}

.contact-block h3 {
    font-size: 1.3em; /* Larger font size for block titles */
    margin-bottom: 12px;
    font-weight: 600; /* Slightly bolder */
    text-transform: uppercase; /* Make titles uppercase */
}

.contact-block p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95em;
}

/* Responsive layout for smaller screens */
@media (max-width: 768px) {
    .contact-blocks {
        flex-direction: column; /* Stack blocks vertically */
        align-items: center; /* Center blocks */
        gap: 40px; /* Adjust gap for vertical layout */
    }
    .contact-block {
        width: 90%; /* Adjust width */
        max-width: 350px;
        min-width: unset; /* Remove min-width */
    }
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    background-color: #eee; /* Fallback background */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1; /* Ensure active slide is on top */
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    display: block;
}

/* Carousel Indicator Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2; /* Above slides */
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background-color: white;
}

/* Ensure content section below carousel has appropriate margin/padding */
#Menus .content-section,
#Postres .content-section,
#Desayunos .content-section {
    padding: 40px 20px;
}

/* SEO Styles - Hidden content for search engines */
.seo-content {
    height: 1px;
    width: 1px;
    position: absolute;
    overflow: hidden;
    top: -9999px;
    left: -9999px;
    /* This keeps content accessible to search engines but invisible to users */
}

.hidden-section {
    display: none;
}

.footer-keywords {
    font-size: 0.7em;
    color: #999;
    margin-top: 5px;
}

/* End SEO Styles */
