:root {
    --bg: #fdf9f3;
    --text: #3e3e3e;
    --primary: #b85c38;
    --primary-light: #d4a373;
    --secondary: #6b705c;
    --card-bg: #fffaf3;
    --shadow: 0 8px 30px rgba(0,0,0,0.06);
    --border: #e0cfc0;
    --hover: #f1e0d2;
    --dark-bg: #1e1a17;
    --dark-text: #e0d6cc;
    --dark-card: #2c2622;
    --dark-border: #4a3f38;
    --transition: 0.3s ease;
}

.dark-mode {
    --bg: #1e1a17;
    --text: #e0d6cc;
    --primary: #d4a373;
    --primary-light: #b0764a;
    --secondary: #a5a58d;
    --card-bg: #2c2622;
    --shadow: 0 8px 30px rgba(0,0,0,0.3);
    --border: #4a3f38;
    --hover: #3e352e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header & Navegación */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: background var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.dark-toggle {
    background: none;
    border: 1px solid var(--border);
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text);
    padding: 8px;
    border-radius: 50%;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.dark-toggle:hover {
    background: var(--hover);
}

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

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    display: block;
}

/* Hero */
.hero {
    margin-top: 80px;
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.btn {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    display: inline-block;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

/* Secciones */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* Menú */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    color: var(--text);
    font-size: 0.95rem;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-box input {
    width: 300px;
    max-width: 80%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border var(--transition);
}

.search-box input:focus {
    border-color: var(--primary);
}

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

.menu-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.item-info {
    padding: 20px;
}

.item-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.item-info p {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

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

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.add-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: background var(--transition);
    font-weight: 600;
}

.add-btn:hover {
    background: var(--primary-light);
}

/* Carrito lateral */
.cart-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform var(--transition);
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 380px;
    max-width: 90%;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right var(--transition);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.cart-panel.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
}

.cart-items {
    flex: 1;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: var(--border);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: background var(--transition);
}

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

.cart-total {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    text-align: right;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background var(--transition);
}

.checkout-btn:hover {
    background: var(--primary-light);
}

/* Modal confirmación pedido */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal h3 {
    margin-bottom: 1rem;
}

.modal input, .modal textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

/* Reservas */
.reservation-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-size: 1rem;
}

/* Galería */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    height: 250px;
}

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

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

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* Testimonios slider */
.testimonial-slider {
    max-width: 700px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer .social-icons {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background: var(--bg);
        flex-direction: column;
        padding: 40px;
        gap: 2rem;
        transition: left var(--transition);
    }
    .nav-links.active {
        left: 0;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
}