/* Global Styles */
:root {
    --clr-text-dark: rgb(36, 36, 36);
    --clr-background-light: rgb(229, 222, 204);
    --clr-primary-accent: rgb(199, 30, 37);
    --clr-primary-accent-darker: rgb(160, 20, 27);
    --clr-white: rgb(255, 255, 255);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Lora', sans-serif;
}

html, body {
    height: auto;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 1.6rem; /* Default H2 size, can be overridden */
    font-weight: 600;
    color: var(--clr-primary-accent);
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}


h3 {
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--clr-primary-accent); /* Example, adjust as needed */
    margin-top: 1em;
    margin-bottom: 0.5em;
}

body {
    font-family: var(--font-primary);
    color: var(--clr-text-dark);
    background-color: var(--clr-background-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    letter-spacing: 0.05em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 30px 20px;
}

main.container {
    flex: 1;
}

/* Header & Navigation */
header {
    background-color: var(--clr-background-light);
    color: var(--clr-text-dark);
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    position: relative; /* For positioning the mobile menu */
}

header .logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links li a {
    color: var(--clr-text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active,
.nav-links li a:focus {
    color: var(--clr-primary-accent);
}

.btn-nav-reserva {
    background-color: var(--clr-primary-accent);
    color: var(--clr-white) !important; /* Ensure white text */
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;

    text-decoration: none;
    display: inline-block; /* Ensure padding is applied correctly */
}

.btn-nav-reserva:hover,
.btn-nav-reserva:focus {
    background-color: var(--clr-primary-accent-darker);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none; /* Hidden by default, shown on mobile */
    cursor: pointer;
    padding: 10px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--clr-text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    text-align: center; 
    padding: 40px 0 0 0;
    background-color: var(--clr-background-light);
}

.hero-content .hero-title-main {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    color: var(--clr-primary-accent); 
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title-main {
    text-align: left;
    padding-left: 30px;
    margin-top: 10px;
}

.hero-main-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.hero-reserve-button-container {
    padding-bottom: 40px;
}

.btn-hero-reserva {
    background-color: var(--clr-primary-accent);
    color: var(--clr-white);
    padding: 12px 25px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-hero-reserva:hover,
.btn-hero-reserva:focus {
    background-color: var(--clr-primary-accent-darker);
}

/* General Button Style */
.btn {
    display: inline-block;
    background-color: var(--clr-primary-accent);
    color: var(--clr-white);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 300;
    font-size: small;
    text-decoration: none;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    background-color: var(--clr-primary-accent-darker);
}

.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;
}

.event-reserve-btn {
    margin-top: 20px;      /* Adds space above the button */
    width: 100%;           /* Makes the button fill the card width */
    box-sizing: border-box;  /* Ensures padding doesn't break the layout */
    text-align: center;    /* Ensures the text is centered */
}


/* Sections */
section {
    padding:
    30px 0; /* it was 40px */
}


/* About Section */
.about-section .about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.about-section .about-text {
    flex: 2;
    min-width: 300px;
}

.about-section .about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-section .about-image {
    flex: 1;
    min-width: 250px;
}

.about-section .about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Section group responsive menus */
.section-group {
    display: flex;
    flex-direction: column;
    gap: 2rem
}

.info-section {
    flex: 1 1 0;
    padding: 2rem 1.5rem;
}

/* Menu Highlights & Menu Page */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.menu-item {
    font-family: var(--font-secondary);
    display: flex;
    justify-content: space-between; /* Pushes description to left, price to right */
    margin-bottom: 10px; /* Example spacing */
    /* Add other styling as needed */
}

.menu-item-description {
    flex-grow: 1; /* Allows description to take available space */
    /* Add other styling as needed */
}

.menu-item-price {
    text-align: right; /* Ensures price text is right-aligned within its own div */
    min-width: 60px; /* Example: ensure price div has some minimum width */
    /* Add other styling as needed */
}

.menu-item-card {
    background-color: var(--clr-white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.menu-item-card img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}
.menu-item-card .placeholder-image-smaller {
    max-height: 180px;
}

.menu-item-card h3 {
    font-family: 'Poppins', sans-serif;
   /* font-size: 1.5rem;*/
    color: var(--clr-primary-accent-darker);
    margin-bottom: 10px;
}

.menu-item-card p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

/* Menu Page Specifics */
.menu-category h3 {
    font-family: var(--font-primary);
   /* font-size: 1.8rem;*/
    color: var(--clr-primary-accent);
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--clr-background-light);
    text-align: left;
}

.menu-items-list .menu-item,
.wine-items-list .wine-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.menu-items-list .menu-item:last-child,
.wine-items-list .wine-item:last-child {
    border-bottom: none;
}

.menu-items-list .menu-item h4,
.wine-items-list .wine-item h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--clr-text-dark);
    margin-bottom: 5px;
}

.menu-items-list .menu-item p,
.wine-items-list .wine-item p {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.menu-items-list .menu-item .price,
.wine-items-list .wine-item .price {
    font-weight: bold;
    color: var(--clr-text-dark);
}

.menu-note {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 20px;
    text-align: center;
}

/* Wine Page Specifics */
.wine-item .wine-tags {
    font-size: 0.8rem;
    font-style: italic;
    color: #555;
    margin-left: 10px;
    display: inline-block;
}
.wine-item .wine-region {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 3px;
}

/* social media icons */
.contact-social-icons {
    text-align: center; /* Or left, right, depending on desired alignment of the group */
    margin-top: 10px; 
}

.contact-social-icons a {
    text-decoration: none; /* Remove underline from links */
      /* Adds horizontal space BETWEEN the icons */
}

.styled-social-icon {
    color: var(--clr-primary-accent); /* Default: BLACK (like your footer icon's default) */
    transition: color 0.3s ease;
    /* If you want to control size here instead of fa-2x, fa-lg: */
    /* font-size: 1.8em; */ /* Example size, adjust as needed */
}

.styled-social-icon:hover {
    color: var(--clr-primary-accent-darker); /* Default hover: RED (like your footer icon's hover) */
}

.visitanos {
    text-align: center;
}

.contacto {
font-family: 1.1rem;
}

#contact-full .contact-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.contact-details p {
    font-weight: 300;
}

#contact-full .contact-details ul {
    list-style: none;
    padding-left: 0;
}
#contact-full .contact-details ul li {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: var(--clr-text-dark);
    color: var(--clr-background-light);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9rem;
}

/* intagram logo */
.text-center { /* Make sure you have this utility class */
    text-align: center;
}

.social-icon-container { /* For the Visítanos section */
    margin-top: 20px;
    margin-bottom: 25px;
}

.footer-social-icons { /* For the footer */
    margin-top: 15px; /* Adjust spacing as needed for footer */
    margin-bottom: 15px;
}

/* --- Base Instagram Icon Style (Common Properties) --- */
/* This class is on ALL instagram icons */
.instagram-icon {
    transition: color 0.3s ease; /* Smooth hover transition for all */
    text-decoration: none; /* Remove underline if link has one */
}

/* Ensure the <a> tag itself doesn't get an underline if it inherits one */
.social-icon-container a,
.footer-social-icons a {
    text-decoration: none;
}


/* --- "Visítanos" Section Instagram Icon Styling (e.g., on index.html) --- */
/* This targets .instagram-icon ONLY when it's inside an element with class .visitanos */
.visitanos .instagram-icon {
    color: var(--clr-primary-accent); 
    /* The fa-2x class in your HTML makes it larger. You can also use font-size here: */
    /* font-size: 2.2em; */ /* Example size, adjust if fa-2x isn't perfect */
}

.visitanos .instagram-icon:hover {
    color: var(--clr-primary-accent-darker); /* BLACK tone on hover */
}


/* --- Footer Instagram Icon Styling (on all pages) --- */
/* This targets .instagram-icon ONLY when it's inside a <footer> element */
footer .instagram-icon {
    color: var(--clr-background-light); /* BLACK tone by default */
    /* The fa-lg class in your HTML makes it 'large'. You can also use font-size here: */
    /* font-size: 1.5em; */ /* Example size, adjust if fa-lg isn't perfect */
}

footer .instagram-icon:hover {
    color: var(--clr-white); /* RED tone on hover */
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(36, 36, 36, 0.95);
    color: var(--clr-background-light);
    padding: 15px 20px;
    display: none; /* Hidden by default, shown by JS */
    z-index: 2000;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-consent-banner p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 15px;
}

.cookie-consent-banner a {
    color: var(--clr-white);
    text-decoration: underline;
}

.cookie-consent-banner .btn {
    margin: 5px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

a[href^="mailto"],
a[href^="tel"], 
a[href*="goo.gl/maps"],         /* catch goo.gl short-links */
a[href*="google.com/maps"],
a[href*="maps.app.goo.gl"] {
  color: var(--clr-primary-accent);
  text-decoration: none;
}

a[href^="mailto"]:hover,
a[href^="mailto"]:focus,
a[href^="tel"]:hover,
a[href^="tel"]:focus,
a[href*="goo.gl/maps"]:hover,
a[href*="goo.gl/maps"]:focus,      
a[href*="google.com/maps"]:hover,
a[href*="google.com/maps"]:focus,
a[href*="maps.app.goo.gl"]:hover,
a[href*="maps.app.goo.gl"]:focus {
  color: var(--clr-primary-accent-darker);
  text-decoration: underline;
}

.map-link {
    color: var(--clr-primary-accent);
    text-decoration: none;
}

.map-link:hover,
.map-link:focus {
    color: var(--clr-primary-accent-darker);
    text-decoration: underline;
}


/* !!!!!!!!!!!!!!!!!!! NEW SECTION FOR CATAS DE VERANO!!!!!*/


/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0; /* REDUCED PADDING */
    background-color: var(--clr-background-light);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: var(--clr-primary-accent);
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--clr-primary-accent-darker);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%; /* Ensure it doesn't overflow */
    display: block; /* Remove extra space below image */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* General Button Style */
.btn {
    display: inline-block;
    background-color: var(--clr-primary-accent);
    color: var(--clr-white);
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn:focus {
    background-color: var(--clr-primary-accent-darker);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(199, 30, 37, 0.3);
}

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

.btn-secondary {
    background-color: #6c757d;
    color: var(--clr-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;
}

/* Custom H2 Style */
.custom-h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--clr-primary-accent);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.custom-h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--clr-primary-accent);
    margin: 15px auto 0;
}

/* Wine Schedule Section */
.wine-schedule-section {
    padding: 30px 0; /* REDUCED PADDING */
}

.wine-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.wine-event-card {
    background-color: var(--clr-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.wine-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.wine-event-card.featured {
    border: 2px solid var(--clr-primary-accent);
    background: linear-gradient(135deg, var(--clr-white) 0%, #fdf8f8 100%);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: var(--clr-primary-accent);
    color: var(--clr-white);
    border-radius: 50%;
    margin-bottom: 20px;
    font-weight: bold;
}

.event-date .day {
    font-size: 1.8rem;
    line-height: 1;
}

.event-date .month {
    font-size: 0.9rem;
    margin-top: -5px;
}

.event-content h3 {
    color: var(--clr-primary-accent-darker);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.event-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--clr-text-dark);
    font-weight: 500;
}

.event-time i {
    color: var(--clr-primary-accent);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--clr-primary-accent);
    color: var(--clr-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Experience Section */
.experience-section {
    padding: 30px 0; /* REDUCED PADDING */
    margin: 10px 0; /* REDUCED MARGIN */
}

.experience-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.experience-text {
    flex: 1;
    min-width: 300px;
}

.experience-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.experience-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    background-color: var(--clr-primary-accent);
    color: var(--clr-white);
    transform: translateY(-2px);
}

.feature i {
    font-size: 1.2rem;
    color: var(--clr-primary-accent);
    transition: color 0.3s ease;
}

.feature:hover i {
    color: var(--clr-white);
}

.experience-image {
    flex: 1;
    min-width: 300px;
}

.experience-image img {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* !!!!!!!!!!!!!!!!!!! END OF NEW SECTION FOR CATAS DE VERANO!!!!!!!!!!!!!!!!!!!

/* On desktop: three columns */
@media (min-width: 900px) {
    .section-group {
        flex-direction: row;
        gap: 2rem;
        justify-content: space-between;
        align-items: stretch;
    }
    .info-section {
        min-width: 0;
    }
}

/* === NEW RULE FOR LARGE DESKTOP GRID === */
@media (min-width: 1024px) {
    .wine-events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        background-color: var(--clr-background-light); 
        padding: 0.1rem 5%;  
        display: flex;
        justify-content: space-between;
        left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    header .logo {
        z-index: 1002;
        padding-top: 5px;
        padding-left: 0px;
        position: relative;
    }

    .nav-links {
        display: none; /* Hide normal nav links on mobile */
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 0; /* Adjust based on header height */
        left: 0;
        background-color: var(--clr-background-light); /* Match header background */
        padding: 50px 20px 20px 20px;
        box-sizing: border-box;
        z-index: 1001;
        overflow-y: auto;
        align-items: center;
    }

    .nav-links.active {
        display: flex; /* Show when hamburger is clicked */
    }

    .nav-links li {
        margin-left: 0;
        width: 80%;
        text-align: center; /* Center mobile menu items */
        margin-bottom: 10px;
    }

    .nav-links li a {
        display: block;
        padding: 15px 0;
        width: 100%;
        font-size: 1.2rem;
    }
    
    .nav-links li.lang-switcher-li {
        padding: 15px 0;
    }

    .nav-links li.lang-switcher-li a  {
        display: inline;
        width: auto;
        padding: 0 5px;
    }

    .btn-nav-reserva {
        width: 100% !important;
        min-width: 30vw;
        max-width: 30vw;
        padding: 15px 0;
        margin: 20px auto 10px auto; /* Center button */
        box-sizing: border-box;
        display: inline-block;
    }

    .hamburger {
        display: block; /* Show hamburger icon on mobile */
        z-index: 1002;
        position: relative;
    }

    /* Hamburger animation to X */
    .hamburger.active .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.active .bar2 {
        opacity: 0;
    }
    .hamburger.active .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hamburger.active div {
        background-color: var(--clr-text-dark);
    }

    /* === THIS IS THE KEY FIX FOR THE HERO IMAGE === */
    .hero-section {
        flex-direction: column;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .hero-content .hero-title-main {
        font-size: 2.5rem;
    }
    .hero-main-image {
        max-width: 90%;
    }

    h2 {
        font-size: 1.3rem;
    }

   /* .custom-h2 {
        font-size: 1.0rem ;
    }*/

    h3 {
        font-size: 1.2rem;
        color: var(--clr-primary-accent);
    }

    p {
        font-size: 1.1rem;
    }

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

    .cookie-consent-banner p {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
    }
}