/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Guía Pilar Premium Microsites)
   ========================================================================== */

:root {
    --font-scale: 1.0;
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Theme: Light Mode (Default) - MercadoLibre / Páginas Amarillas style */
    --bg-base: 220 20% 97%;       /* Gris claro base */
    --bg-surface: 0 0% 100%;      /* Blanco puro */
    --bg-card: 0 0% 100%;
    
    --border-color: 220 15% 88%;
    --border-glow: 38 100% 45%;   /* Dorado para destacados */
    
    --text-primary: 220 25% 15%;  /* Negro/Gris oscuro carbón */
    --text-secondary: 220 15% 38%; /* Gris medio */
    --text-muted: 220 12% 48%;     /* Gris atenuado legible */
    
    --primary: 38 100% 48%;       /* Rich Gold / Amber Orange-Yellow */
    --primary-hover: 38 100% 38%;
    --primary-rgb: 245, 140, 0;
    
    --whatsapp-color: 142 70% 45%;
    --instagram-color: 326 75% 50%;
    
    --transition-speed: 0.3s;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.12);

    /* Spacing Scale - Premium layout rhythm */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
}

/* Dark Theme overrides when toggled */
.dark-theme {
    --bg-base: 224 25% 12%;       /* #171d28 */
    --bg-surface: 224 25% 16%;    /* #202737 */
    --bg-card: 224 25% 18%;       /* #242c3d */
    
    --border-color: 224 20% 24%;
    --border-glow: 38 100% 60%;
    
    --text-primary: 220 20% 95%;
    --text-secondary: 220 15% 75%;
    --text-muted: 220 10% 55%;
    
    --primary: 38 100% 53%;
    --primary-hover: 38 100% 43%;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.4);
}

html {
    font-size: calc(16px * var(--font-scale, 1.0));
    scroll-behavior: smooth;
}
html.font-scale-md {
    --font-scale: 1.15;
}
html.font-scale-lg {
    --font-scale: 1.30;
}

/* ==========================================================================
   RESET & GLOBAL ESTILOS
   ========================================================================== */

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

*:focus-visible {
    outline: 2.5px solid hsl(var(--primary));
    outline-offset: 3px;
}

body {
    background-color: hsl(var(--bg-base));
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 3rem;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

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

/* ==========================================================================
   HEADER & PORTADA COMERCIAL
   ========================================================================== */

.header-container {
    position: relative;
    width: 100%;
}

.shop-banner {
    width: 100%;
    min-height: 240px;
    height: auto;
    background: linear-gradient(135deg, #171d28 0%, #202c3f 50%, #f5ab00 100%);
    position: relative;
    border-bottom: 1px solid hsl(var(--border-color) / 0.5);
    display: flex;
    align-items: flex-end;
    padding: 5rem 1.5rem 2.5rem 1.5rem;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
}

.banner-title-card {
    position: relative;
    z-index: 5;
    max-width: 850px;
    margin: 0 auto;
    width: 100%;
    text-align: left;
    padding-left: 1rem;
}

.banner-shop-name {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    margin: 0;
    line-height: 1.2;
}

@media(min-width: 600px) {
    .banner-title-card {
        padding-left: 170px; /* Aligns with text below after logo container shift */
    }
    .banner-shop-name {
        font-size: 2.85rem;
    }
}

.shop-profile-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
    gap: 1.5rem;
}

@media(min-width: 600px) {
    .shop-profile-card {
        flex-direction: row;
        align-items: flex-start; /* Aligns text area below banner and logo overlapping it */
        text-align: left;
        margin-top: 0;
        gap: 2rem;
    }
}

.shop-logo-container {
    width: 130px;
    height: 130px;
    border-radius: 24px;
    background-color: hsl(var(--bg-card));
    border: 4px solid hsl(var(--bg-base));
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -65px; /* ONLY the logo container is shifted up to overlap the banner */
    margin-bottom: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.shop-logo-container:hover {
    transform: scale(1.04);
}

.shop-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-text-info {
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

@media(min-width: 600px) {
    .shop-text-info {
        margin-left: 0.5rem;
    }
}

.shop-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

@media(min-width: 600px) {
    .shop-badge-row {
        justify-content: flex-start;
    }
}

.badge-category {
    background-color: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    letter-spacing: 0.05em;
    border: 1px solid hsl(var(--primary) / 0.2);
}

.badge-barrio {
    background-color: hsl(var(--text-muted) / 0.1);
    color: hsl(var(--text-secondary));
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 30px;
    border: 1px solid hsl(var(--border-color));
}

.shop-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

@media(min-width: 600px) {
    .shop-name {
        font-size: 2.75rem;
    }
}

.shop-desc {
    color: hsl(var(--text-secondary));
    font-size: 1rem;
    line-height: 1.65;
    max-width: 650px;
    margin: 0 auto 1.25rem auto;
    font-weight: 400;
}

@media(min-width: 600px) {
    .shop-desc {
        margin: 0 0 1.25rem 0;
    }
}

.shop-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-top: 0.5rem;
}

@media(min-width: 600px) {
    .shop-meta-info {
        justify-content: flex-start;
    }
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.meta-item i {
    width: 15px;
    height: 15px;
    color: hsl(var(--primary));
}

/* ==========================================================================
   ACTIONS BAR (Botones de contacto)
   ========================================================================== */

.actions-bar-container {
    width: 100%;
    border-bottom: 1px solid hsl(var(--border-color) / 0.6);
    background-color: hsl(var(--bg-surface));
    margin-top: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.actions-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.actions-bar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-secondary));
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-sm);
}

.action-btn i {
    width: 18px;
    height: 18px;
}

.action-btn:hover {
    background-color: hsl(var(--border-color) / 0.5);
    color: hsl(var(--text-primary));
    transform: translateY(-1px);
}

.action-btn.wa-primary {
    background-color: hsl(var(--whatsapp-color));
    border-color: hsl(var(--whatsapp-color));
    color: white;
}

.action-btn.wa-primary:hover {
    background-color: hsl(var(--whatsapp-color) / 0.85);
    box-shadow: 0 0 12px hsl(var(--whatsapp-color) / 0.4);
}

.action-btn.instagram {
    color: white;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%);
    border: none;
}

.action-btn.instagram:hover {
    filter: brightness(1.1);
}

.action-btn.facebook {
    color: white;
    background-color: #1877F2;
    border-color: #1877F2;
}

.action-btn.facebook:hover {
    background-color: #166FE5;
    box-shadow: 0 0 12px rgba(24, 119, 242, 0.4);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.main-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    position: relative;
}

.section-container {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px solid hsl(var(--border-color) / 0.5);
    padding-bottom: 0.5rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title i {
    width: 24px;
    height: 24px;
    color: hsl(var(--primary));
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.icon-sparkles {
    color: hsl(var(--primary)) !important;
    animation: pulseGlow 2s infinite alternate;
}

.badge-discount {
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    animation: bounceSlow 2s infinite;
}

/* SEARCH BOX */
.search-box-container {
    margin-bottom: 1.5rem;
}

.search-box {
    width: 100%;
    display: flex;
    align-items: center;
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 0 1rem;
    height: 48px;
    transition: border-color var(--transition-speed);
}

.search-box:focus-within {
    border-color: hsl(var(--primary));
}

.search-icon {
    width: 18px;
    height: 18px;
    color: hsl(var(--text-muted));
    margin-right: 0.75rem;
}

.search-box input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: hsl(var(--text-primary));
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-box input::placeholder {
    color: hsl(var(--text-muted));
}

/* ==========================================================================
   PRODUCTS GRID & CARDS
   ========================================================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

@media(min-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

.product-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-speed);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--border-color) * 1.5);
    box-shadow: var(--shadow-md);
}

/* Glow Effect for Offers */
.product-card.featured-offer {
    border-color: hsl(var(--border-glow) / 0.5);
    box-shadow: 0 4px 15px hsl(var(--border-glow) / 0.1);
}

.product-card.featured-offer:hover {
    border-color: hsl(var(--border-glow));
    box-shadow: 0 6px 20px hsl(var(--border-glow) / 0.18);
}

.product-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: hsl(var(--bg-surface));
    position: relative;
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

/* Badges over product images */
.badge-offer-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.product-details {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(var(--text-primary));
    line-height: 1.3;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem; /* Fits exactly two lines */
}

@media(min-width: 600px) {
    .product-title {
        font-size: 1.05rem;
    }
}

.product-desc {
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2rem;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--secondary));
}

@media(min-width: 600px) {
    .product-price {
        font-size: 1.35rem;
    }
}

.btn-buy-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: hsl(var(--whatsapp-color));
    color: white;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-buy-wa:hover {
    background-color: hsl(var(--whatsapp-color) / 0.85);
    transform: scale(1.1);
    box-shadow: 0 0 10px hsl(var(--whatsapp-color) / 0.3);
}

.btn-buy-wa i {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   EMPTY & FOOTER STYLES
   ========================================================================== */

.empty-products {
    text-align: center;
    padding: 3rem 1.5rem;
    background-color: hsl(var(--bg-surface));
    border-radius: 16px;
    border: 1px dashed hsl(var(--border-color));
    max-width: 500px;
    margin: 2rem auto;
}

.empty-icon {
    width: 48px;
    height: 48px;
    color: hsl(var(--text-muted));
    margin-bottom: 1rem;
}

.empty-products h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-products p {
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background-color: hsl(var(--whatsapp-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: hsl(var(--whatsapp-color) / 0.85);
}

.theme-toggle-floating {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-primary));
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all var(--transition-speed);
}

.theme-toggle-floating:hover {
    transform: scale(1.05);
}

.theme-toggle-floating i {
    width: 20px;
    height: 20px;
}

.footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--border-color) / 0.5);
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: hsl(var(--primary));
    font-weight: 500;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes pulseGlow {
    from {
        opacity: 0.8;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

@keyframes bounceSlow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* ==========================================================================
   CUIT, ANTIGÜEDAD, ESPECIALIDAD & REVIEWS STYLES
   ========================================================================== */

.badge-cuit, .badge-antiguedad {
    background-color: hsl(var(--bg-card));
    color: hsl(var(--text-secondary));
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid hsl(var(--border-color) / 0.8);
}

.shop-specialty {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-top: 0.4rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#meta-payments-container {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* REVIEWS & RATINGS SYSTEM */
.rating-summary-card {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

@media(min-width: 600px) {
    .rating-summary-card {
        flex-direction: row;
        text-align: left;
        gap: 2rem;
    }
}

.rating-avg-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid hsl(var(--border-color) / 0.5);
    padding-bottom: 1rem;
    width: 100%;
    flex-shrink: 0;
}

@media(min-width: 600px) {
    .rating-avg-box {
        width: auto;
        border-bottom: none;
        border-right: 1px solid hsl(var(--border-color) / 0.5);
        padding-bottom: 0;
        padding-right: 2rem;
    }
}

#avg-rating-value {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: hsl(var(--text-primary));
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
}

#total-reviews-count {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    font-weight: 600;
}

.rating-progress-bars {
    flex-grow: 1;
}

.rating-tip {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    line-height: 1.5;
}

/* REVIEWS LIST */
.reviews-list {
    margin-top: 1.5rem;
}

.public-review-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-speed);
}

.public-review-card:hover {
    border-color: hsl(var(--border-color) * 1.4);
}

/* MODAL STYLES */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.modal-content {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color) / 0.5);
    padding-bottom: 0.75rem;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-close-icon {
    background: none;
    border: none;
    color: hsl(var(--text-muted));
    cursor: pointer;
}

.btn-close-icon:hover {
    color: hsl(var(--text-primary));
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-secondary));
}

.form-group input, .form-group textarea {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-primary));
    padding: 0.65rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border-radius: 10px;
    outline: none;
    transition: all var(--transition-speed);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: hsl(var(--primary));
}

.star-rating-input {
    display: flex;
    gap: 0.4rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--text-muted));
    padding: 0.25rem;
    transition: transform 0.1s;
}

.star-btn:hover {
    transform: scale(1.15);
}

.star-btn.active i {
    fill: hsl(var(--primary));
    color: hsl(var(--primary));
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    border-top: 1px solid hsl(var(--border-color) / 0.5);
    padding-top: 1rem;
}

.btn-outline {
    background: none;
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-secondary));
}

.btn-outline:hover {
    background-color: hsl(var(--border-color) / 0.4);
    color: hsl(var(--text-primary));
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ==========================================================================
   CATALOG FILTER TABS
   ========================================================================== */
.catalog-tabs-container {
    display: inline-flex;
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    padding: 6px;
    border-radius: 50px;
    gap: 6px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.catalog-tab-btn {
    white-space: nowrap;
    background: none;
    border: none;
    outline: none;
    color: hsl(var(--text-muted));
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-tab-btn i {
    width: 16px;
    height: 16px;
}

.catalog-tab-btn:hover {
    color: hsl(var(--text-primary));
}

.catalog-tab-btn.active {
    background-color: hsl(var(--primary));
    color: #121824;
    box-shadow: 0 4px 12px hsl(var(--primary) / 0.25);
}

/* Back navigation button */
.back-navigation-btn {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(8, 8, 12, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1);
}

.back-navigation-btn i {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.back-navigation-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #121824;
    transform: translateX(-4px);
    border-color: transparent;
}

/* ==========================================================================
   GLOBAL HEADER NAVBAR
   ========================================================================== */
.global-portal-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 70px;
    background: linear-gradient(135deg, #ffeb82 0%, #ffa000 100%);
    border-bottom: 1px solid #ffb300;
    box-shadow: 0 4px 20px rgba(255, 160, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    transition: background var(--transition-speed, 0.3s), border-bottom var(--transition-speed, 0.3s), box-shadow var(--transition-speed, 0.3s);
}

.dark-theme .global-portal-header {
    background: rgba(30, 30, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.global-header-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.global-logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.global-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.global-logo-img:hover {
    transform: scale(1.05);
}

/* Global Search Wrapper */
.global-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 0.4rem 1rem 0.4rem 1.25rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.global-search-wrapper:focus-within {
    border-color: #ffa000;
    box-shadow: 0 0 0 3px rgba(255, 160, 0, 0.25);
}

.dark-theme .global-search-wrapper {
    background: rgba(20, 20, 28, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
}

.dark-theme .global-search-wrapper:focus-within {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px rgba(120, 50, 250, 0.25);
}

.global-search-icon {
    color: #888896;
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#global-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #1e1e24;
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.dark-theme #global-search-input {
    color: #ffffff;
}

#global-search-input::placeholder {
    color: #888896;
    opacity: 0.8;
}

.global-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.global-home-btn, .global-theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1c1c24;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dark-theme .global-home-btn, .dark-theme .global-theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.global-home-btn:hover, .global-theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000;
    transform: scale(1.08);
}

.dark-theme .global-home-btn:hover, .dark-theme .global-theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

@media (max-width: 600px) {
    .global-portal-header {
        height: auto;
        padding: 0.75rem 1rem;
    }
    .global-header-content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    .global-search-wrapper {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
}

/* ==========================================================================
   PRICING COMPARISON STYLE FOR UNCLAIMED PROFILES
   ========================================================================== */
.pricing-comparison-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto;
    text-align: left;
}

@media (min-width: 768px) {
    .pricing-comparison-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.pricing-card {
    background-color: hsl(var(--bg-card));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.pricing-card:hover {
    transform: translateY(-2px);
}

.pricing-card.premium {
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 20px hsl(var(--primary) / 0.1);
    position: relative;
    overflow: hidden;
}

.dark-theme .pricing-card.premium {
    box-shadow: 0 4px 25px rgba(255, 193, 7, 0.15);
}

.pricing-card.premium::before {
    content: "RECOMENDADO";
    position: absolute;
    top: 22px;
    right: -35px;
    background-color: hsl(var(--primary));
    color: #1c1c24;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: hsl(var(--primary));
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

.pricing-card .price span {
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.pricing-features li i {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.pricing-features li.check i {
    color: #10b981;
}

.pricing-features li.cross i {
    color: #ef4444;
}

/* ==========================================================================
   INTERACTIVE TRANSACTIONAL STYLES (Pedidos & Turnos)
   ========================================================================== */

/* Floating Cart Widget */
.floating-cart {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: hsl(var(--primary));
    color: #121824;
    border: none;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s, background-color 0.2s;
}

.floating-cart:hover {
    background-color: #e08e00;
    transform: scale(1.05);
}

.floating-cart-badge {
    background-color: #121824;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Card Cart Action Button */
.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary));
    border-radius: 30px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-top: 0.75rem;
}

.btn-add-to-cart:hover {
    background-color: hsl(var(--primary));
    color: #121824;
}

/* Calendar Widgets (Turnos) */
.booking-calendar {
    background-color: hsl(var(--bg-surface));
    border: 1px solid hsl(var(--border-color));
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-top: 1rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    background: none;
    border: 1px solid transparent;
    color: hsl(var(--text-primary));
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-day:hover:not(:disabled) {
    background-color: hsl(var(--primary) / 0.15);
    color: hsl(var(--primary));
}

.calendar-day.selected {
    background-color: hsl(var(--primary));
    color: #121824 !important;
    font-weight: 700;
}

.calendar-day:disabled {
    color: hsl(var(--text-muted) / 0.3);
    cursor: not-allowed;
}

.time-slots-container {
    margin-top: 1.5rem;
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 1.5rem;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.time-slot {
    background-color: hsl(var(--bg-base));
    border: 1px solid hsl(var(--border-color));
    color: hsl(var(--text-primary));
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot.available:hover {
    background-color: hsl(var(--primary) / 0.15);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.time-slot.selected {
    background-color: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: #121824;
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.checkout-summary-list {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
    padding-bottom: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: hsl(var(--text-primary));
}

/* ==========================================================================
   Club Pilar & QR Flyer Modal (Inspiración Pedidos al Toque & Tienda de Puntos)
   ========================================================================== */
.club-card-container {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, hsl(var(--bg-surface)) 0%, hsl(var(--primary) / 0.08) 100%);
    border: 1px solid hsl(var(--primary) / 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 16px -4px hsl(var(--primary) / 0.15);
    margin-top: 1rem;
    flex-wrap: wrap;
}

.club-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: hsl(var(--primary) / 0.15);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.club-card-icon i, .club-card-icon svg {
    width: 28px;
    height: 28px;
}

.club-card-content {
    flex: 1;
    min-width: 240px;
}

.club-card-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.35rem;
}

.club-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
    margin-bottom: 0.25rem;
}

.club-card-desc {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
    margin: 0;
    line-height: 1.4;
}

/* Printable QR Flyer Modal */
.qr-flyer-printable {
    background: #ffffff;
    color: #1a1a1a;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 420px;
    margin: 0 auto;
    border: 2px dashed #0088cc;
}

.qr-flyer-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.qr-flyer-header img {
    height: 38px;
}

.qr-flyer-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.qr-flyer-subtitle {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.25rem;
}

.qr-flyer-img-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.qr-flyer-img-box img {
    width: 200px;
    height: 200px;
    display: block;
}

.qr-flyer-steps {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.qr-flyer-footer {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media print {
    body * {
        visibility: hidden !important;
    }
    #qr-flyer-modal, #qr-flyer-modal * {
        visibility: visible !important;
    }
    #qr-flyer-modal {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
    }
    .modal-content {
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    .no-print {
        display: none !important;
    }
    .qr-flyer-printable {
        border: 2px solid #0088cc !important;
        max-width: 500px !important;
        margin: 2cm auto !important;
    }
}

