/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Variables CSS */
:root {
    --primary-gold: #FFD700;
    --dark-gold: #B8860B;
    --black: #000000;
    --dark-brown: #8B4513;
    --white: #FFFFFF;
    --light-gray: #f8f9fa;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Navegación */
.navbar {
    position: fixed !important;
    /* Force fixed position */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Default background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    /* Ensure high z-index */
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0.8rem 0;
    /* Slightly smaller on scroll */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-link:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: var(--transition);
    border-radius: 2px;
}

/* WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    position: relative;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: bounce 1s infinite;
}

.whatsapp-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.whatsapp-chat.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.chat-header {
    background: #075e54;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-body {
    padding: 20px;
    background: #e5ddd5;
    min-height: 200px;
}

.chat-message {
    background: white;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 5px;
    margin-bottom: 15px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-message p {
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.4;
}

.chat-message p:last-of-type {
    margin-bottom: 8px;
}

.message-time {
    font-size: 11px;
    color: #999;
    float: right;
}

.quick-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-option {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
}

.quick-option:hover {
    background: #f0f0f0;
    border-color: #25d366;
    transform: translateX(5px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Sección Hero con Carrusel */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.carousel-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.carousel-content .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-gold);
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-gold);
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 600px;
    padding: 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--black);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Secciones generales */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--black);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gold);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sección de Menú */
/* Sección de Menú */
.menu-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
    /* Force solid background */
    position: relative;
    z-index: 10;
    /* Ensure it sits on top of any fixed backgrounds */
}

.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 11;
}

.category-btn {
    background-color: #ffffff !important;
    /* Force white background */
    color: #000000 !important;
    /* Force black text */
    border: 2px solid var(--primary-gold);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* Add shadow for better separation */
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--primary-gold) !important;
    color: var(--black) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.menu-category {
    display: none;
}

.menu-category.active {
    display: block;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.menu-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.menu-item .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    background: var(--primary-gold);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

/* Sección de Historia */
.history-section {
    padding: 5rem 0;
    background: var(--white);
}

.history-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.history-text h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.history-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.history-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Sección de Ubicación */
.location-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-card i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.info-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sección de Opiniones */
.reviews-section {
    padding: 5rem 0;
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stars {
    margin-bottom: 1rem;
}

.stars i {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin: 0 2px;
}

.review-card p {
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.reviewer strong {
    color: var(--black);
    font-size: 1.1rem;
}

.reviewer span {
    color: var(--primary-gold);
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

/* Sección de Contacto */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    color: #fff;
}

.contact-info h3 {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--primary-gold);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateX(5px);
}

.contact-method i {
    color: var(--primary-gold);
    font-size: 1.3rem;
    width: 20px;
}

.contact-method h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--primary-gold);
}

.contact-method p {
    margin: 0;
    color: #ccc;
}

.contact-method a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-gold);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-gold);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #2d2d2d;
    color: #fff;
}

.error-message {
    display: block;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    min-height: 1rem;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.submit-btn {
    width: 100%;
    background: var(--primary-gold);
    color: var(--black);
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.form-success {
    background: rgba(76, 175, 80, 0.1);
    border: 2px solid #4caf50;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    color: #4caf50;
    margin-top: 1rem;
}

.form-success i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-success p {
    margin: 0;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-gold);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-gold);
    color: var(--black);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
}

/* Responsive Design - Mobile First */

/* Carousel adjustments */
.carousel-slide img {
    object-position: center;
}

/* Tablets y pantallas medianas */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-content {
        gap: 2.5rem;
    }

    .whatsapp-chat {
        width: 280px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        backdrop-filter: blur(10px);
        z-index: 9999;
        overflow-y: auto;
        max-height: calc(100vh - 70px);
    }

    /* Ocultar elementos del carrusel cuando el menú móvil está activo */
    .nav-menu.active~.hero .carousel-content,
    .nav-menu.active~.hero .carousel-nav,
    .nav-menu.active~.hero .carousel-indicators {
        display: none !important;
    }

    /* Asegurar que solo los enlaces de navegación sean visibles */
    .nav-menu .nav-link {
        display: block;
        color: var(--white);
        text-decoration: none;
        padding: 1rem;
        font-size: 1.2rem;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu .nav-link:hover {
        color: var(--primary-gold);
        background: rgba(255, 215, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        height: 60vh;
        /* Reduce height on mobile */
        min-height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .carousel-content {
        padding: 1.5rem;
        bottom: 15%;
        width: 90%;
        left: 50%;
        transform: translateX(-50%);
    }

    .carousel-content h1 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .history-content,
    .location-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        /* Force 1 column on mobile */
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        flex-direction: row;
        /* Keep horizontal scroll if needed or wrap */
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .category-btn {
        width: auto;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .whatsapp-chat {
        width: 260px;
        bottom: 70px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Móviles grandes */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .carousel-content {
        padding: 1rem;
        bottom: 10%;
    }

    .carousel-content h1 {
        font-size: 1.5rem;
    }

    .carousel-content .price {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .menu-item-content {
        padding: 1.2rem;
    }

    .menu-item h3 {
        font-size: 1.3rem;
    }

    .menu-item .price {
        font-size: 1.2rem;
    }

    .info-card,
    .contact-form {
        padding: 1.5rem;
    }

    .carousel-btn {
        padding: 0.6rem;
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .whatsapp-chat {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        bottom: 70px;
    }

    .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Móviles pequeños */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .menu-item-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }

    .category-btn {
        width: 100%;
        /* Stack buttons on very small screens if wrapped */
    }
}

/* Landscape móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .carousel-content {
        bottom: 5%;
        padding: 0.8rem;
    }

    .whatsapp-chat {
        max-height: 300px;
        overflow-y: auto;
    }

    .nav-menu {
        overflow-y: scroll;
        max-height: calc(100vh - 60px);
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply animations */
.menu-item,
.review-card,
.info-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Optimizaciones de rendimiento */
.loaded {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimizaciones para pantallas de alta densidad */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}