/*
Theme Name: Sabor Auténtico
Theme URI: https://saborautentico.com
Author: Tu Nombre
Author URI: https://tudominio.com
Description: Theme personalizado para restaurante Sabor Auténtico con diseño elegante y funcional
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sabor-autentico
Tags: restaurant, food, one-page, custom-menu, responsive
*/

:root {
    --primary: #2c1810;
    --secondary: #8b6f47;
    --accent: #d4a574;
    --light: #f5f1ed;
    --white: #ffffff;
    --shadow: rgba(44, 24, 16, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 5%;
    box-shadow: 0 2px 20px var(--shadow);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
}

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

.logo {
    font-size: 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 1px;
}

/* WordPress custom logo support */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* WordPress añade estas clases automáticamente */
.nav-links li,
.nav-links .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links .current-menu-item a::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links .current-menu-item a {
    color: var(--secondary);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(44, 24, 16, 0.3), rgba(44, 24, 16, 0.4)), 
                url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 165, 116, 0.2), transparent);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

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

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* About Section */
#nosotros {
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 20px 20px 0 var(--accent);
}

/* Menu Section */
#menu {
    background: var(--light);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.menu-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 2px;
    box-shadow: 0 5px 30px var(--shadow);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.menu-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(44, 24, 16, 0.2);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--accent);
}

.menu-item h3 {
    font-size: 1.8rem;
    color: var(--primary);
}

.menu-price {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.menu-item p {
    color: var(--secondary);
    line-height: 1.7;
}

/* Gallery Section */
#galeria {
    background: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-overlay span {
    color: var(--white);
    font-size: 1.5rem;
    font-family: 'Cormorant Garamond', serif;
}

/* Reservations Section */
#reservaciones {
    background: var(--primary);
    color: var(--white);
}

#reservaciones .section-label {
    color: var(--accent);
}

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

#reservaciones .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.reservation-form {
    max-width: 600px;
    margin: 3rem auto 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reservation-form.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.submit-button {
    width: 100%;
    padding: 1.2rem;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Contact Section */
#contacto {
    background: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 3rem;
}

.contact-info {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s ease;
}

.contact-info.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    margin-bottom: 3rem;
}

.contact-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-5px);
}

.contact-map {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s ease 0.2s;
}

.contact-map.visible {
    opacity: 1;
    transform: translateX(0);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: var(--secondary);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 2px;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 5%;
    text-align: center;
}

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

.footer-content p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* WordPress specific */
.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px var(--shadow);
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }
    
    /* Asegurar que los items del menú de WordPress se vean bien en móvil */
    .nav-links li,
    .nav-links .menu-item {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: flex;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image img {
        box-shadow: 15px 15px 0 var(--accent);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    section {
        padding: 5rem 5%;
    }
}

@media (max-width: 640px) {
    .menu-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WordPress Menu Compatibility
   ========================================================================== */

/* Limpiar estilos por defecto de WordPress en el menú */
#navbar .nav-links,
#navbar .nav-links ul {
    margin: 0;
    padding: 0;
}

#navbar .nav-links li,
#navbar .nav-links .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Asegurar que submenús no aparezcan (este theme no los usa) */
#navbar .nav-links .sub-menu {
    display: none;
}

/* Limpiar estilos automáticos de WordPress */
.menu-item a,
.menu-item-type-custom a,
.menu-item-object-custom a {
    background: none;
    border: none;
    box-shadow: none;
}

/* Corregir focus states para accesibilidad */
.nav-links a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Asegurar que el menú toggle funcione en móvil */
@media (max-width: 968px) {
    /* Overlay para cerrar el menú al hacer click fuera */
    .nav-links.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 300px;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    /* Asegurar que cada item de menú sea clickeable en móvil */
    .nav-links .menu-item {
        width: 100%;
    }
    
    .nav-links .menu-item a {
        padding: 0.5rem 0;
        width: 100%;
        display: block;
    }
}

