/* Estilos generales */
:root {
    --primary-color: #c8a971; /* Dorado elegante similar a TAMPU */
    --secondary-color: #1a1a1a;
    --light-color: #fff;
    --dark-color: #121212;
    --gray-color: #f4f4f4;
    --overlay-color: rgba(0, 0, 0, 0.65);
}

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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--dark-color);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1rem;
}

h2 {
    font-size: 2.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: 1px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--dark-color);
    padding: 12px 24px;
    border: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #b39659; /* Versión más oscura del dorado */
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%; /* Reducido el padding vertical */
    height: 80px; /* Altura fija para la barra de navegación */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
    background-color: transparent;
    backdrop-filter: blur(3px);
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    padding: 0 5%; /* Mantenemos el padding horizontal pero eliminamos el vertical */
    height: 70px; /* Altura ligeramente menor cuando se hace scroll */
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: visible; /* Permite que el logo sobresalga si es necesario */
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    max-height: 150px;
    width: auto;
    position: relative;
    top: 0; /* Ajustado a 0 para centrar verticalmente */
    /* Recorta visualmente los márgenes blancos del logo */
    transform: scale(1.3); /* Hace el logo un poco más grande para compensar los márgenes */
    margin: -15% -10%; /* Valores negativos para "eliminar" el espacio en blanco del SVG */
}

.nav-links {
    margin-left: auto; /* Mueve el menú hacia la derecha */
    margin-right: 2rem; /* Espacio entre el menú y los íconos sociales */
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--light-color);
    font-weight: 300;
    padding: 0.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    color: var(--light-color);
    font-size: 16px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(var(--overlay-color), var(--overlay-color)), url('../img/Fondo-La-marea.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: var(--light-color);
    padding-left: 10%;
}

.hero-content {
    max-width: 600px;
    padding: 0;
}

.hero h1 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--light-color);
}

.hero h2 {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light-color);
    letter-spacing: 2px;
}

.hero h3 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

/* About Section */
.about {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 6rem 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Featured Dishes */
.featured-dishes {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 6rem 0;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dish-card {
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background-color: #222;
}

.dish-card:hover {
    transform: translateY(-10px);
}

.dish-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 70%; /* Ajustado para mostrar la parte inferior de los platos */
}

.dish-card:first-child img {
    object-position: center 85%; /* Muestra más la parte inferior específicamente para el Seco Norteño */
}

.dish-card h3 {
    color: var(--primary-color);
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.5rem;
}

.dish-card p {
    padding: 0 1.5rem 1.5rem;
    color: #ccc;
}

/* Footer */
footer {
    background-color: #0c0c0c;
    color: var(--light-color);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo img {
    height: auto;
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-slogan {
    font-size: 0.85rem;
    color: #aaa;
    max-width: 220px;
    line-height: 1.4;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 500;
    font-family: 'Raleway', sans-serif;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: #aaa;
    font-size: 0.85rem;
}

.footer-section a {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

.social-icons-footer {
    display: flex;
    gap: 1.5rem;
}

.social-icon-footer {
    color: #aaa;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icon-footer:hover {
    color: var(--primary-color);
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 80px; /* Aumentado para dejar espacio para el texto */
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

.whatsapp-float i {
    margin-top: 0;
}

.whatsapp-text {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 99;
    letter-spacing: 1px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-text i {
    margin-right: 5px;
    color: #c8a971;
}

/* Barra de reservas */
.reserva-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 38, 30, 0.9);
    color: white;
    text-align: center;
    padding: 8px 0; /* Reducido de 12px a 8px para hacerla más fina */
    z-index: 99;
    font-family: 'Raleway', sans-serif;
    letter-spacing: 2px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 500;
    box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.2);
}

.reserva-banner i {
    color: var(--primary-color);
    margin: 0 8px;
}

.reserva-banner a {
    color: white;
    transition: color 0.3s ease;
}

.reserva-banner a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        text-align: center;
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .social-icons {
        display: none;
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        text-align: center;
        transition: left 0.3s ease;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links ul {
        flex-direction: column;
        padding: 2rem 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }
    
    .footer-social {
        flex-direction: row;
        gap: 1.5rem;
    }
}
