/* 
   DESIGN SYSTEM: TICINO GOURMET 
   Estética: Modern Clinical Gastronomy
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Inter:wght@300;400;500&display=swap');

:root {
    /* Colors */
    --bg-dark: #0A0A0A;
    --bg-light: #F9F7F2;
    --accent: #C5A059; /* Champagne Gold */
    --accent-hover: #D4B478;
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-dark: #1A1A1A;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.05em;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* NAVIGATION */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
}

nav.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Header Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent);
}

/* El botón PRENOTA ahora es solo texto en color accent */
.nav-links .cta-booking {
    color: var(--accent) !important;
    font-weight: 600;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
    transform: scale(1.05);
    animation: zoomOut 10s ease-out forwards;
}

@keyframes zoomOut {
    to { transform: scale(1); }
}

.hero-content h1 {
    font-size: clamp(48px, 8vw, 100px);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-size: 18px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0;
    animation: fadeIn 1.5s ease-out 1s forwards;
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

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

/* SECTIONS */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.section-title .divider {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto;
}

/* PHILOSOPHY PREVIEW */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.philosophy-text h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--accent);
}

.philosophy-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 2px;
}

/* MENU PREVIEW */
.menu-preview {
    background: var(--bg-light);
    color: var(--text-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.menu-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.menu-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.menu-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

/* FOOTER */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 14px;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: var(--text-muted);
}

/* GALLERY GRID FOR AMBIENTE */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 2px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

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

.gi-1 { grid-column: span 8; height: 600px; }
.gi-2 { grid-column: span 4; height: 600px; }
.gi-3 { grid-column: span 4; height: 500px; }
.gi-4 { grid-column: span 8; height: 500px; }

/* RESPONSIVE & MOBILE OPTIMIZATION */
@media (max-width: 992px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #navbar {
        position: relative; /* Evita que flote sobre el texto */
        background: var(--bg-dark);
        height: auto;
    }

    .nav-content {
        flex-direction: column;
        padding: 20px 15px;
        gap: 15px;
    }

    .logo {
        font-size: 18px;
        text-align: center;
        margin-bottom: 5px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        font-size: 10px;
    }

    .nav-links .cta-booking {
        border: none !important;
        padding: 0;
        background: transparent;
        color: var(--accent) !important;
        font-weight: 700;
        text-transform: uppercase;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .story-image img {
        height: 400px;
    }

    .gi-1, .gi-2, .gi-3, .gi-4 { 
        grid-column: span 12; 
        height: 400px; 
    }
    
    .gallery-grid { 
        gap: 15px; 
    }

    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 10px;
    }
    
    .cta-booking {
        padding: 12px 25px;
        font-size: 10px;
    }
}

/* FORM CONTROLS LEGIBILITY FIX */
input, select, textarea {
    color: white !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Hace que el icono del calendario sea blanco */
    cursor: pointer;
}

select option {
    background-color: #1a1a1a !important;
    color: white !important;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C5A059' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    padding-right: 40px !important;
}
