/* ========================================
   FUENTE SAN FELIPE - ESTILOS PRINCIPALES
   ======================================== */

/* --- VARIABLES --- */
:root {
    --color-bg: #1a1a1a;
    --color-bg-secondary: #242424;
    --color-bg-tertiary: #2e2e2e;
    --color-madera-dark: #5c3a1e;
    --color-madera: #8b5e3c;
    --color-madera-light: #c49a6c;
    --color-crema: #f5f0e8;
    --color-white: #fff9f0;
    --color-dorado: #d4a853;
    --color-dorado-hover: #e6bc6a;
    --color-text-secondary: #a89e94;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 1.75rem;
    --radius-pill: 9999px;
    --transition: 0.3s ease;
    --max-width: 1200px;
}

/* --- RESET --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

ul {
    list-style: none;
}

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

/* --- CONTAINER --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- SECTIONS --- */
.section {
    padding: 6rem 0;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-dorado);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 550px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background-color: var(--color-dorado-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 83, 0.3);
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-crema);
    border: 2px solid var(--color-madera);
}

.btn-secondary:hover {
    border-color: var(--color-madera-light);
    color: var(--color-white);
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-arrow {
    transition: transform var(--transition);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: transform var(--transition);
}

.navbar.scrolled .nav-logo-img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-crema);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav-link:hover {
    background-color: var(--color-bg-tertiary);
    color: var(--color-white);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: var(--color-dorado);
    color: var(--color-bg);
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav-cta:hover {
    background-color: var(--color-dorado-hover);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-crema);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-links {
    text-align: center;
}

.mobile-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-crema);
    padding: 0.75rem 0;
    transition: color var(--transition);
}

.mobile-link:hover {
    color: var(--color-dorado);
}

.mobile-cta {
    margin-top: 2rem;
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2.5rem;
    background-color: var(--color-dorado);
    color: var(--color-bg);
    border-radius: var(--radius-pill);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('https://picsum.photos/seed/mountains1/1920/1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.4) 0%,
        rgba(26, 26, 26, 0.7) 50%,
        rgba(26, 26, 26, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-dorado);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* ========================================
   MENÚ DESTACADO
   ======================================== */
.menu-section {
    background-color: var(--color-bg);
}

.menu-carousel-wrapper {
    position: relative;
    padding: 2rem 0;
}

.menu-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 1.5rem;
    scroll-behavior: smooth;
}

.menu-carousel::-webkit-scrollbar {
    display: none;
}

.menu-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.menu-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-madera);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.menu-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
}

.menu-card-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-white);
    padding: 1rem 1.25rem 0.25rem;
}

.menu-card-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dorado);
    padding: 0 1.25rem 1.25rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-madera-dark);
    color: var(--color-crema);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 10;
}

.carousel-arrow:hover {
    background-color: var(--color-madera-dark);
    border-color: var(--color-madera-light);
    color: var(--color-white);
}

.carousel-prev {
    left: 0.5rem;
}

.carousel-next {
    right: 0.5rem;
}

/* ========================================
   SOBRE NOSOTROS
   ======================================== */
.about-section {
    background-color: var(--color-bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.about-img-accent {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-madera);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.about-text strong {
    color: var(--color-white);
}

.about-features {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.about-feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    border: 1px solid var(--color-madera-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dorado);
}

.about-feature-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.about-feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ========================================
   GALERÍA
   ======================================== */
.gallery-section {
    background-color: var(--color-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1.5rem;
    max-width: var(--max-width);
    margin: 2rem auto 0;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item::after {
    content: attr(data-title);
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    opacity: 0;
    transition: opacity var(--transition);
}

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

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

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    position: relative;
    padding: 8rem 1.5rem;
    text-align: center;
    background-image: url('https://picsum.photos/seed/foodbanner/1920/800');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.cta-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(92, 58, 30, 0.85) 0%,
        rgba(26, 26, 26, 0.9) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
}

/* ========================================
   CONTACTO
   ======================================== */
.contact-section {
    background-color: var(--color-bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    border: 1px solid var(--color-madera-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dorado);
}

.contact-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-size: 1rem;
    color: var(--color-white);
    line-height: 1.5;
}

.hours-table {
    margin-top: 0.5rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-bg-tertiary);
}

.hours-row span:first-child {
    color: var(--color-text-secondary);
}

.hours-row span:last-child {
    color: var(--color-white);
    font-weight: 500;
}

.contact-map {
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--color-madera-dark);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.3) contrast(1.1);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #111;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-bg-tertiary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all var(--transition);
}

.social-link:hover {
    background-color: var(--color-dorado);
    border-color: var(--color-dorado);
    color: var(--color-bg);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    transition: color var(--transition);
}

.footer-links ul li a:hover {
    color: var(--color-dorado);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-bg-tertiary);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-crema);
    cursor: pointer;
    transition: color var(--transition);
    z-index: 10;
}

.lightbox-close:hover {
    color: var(--color-dorado);
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-white);
    margin-top: 1rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-img {
        height: 400px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-map {
        height: 350px;
    }

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

/* Mobile */
@media (max-width: 640px) {
    .section {
        padding: 4rem 0;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .menu-card {
        flex: 0 0 220px;
    }

    .menu-card-img {
        height: 220px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cta-banner {
        background-attachment: scroll;
        padding: 5rem 1.5rem;
    }

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

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 0.25rem;
    }

    .carousel-next {
        right: 0.25rem;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.active {
    color: var(--color-dorado);
}

/* Stagger animation for cards */
.menu-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.menu-card.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.menu-card.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.menu-card.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.menu-card.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.menu-card.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }
.menu-card.animate-on-scroll:nth-child(7) { transition-delay: 0.48s; }
.menu-card.animate-on-scroll:nth-child(8) { transition-delay: 0.56s; }

.gallery-item.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.gallery-item.animate-on-scroll:nth-child(2) { transition-delay: 0.06s; }
.gallery-item.animate-on-scroll:nth-child(3) { transition-delay: 0.12s; }
.gallery-item.animate-on-scroll:nth-child(4) { transition-delay: 0.18s; }
.gallery-item.animate-on-scroll:nth-child(5) { transition-delay: 0.24s; }
.gallery-item.animate-on-scroll:nth-child(6) { transition-delay: 0.30s; }
.gallery-item.animate-on-scroll:nth-child(7) { transition-delay: 0.36s; }
.gallery-item.animate-on-scroll:nth-child(8) { transition-delay: 0.42s; }
.gallery-item.animate-on-scroll:nth-child(9) { transition-delay: 0.48s; }

.about-feature.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.about-feature.animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }

/* Small mobile */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

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