/* ==========================================================================
   D'leria Restaurant - Minimalist Style
   ========================================================================== */

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

:root {
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

    --color-black: #1a1a1a;
    --color-dark: #2c2c2c;
    --color-gray: #666666;
    --color-gray-light: #999999;
    --color-white: #ffffff;
    --color-off-white: #fafafa;
    --color-cream: #f5f3f0;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header.scrolled .nav-logo,
.header.scrolled .nav-menu a {
    color: var(--color-black);
    text-shadow: none;
}

.header.scrolled .nav-toggle span {
    background: var(--color-black);
}

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

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-white);
    margin: 3px 0;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.nav-menu {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-menu a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    padding: 5px 0;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

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

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

.nav-menu a:hover {
    opacity: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.35) 40%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.5) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--color-white);
    padding: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.05em;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-badges {
    position: absolute;
    top: 100px;
    right: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-badge-img {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-badge-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-white));
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   Sections Common
   ========================================================================== */

.section {
    padding: 120px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-black);
}

.section-title-light {
    color: var(--color-white);
}

/* ==========================================================================
   About Section
   ========================================================================== */

.section-about {
    background: var(--color-off-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--color-gray);
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-highlight {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--color-black);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Menu Section
   ========================================================================== */

.section-menu {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
}

.menu-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.menu-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-white);
}

.menu-info {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-intro {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.menu-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.menu-items {
    list-style: none;
    margin-bottom: 2rem;
}

.menu-items li {
    font-size: 1rem;
    padding: 8px 0;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.menu-price {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    letter-spacing: 0.02em;
}

.menu-price span {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0.7;
    margin-top: 5px;
}

.menu-extra {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.menu-extra p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}

.menu-notes {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-notes p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.menu-disclaimer {
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.btn-primary:hover {
    background: var(--color-dark);
    opacity: 1;
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-black);
    opacity: 1;
}

/* ==========================================================================
   Reservas Section
   ========================================================================== */

.section-reservas {
    background: var(--color-white);
    text-align: center;
}

.reservas-content {
    max-width: 600px;
    margin: 0 auto;
}

.reservas-intro {
    font-size: 1.1rem;
    color: var(--color-gray);
    margin-bottom: 3rem;
}

.reservas-widget {
    margin-bottom: 3rem;
}

.reservas-phone {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.reservas-phone p {
    font-size: 0.9rem;
    color: var(--color-gray-light);
    margin-bottom: 0.5rem;
}

.phone-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.section-galeria {
    background: var(--color-off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background var(--transition-normal);
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 40px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    align-items: start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.footer-info {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-address p,
.footer-contact p,
.footer-hours p {
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.footer-contact a:hover {
    opacity: 1;
}

.hours-title {
    font-weight: 500;
    opacity: 1 !important;
    margin-bottom: 5px;
}

.footer-badges {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
}

.footer-badge {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal a:hover {
    opacity: 1;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 20px;
    opacity: 0.6;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 20px;
    right: 30px;
    font-size: 3rem;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.lightbox-prev {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-5px);
}

.lightbox-next {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(5px);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-info {
        flex-direction: column;
        gap: 30px;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 25px;
    }

    .nav {
        padding: 20px 25px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-black);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        color: var(--color-white);
        font-size: 1.2rem;
    }

    .nav-toggle.active span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .nav-toggle.active span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero-badges {
        top: auto;
        bottom: 100px;
        right: 20px;
        flex-direction: row;
    }

    .hero-badge-img {
        width: 70px;
        height: 70px;
    }

    .section {
        padding: 80px 0;
    }

    .menu-info {
        padding: 30px 20px;
    }

    .menu-name {
        font-size: 1.8rem;
    }

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

    .footer {
        padding: 60px 0 30px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        letter-spacing: 0.1em;
    }

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

    .hero-badges {
        bottom: 80px;
    }
}
