:root {
    --primary-color: #1a1a1a;  /* Un negro más suave que el negro puro */
    --accent-color: #c9b08a;   /* Un dorado apagado y elegante */
    --text-primary: #e5e5e5;  /* Un blanco ligeramente grisáceo */
    --text-secondary: #a3a3a3; /* Gris claro para textos secundarios */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;   /* Un gris un poco más claro para secciones */
    --bg-accent: #2c2c2c;      /* Para fondos de elementos como precios */
    --border-color: #3a3a3a;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.15);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.2);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.2);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.2);
    --font-display: 'Cinzel Decorative', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    font-family: var(--font-body);
}   

/* Hero Section */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/hero.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative; 
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: calc(100vh - 4rem);
}

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

.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    background-color: var(--bg-primary);
    padding: 8px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons .btn-primary, .hero-buttons .btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 28px;
    border-radius: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.hero-buttons .btn-primary:hover, .hero-buttons .btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: transparent;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
    background: var(--bg-primary);
    border-radius: 50px;
    padding: 4px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.language-switcher button {
    background: none;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.language-switcher button.active {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #25d366, #20bd5a);
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Navigation */
#category-buttons {
    text-align: center;
    margin: 3rem 0;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.category-button {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.category-button:hover,
.category-button.active {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Menu Items */
#menu-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem 1.5rem;
    max-width: 1200px;
    padding: 2.5rem 2rem;
    margin: 0 auto 4rem auto;
}

.menu-item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 0;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 176, 138, 0.5);
}

/* Unified square layout for items without images */
.menu-item-card.no-photo {
    padding: 20px 18px 16px 18px;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

/* Price goes to the absolute bottom */
.menu-item-card.no-photo .menu-item-image-wrapper {
    margin-bottom: auto;
}

.menu-item-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    margin-bottom: 0;
    overflow: hidden;
}

/* Compact layout when no image - now part of the card */
.menu-item-image-wrapper.no-image {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: auto;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.menu-item-card img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: opacity 0.3s ease;
}

.menu-item-card img.image-hidden {
    display: none;
}

/* Hide broken image icon in modal and prevent it from showing */
#modal-image.image-error {
    display: none !important;
    visibility: hidden;
    height: 0;
    width: 0;
}

/* Hide the small broken image icon that appears before the alt text */
#modal-image[src]:not([src=""]):not([src*="data:"]) {
    min-height: 0;
}

/* Add rounded corners only to cards with images */
.menu-item-card.has-photo img {
    border-radius: 16px 16px 0 0;
}

.menu-item-card img.loaded {
    opacity: 1;
}

.menu-item-card .price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(201, 176, 138, 0.3);
}

/* When image is hidden, hide the price inside image wrapper */
.menu-item-image-wrapper.no-image .price {
    display: none;
}

/* Style for price at the bottom of the card */
.price-wrapper {
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.price-wrapper .price {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    text-align: center;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 5px 12px;
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(201, 176, 138, 0.2);
    color: var(--accent-color);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    border: 1px solid rgba(201, 176, 138, 0.2);
}

.menu-item-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Content styling for cards with images */
.menu-item-card.has-photo .menu-item-content {
    padding: 20px;
}

/* Content styling for cards without images */
.menu-item-card.no-photo .menu-item-content {
    padding: 0;
    flex: 1;
    justify-content: center;
}

.menu-item-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.menu-item-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 300px;
    margin-bottom: 0.75rem;
}

/* Promo Badge */
.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Position promo badge differently for cards without images */
.menu-item-card.no-photo .promo-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    left: auto;
}

/* Protein Markers & Camera Icon */
.protein-markers {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    align-items: center;
    z-index: 10;
}

/* When image is hidden, position markers at the top of the card */
.menu-item-image-wrapper.no-image .protein-markers {
    position: relative;
    bottom: auto;
    left: auto;
    justify-content: center;
    padding: 0;
    margin: 0;
    order: 1;
}

.protein-marker {
    width: 26px;
    height: 26px;
    color: var(--accent-color);
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 176, 138, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Slightly smaller icons when no image */
.menu-item-image-wrapper.no-image .protein-marker {
    width: 24px;
    height: 24px;
    padding: 4px;
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(201, 176, 138, 0.2);
}

.protein-marker svg {
    width: 100%;
    height: 100%;
}

.camera-indicator {
    width: 28px;
    height: 28px;
    color: var(--accent-color);
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 176, 138, 0.4);
    margin-left: 4px;
    animation: pulse-camera 2s ease-in-out infinite;
    flex-shrink: 0;
}

/* Slightly smaller camera icon when no image */
.menu-item-image-wrapper.no-image .camera-indicator {
    width: 26px;
    height: 26px;
    padding: 5px;
    background: rgba(26, 26, 26, 0.6);
    border-color: rgba(201, 176, 138, 0.2);
}

.camera-indicator svg {
    width: 100%;
    height: 100%;
}

@keyframes pulse-camera {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

.menu-item-card.has-photo:hover .protein-marker {
    transform: translateY(-2px);
    border-color: var(--accent-color);
}

.menu-item-card.has-photo:hover .camera-indicator {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* Reviews Section */
.reviews-section {
    background: var(--bg-secondary);
    padding: 4rem 2rem;
    text-align: center;         
}

.reviews-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 600;
    color: var(--text-primary);
}

/* Location Section */
.location-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.location-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-info .btn-primary,
.download-menu a {
    background: var(--accent-color);
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.location-info .btn-primary:hover,
.download-menu a:hover {
    background: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.location-details {
    margin-bottom: 2rem;
}

.location-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.location-details i {
    color: var(--accent-color);
    width: 20px;
    font-size: 1.1rem;
}

#map {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

footer h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
}

#social-media-links {
    margin: 2rem 0;
}

#social-media-links a {
    color: var(--text-secondary);
    margin: 0 1rem;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: inline-block;
}

#social-media-links a:hover {
    color: var(--bg-primary);
    transform: translateY(-2px);
}

footer p {
    color: var(--text-secondary);
}

/* Hidden class for language switching */
.hidden {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-xl);
    animation: slideDown 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

#modal-image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
}

#modal-image-container.hidden {
    display: none;
}

#modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#modal-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

#modal-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

#modal-detailed-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
}

.modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 1rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;                  
    color: var(--text-secondary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-family: var(--font-display);
        font-size: clamp(3rem, 7vw, 5.5rem);
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 1rem;
        letter-spacing: 0.05em;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    #map {
        height: 300px;
    }

    .category-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    #menu-items-container {
        grid-template-columns: 1fr;
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    .menu-item-card img {
        height: 280px;
    }

    .menu-item-card.no-photo h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }
    
    .menu-item-card.no-photo p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 0.65rem;
    }
    
    .menu-item-card.no-photo {
        padding: 16px 14px 14px 14px;
        min-height: 200px;
    }

    .menu-item-image-wrapper.no-image {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        gap: 12px;
    }

    .language-switcher,
    .whatsapp-float {
        right: 20px;
    }

    .language-switcher {
        top: 20px;
    }

    .whatsapp-float {
        bottom: 20px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }

    #modal-image {
        height: 250px;
    }

    #modal-title {
        font-size: 1.5rem;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 30px;
    }
}
