/* Basic Reset & Body */
:root {
    --primary-color: #FFC300; /* A slightly darker, more accessible gold */
    --secondary-color: #E0E0E0; /* A lighter grey for better contrast */
    --bg-color: #000000; /* Black for max contrast */
    --text-color: #FFFFFF; /* White */
    --contrast-bg-color: rgba(10, 10, 10, 0.6); /* Even more transparent */
    --card-bg-color: #242424; /* Lighter card background */
    --card-border-color: #333333; /* Lighter card border */
    --category-title-color: var(--primary-color);
    --subcategory-title-color: var(--secondary-color);
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    text-align: center;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-text, .minimal-logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 900;
}

#video-background {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    object-fit: cover; /* Cover the entire screen */
    filter: brightness(0.4); /* Darken the video */
}

.menu-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--contrast-bg-color);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header */
header {
    padding: 20px;
}

.logo {
    max-width: 150px;
    margin-bottom: 15px;
    margin-left: auto; /* Center the container */
    margin-right: auto; /* Center the container */
}

#logo-container img,
#logo-container video {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    border-radius: 10px; /* Optional: for rounded corners on video/gif */
}

h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.site-subtitle {
    color: var(--secondary-color);
    font-style: italic;
    margin-top: 0;
}

.notice-container {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 15px 0;
}

/* Hero Section */
.hero-section {
    padding: 40px 20px;
    margin: 20px 0;
    border-radius: 10px;
    background: rgba(0,0,0,0.3);
}
.hero-content-container h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}
.hero-content-container p {
    font-size: 1.2rem;
}

/* Loyalty Banner */
.loyalty-banner {
    background: linear-gradient(45deg, var(--primary-color), #b38b00);
    color: #000000; /* Black text for high contrast on yellow */
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}
.loyalty-banner h2 {
    margin: 0 0 10px 0;
}
.btn-loyalty {
    display: inline-block;
    background-color: #000000; /* Black background */
    color: var(--primary-color); /* Yellow text */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: background-color 0.3s, color 0.3s;
    border: 1px solid var(--primary-color);
}
.btn-loyalty:hover {
    background-color: var(--primary-color);
    color: #000000;
}

/* --- Membresía Header --- */
.header-top-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
}

.btn-menu-membership, .btn-membership-header {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #000;
    border: none;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.btn-membership-header:active {
    transform: scale(0.95);
}

.btn-membership-header .star-icon {
    font-size: 1.2em;
}

/* --- Categorías (Segunda Landing) --- */
.category-selection-view {
    padding: 40px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-selection-view h2 {
    color: var(--primary-color);
    font-size: 2.2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 800px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.category-btn:hover {
    background: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 195, 0, 0.3);
}

.category-btn:hover span, .category-btn:hover i {
    color: #000 !important;
}

.category-btn i {
    font-size: 3em;
    color: var(--primary-color);
}

.category-btn span {
    color: #fff;
    font-weight: 800;
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .category-btn {
        padding: 25px 10px;
    }
    .category-btn i {
        font-size: 2.2em;
    }
    .category-btn span {
        font-size: 1em;
    }
}


/* Announcements */
.announcements-container {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.announcement {
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.5s ease-out forwards;
    font-weight: bold;
}

.close-btn {
    background: none;
    border: none;
    color: var(--bg-color);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

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

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

/* Navigation */
#category-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--contrast-bg-color);
    backdrop-filter: blur(10px); /* Match the container's blur effect */
}

#category-nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    background-color: var(--card-bg-color);
    transition: background-color 0.3s, color 0.3s;
}

#category-nav a:hover, #category-nav a.active {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* Menu Content */
#menu-content {
    padding: 20px;
    border-radius: 10px;
}

.menu-section h2 {
    color: var(--category-title-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Added text shadow */
}

.menu-section h4 {
    color: var(--primary-color); /* Use primary color for subcategory titles */
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color); /* Thicker border with primary color */
    padding-left: 12px; /* Increased padding */
    font-size: 1.3rem; /* Larger font size */
    font-weight: bold; /* Make it bold */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6); /* Added text shadow */
}

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

.menu-item-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

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

.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.item-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--text-color);
}

.sub-item {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 5px;
    flex-grow: 1;
    white-space: pre-wrap; /* Render newlines */
}

#modal-description, .item-description {
    white-space: pre-wrap; /* Render newlines */
}

.price-add-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.item-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-add-to-cart {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-add-to-cart:hover {
    background-color: #fff;
}

/* Subcategory Filters */
.subsection-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.sub-filter {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 15px;
    background-color: var(--card-bg-color);
    color: var(--text-color); /* Improved contrast */
    transition: all 0.3s;
}
.sub-filter:hover, .sub-filter.active {
    background-color: var(--secondary-color);
    color: var(--bg-color);
}

.back-to-menu-button {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
footer {
    margin-top: 20px;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 99999 !important; /* Prioridad máxima absoluta */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.92) !important;
    backdrop-filter: blur(15px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg-color);
    margin: auto;
    padding: 30px;
    border: 2px solid var(--primary-color);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,1);
    text-align: center;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.modal-main-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.modal-gallery {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.modal-gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.modal-gallery-thumb:hover {
    border-color: var(--primary-color);
}

#modal-title {
    color: var(--primary-color);
}

/* Main Actions Bar (Formerly Floating) */
.main-actions-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.mute-button, .whatsapp-fab-top-left {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border: none;
    font-size: 1.2rem;
    background-color: rgba(0,0,0,0.5);
    color: white;
    box-shadow: none; /* Removed shadow to fit flat bar */
}

.whatsapp-fab-top-left {
    background-color: #25D366;
    color: #FFF;
    text-decoration: none;
}

.whatsapp-fab-top-left svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.mute-button:hover, .whatsapp-fab-top-left:hover {
    transform: scale(1.1);
}

/* Cart & Loyalty Buttons */
/* Navegación y Botones Modernos */
.btn-outline-warning {
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), rgba(255, 195, 0, 0.2));
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.btn-outline-warning:hover {
    background: var(--primary-color);
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 195, 0, 0.4);
}

.nav-button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: 1px solid var(--primary-color);
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.nav-button:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

/* Scroll To Top Button Mejorado */
#scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 25px;
    z-index: 2000;
    font-size: 20px;
    border: none;
    outline: none;
    background: var(--primary-color);
    color: #000;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-items: center;
    justify-content: center;
}

#scrollTopBtn:hover {
    transform: scale(1.1) rotate(-5deg);
    background: #fff;
}

/* Loader para el modal de puntos */
.points-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.points-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 195, 0, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin-points 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin-points {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enlaces de pie de modal login */
.login-footer-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

#forgot-pin-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color 0.2s;
}

#forgot-pin-link:hover {
    color: var(--primary-color);
}

.btn-register-link {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 10px;
    border: 1px solid rgba(255, 195, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s;
}

.btn-register-link:hover {
    background: rgba(255, 195, 0, 0.1);
    border-color: var(--primary-color);
}
#points-btn {
    display: none; /* Hidden by default, shown via JS if logged in */
}

/* Form Styles for Modals */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--secondary-color);
}
.form-group input {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 5px;
    color: var(--text-color);
}
.btn-submit {
    background-color: var(--primary-color);
    color: var(--bg-color);
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s;
}
.btn-submit:hover {
    background-color: #fff;
}

/* Cart Modal Specifics */
#cart-items-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border-color);
}
.cart-item-details {
    text-align: left;
}
.cart-item-name {
    font-weight: bold;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.quantity-btn, .remove-item-btn {
    background: var(--secondary-color);
    color: var(--bg-color);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
}
.remove-item-btn {
    background: #c0392b;
    color: white;
}
.cart-summary {
    text-align: right;
    font-size: 1.2rem;
    font-weight: bold;
}
#cart-count-badge {
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    vertical-align: top;
    margin-left: 5px;
    display: none; /* Hidden by default */
}

/* Cart disabled state */
.cart-disabled #cart-btn,
.cart-disabled .btn-add-to-cart {
    display: none !important;
}

/* Fly to cart animation */
.fly-to-cart {
    position: fixed;
    z-index: 1002;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.8;
    transition: transform 3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 3s linear; /* Slower animation */
    display: flex;
    align-items: center;
    justify-content: center;
}
.fly-to-cart svg {
    width: 60%;
    height: 60%;
    fill: var(--bg-color);
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}
.cart-shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}

/* Notification */
.alert-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 2000;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: opacity 0.3s, transform 0.3s;
}
.alert-success {
    background-color: #2ecc71;
    color: white;
}
.alert-error {
    background-color: #e74c3c;
    color: white;
}


/* Home View Styles */
.home-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100; /* Bajado de 1000 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    transition: opacity 0.5s ease;
}

.home-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
    padding: 30px;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    border: 1px solid rgba(255, 195, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.home-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.home-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.home-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 30px;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    border-radius: 15px;
    border: none;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.btn-home:active {
    transform: scale(0.95);
}

.btn-home.primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-home.secondary {
    background-color: #34495e;
    color: #fff;
}

.btn-home.accent {
    background-color: #e74c3c;
    color: #fff;
}

.btn-icon {
    font-size: 1.8rem;
}

.home-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.home-footer p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.home-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.whatsapp-icon::before {
    content: "💬";
    font-size: 1.2rem;
}

.btn-home.info {
    background-color: #3498db;
    color: #fff;
}

/* Category Grid Styles */
.category-selection-view {
    padding: 20px 10px;
    animation: fadeIn 0.5s ease;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en movil */
    gap: 15px;
    padding: 10px;
}

@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-btn {
    background: rgba(30, 30, 30, 0.9);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.category-btn:active {
    transform: scale(0.95);
    background-color: var(--primary-color);
    color: #000;
}

.category-btn i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-btn span {
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}

.category-btn:active i, .category-btn:active span {
    color: #000;
}

/* Items view adjustments */
#items-menu-view {
    animation: fadeIn 0.5s ease;
}

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

/* Responsive */
@media (max-width: 600px) {
    .menu-container {
        margin: 0;
        padding: 10px;
        border-radius: 0;
    }
    .grid-container {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
}

/* Star Rating CSS */
.star-rating {
  direction: rtl; /* Para que al pasar el mouse se iluminen las anteriores */
  display: inline-flex;
  font-size: 2em;
  justify-content: center;
}
.star-rating input {
  display: none;
}
.star-rating label {
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: #f39c12; /* Color dorado */
}

/* Review Button */
.btn-review {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px; /* visual alignment */
}
/* --- Minimal Carta Landing Styles --- */
.minimal-view {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding-bottom: 50px;
}

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

.minimal-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 20px;
}

.minimal-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.minimal-quick-nav {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    margin-bottom: 30px;
    z-index: 1000;
    display: flex;
    overflow-x: auto;
    gap: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.minimal-quick-nav::-webkit-scrollbar { display: none; }

.minimal-quick-nav a {
    color: #a0a0a0;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, border-bottom 0.3s;
    padding-bottom: 5px;
}

.minimal-quick-nav a:hover, .minimal-quick-nav a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Botones de acción en la Landing Minimal */
.landing-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .landing-actions {
        grid-template-columns: repeat(4, 1fr);
    }
}

.btn-landing-action {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 5px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-landing-action:hover {
    background: var(--primary-color);
    color: #000;
}

.btn-landing-action i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.btn-landing-action span {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-landing-action.highlight {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Secciones y Items Minimal */
.min-section {
    margin-bottom: 60px;
    text-align: left;
}

.min-section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-top: 40px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 30px;
}

.min-subsection-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #f0f0f0;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.min-item {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
}

.min-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
}

.min-item-name {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ffffff;
}

.min-item-dots {
    flex-grow: 1;
    border-bottom: 1px dotted rgba(212, 175, 55, 0.2);
    height: 1px;
}

.min-item-price {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.min-item-desc {
    font-size: 0.95rem;
    color: #a0a0a0;
    font-style: italic;
    margin-top: 5px;
    max-width: 90%;
}
    background: linear-gradient(135deg, rgba(255, 195, 0, 0.1), rgba(255, 195, 0, 0.05));
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 195, 0, 0.2);
}

.points-balance {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-color);
    color: #000;
    padding: 10px 25px;
    border-radius: 40px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 195, 0, 0.3);
}

.points-number {
    font-size: 1.8rem;
    line-height: 1;
}

.points-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (min-width: 768px) {
    .rewards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reward-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.reward-card:hover:not(.locked) {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.reward-img-container {
    position: relative;
    height: 120px;
    background: #000;
    overflow: hidden;
}

.reward-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.reward-card:hover .reward-img {
    transform: scale(1.1);
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    backdrop-filter: blur(2px);
}

.lock-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.reward-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.reward-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: #fff;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reward-points-req {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.btn-redeem {
    padding: 8px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: bold;
    border: none;
    background: var(--primary-color);
    color: #000;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-redeem:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.btn-pending {
    background: #2980b9 !important;
    color: #fff !important;
}

.reward-card.locked {
    opacity: 0.8;
}

.reward-card.pending {
    border-color: #2980b9;
}