
/* ===========================
          VARIABLES Y RESET
          =========================== */
:root {
    --color-primary: #2c1810;
    --color-secondary: #378671;
    --color-accent: #d4a574;
    --color-light: #f8f5f2;
    --color-white: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --font-heading: 'Poppins', sans-serif;
    --font-blackadder: 'BlackAdderII';
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

small {
    font-style: italic;
    font-size: 0.7em;
}
/* ===========================
   HEADER Y NAVEGACIÓN
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 6em;
    height: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: var(--transition);
    border-radius: 2px;
}

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

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

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

/* ===========================
   SECCIÓN HERO
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    z-index: 0;
    pointer-events: none;
}
.hero-overlay {
    overflow: hidden;
}
.vagary {
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: auto;
    margin-bottom: 20px;

}
.hero-content,
.scroll-indicator {
    position: relative;
    z-index: 1;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
            radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(139, 111, 71, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    color: var(--color-white);
    z-index: 1;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 5.5rem;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0.95;
    color: var(--color-white)
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: #e0b686;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '↓';
    color: var(--color-white);
    font-size: 2rem;
    opacity: 0.7;
}

/* ===========================
   SECCIONES COMUNES
   =========================== */
section {
    padding: 6rem 2rem;
    scroll-margin-top: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 2rem auto 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   SECCIÓN MENÚ
   =========================== */
.menu {
    background-color: var(--color-light);
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 2rem;
    background-color: var(--color-white);
    color: var(--color-text);
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .menu-categories {
        flex-wrap: nowrap;                 /* una sola línea */
        justify-content: flex-start;        /* alineado a la izquierda */
        overflow-x: auto;                   /* scroll horizontal */
        -webkit-overflow-scrolling: touch;  /* scroll suave en iOS */
        padding-bottom: 1rem;               /* espacio para el dedo */
        padding-top: 2px;
        gap: 0.75rem;
    }

    .menu-categories::-webkit-scrollbar {
        display: none;                      /* ocultar scrollbar */
    }

    .category-btn {
        flex-shrink: 0;                     /* evita que se encojan */
        white-space: nowrap;                /* texto en una línea */
    }
    .category-btn-last {
        margin-left: 2px;
    }
}

.menu-categories {
    cursor: grab;
}

.menu-categories:active {
    cursor: grabbing;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-item {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: none;
}

.menu-item-wine-price {
    display: flex;
    gap: 8px;
    align-items: center;
    text-align: center;
}

.menu-item.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.menu-item-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
}

.menu-item-price {
    font-size: 1.3rem;
    color: var(--color-accent);
    font-weight: 700;
}

.menu-item-description {
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.menu-item-tag {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    background-color: var(--color-light);
    color: var(--color-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/*===========================
   SECCIÓN EVENTOS PRIVADOS
   =========================== */
.event-images {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.event-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    aspect-ratio: 2 / 1;
    height: auto;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
}

@media (max-width: 600px) {
    .event-images-grid {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        width: 100vw;
        height: 60vw;
        max-width: 100vw;
        aspect-ratio: unset;
        scroll-snap-type: x mandatory;
        padding-bottom: 0.5rem;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE y Edge */
    }
    .event-images-grid::-webkit-scrollbar {
        display: none;
    }
    .event-image {
        flex: 0 0 65vw;
        height: 100%;
        min-width: 65vw;
        max-width: 65vw;
        scroll-snap-align: start;
    }
    .event-image-last {
        margin-right: 1rem;
    }
}
/* ==========================
   SECCIÓN GALERÍA
   =========================== */

.photo-gallery {
    background-color: var(--color-light);
}
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
}

/* ===========================
   SECCIÓN HORARIO
   =========================== */
.horario {
    background-color: white;
}

.horario-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.horario-grid {
    display: grid;
    gap: 1.5rem;
}

.horario-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--color-light);
    border-radius: 10px;
    transition: var(--transition);
}

.horario-item:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateX(10px);
}

.horario-day {
    font-weight: 600;
    font-size: 1.1rem;
    display:block;
    text-align:center;
    margin-bottom:4px;
}

.horario-time {
    font-weight: 500;
    color: var(--color-secondary);
}

.horario-time-container {
    display:flex;
    flex-direction:column;
    align-items:center;
}

.horario-item:hover .horario-time {
    color: var(--color-white);
}

@media (max-width: 640px) {

    .horario-day {
        display: block;
    }
    .menu-item-price {
        font-size: 1rem;
        color: var(--color-accent);
        font-weight: 700;
    }

}
/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
    background-color: #111917b8;
}

.contact a {
    padding: 0 0 0 60px;
    margin-bottom: 0;
    font-size: 20px;
    color: #ffffff;
}

.contact a:hover {
    color: #d9ba85;
    text-decoration: none;
}

.contact .address {
    white-space: nowrap;
}
.contact table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}
.contact th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #cda45e;
}
.contact th {
    background: #cda45e;
    color: #ddd;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.contact tr:hover {
    background-color: #cda45e;
}
.closed {
    color: #d9534f;
    font-weight: bold;
}
.open {
    color: #fff;
    font-weight: bold;
}


.horario-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 10px;
    font-style: italic;
}

/* ===========================
   SECCIÓN GALERÍA
   =========================== */
.galeria {
    background-color: var(--color-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(44, 24, 16, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--color-white);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Placeholder para imágenes */
.gallery-placeholder {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* ===========================
   SECCIÓN UBICACIÓN
   =========================== */
.ubicacion {
    background-color: var(--color-light);
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 500px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-info {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-light);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 50px;
    height: 50px;
    background-color: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--color-text-light);
    line-height: 1.8;
}

.contact-details a {
    color: var(--color-secondary);
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    font-size: medium !important;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

/* ===========================
   SECCIÓN CONTACTO
   =========================== */
.contacto {
    background-color: var(--color-light);
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--color-light);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-white);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
}

.form-submit:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 4rem 2rem 2rem;
}

.footer-vagary {
    display: inline-block;
    justify-content: center;
    align-items: center;
    width: 140px;
    height: auto;
    margin-bottom: 10px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   ANIMACIONES
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-light);
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 400px;
    }

    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 4.5rem;
        margin-bottom: 3.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3.5rem;
        color: var(--color-primary)
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container,
    .horario-content,
    .contact-info {
        padding: 2rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-vagary {

    }
}

/* ===========================
   UTILIDADES
   =========================== */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}