/* =========================================
   1. VARIABLES (¡Cambia esto para personalizar!)
   ========================================= */
:root {
    /* Paleta de Colores */
    --color-primary: #D35400;   /* Color principal (botones, iconos, precios) */
    --color-secondary: #2C3E50; /* Color secundario (fondos oscuros, títulos) */
    --color-bg-light: #F8F9F9;  /* Fondo general claro */
    --color-text: #4D5656;      /* Color del texto normal */
    
    /* Tipografías */
    --font-titles: 'Playfair Display', serif; /* Letra elegante para títulos */
    --font-text: 'Lato', sans-serif;          /* Letra limpia para leer bien */
    
    /* Diseño */
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* =========================================
   2. RESET Y CONFIGURACIÓN GENERAL
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Navegación con scroll suave */
    scroll-padding-top: 80px; /* Evita que el menú fijo tape los títulos */
}

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-titles); color: var(--color-secondary); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

/* =========================================
   3. MENÚ DE NAVEGACIÓN (Fijo)
   ========================================= */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-family: var(--font-titles); font-size: 1.8rem; font-weight: 700; color: var(--color-primary); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.nav-links a:hover { color: var(--color-primary); }

.btn-nav {
    background-color: var(--color-primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: var(--border-radius);
}
.btn-nav:hover { background-color: var(--color-secondary); }

/* =========================================
   4. SECCIONES Y CONTENEDORES
   ========================================= */
section { padding: 6rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; position: relative; }
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background-color: var(--color-primary); margin: 15px auto 0;
}

/* --- HERO (Portada) --- */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: white; padding: 0 1rem;
}
.hero h1 { font-size: 4rem; color: white; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px;}
.hero p { font-size: 1.5rem; margin-bottom: 2rem; max-width: 600px; font-weight: 300; }
.btn-main {
    background-color: var(--color-primary); color: white; padding: 1rem 2.5rem;
    font-size: 1.1rem; font-weight: bold; border-radius: var(--border-radius); text-transform: uppercase;
}
.btn-main:hover { background-color: white; color: var(--color-secondary); }

/* --- NOSOTROS (Historia) --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { border-radius: var(--border-radius); box-shadow: var(--shadow); }

/* --- CARTA (Menú) --- */
.bg-dark-section { background-color: var(--color-secondary); color: white; }
.bg-dark-section h2 { color: white; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.menu-category h3 { color: var(--color-primary); margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 0.5rem; }
.menu-item { display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: baseline; }
.dish-name { font-weight: bold; font-size: 1.1rem; }
.dish-desc { font-size: 0.9rem; opacity: 0.8; font-style: italic; }
.dish-price { color: var(--color-primary); font-weight: bold; font-family: var(--font-titles); font-size: 1.2rem; margin-left: 1rem;}

/* --- RESERVAS Y CONTACTO --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.card { background: white; padding: 3rem; border-radius: var(--border-radius); box-shadow: var(--shadow); border-top: 4px solid var(--color-primary); }
input, select { width: 100%; padding: 12px; margin-bottom: 1.5rem; border: 1px solid #ddd; border-radius: 4px; font-family: inherit; }
button[type="submit"] { width: 100%; border: none; cursor: pointer; }
.info-item { display: flex; align-items: flex-start; margin-bottom: 1.5rem; }
.info-item i { color: var(--color-primary); font-size: 1.5rem; margin-right: 15px; margin-top: 5px; }

/* --- FOOTER --- */
footer { background-color: #1a1a1a; color: #888; text-align: center; padding: 3rem 2rem; }
.social-links a { font-size: 1.5rem; color: white; margin: 0 10px; }
.social-links a:hover { color: var(--color-primary); }

/* =========================================
   5. RESPONSIVE (Móviles)
   ========================================= */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-links { flex-direction: column; width: 100%; gap: 1rem; }
    .hero h1 { font-size: 2.8rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    section { padding: 4rem 1.5rem; }
}