/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
}

.splash-screen.hidden {
    display: none;
}

.splash-logo {
    width: 180px;
    height: auto;
    margin-bottom: 2rem;
    animation: splashPulse 2s ease-in-out infinite;
}

.splash-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-heading, #000620);
    margin-bottom: 0.5rem;
    text-align: center;
}

.splash-subtitle {
    font-size: 1rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 2rem;
    text-align: center;
}

.splash-loader {
    position: relative;
    width: 50px;
    height: 50px;
}

.splash-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-control, #e2e8f0);
    border-top: 3px solid var(--brand-primary, #000620);
    border-radius: 50%;
    animation: splashSpin 1s linear infinite;
}

.splash-progress {
    margin-top: 1rem;
    text-align: center;
}

.splash-progress-text {
    font-size: 0.875rem;
    color: var(--text-tertiary, #94a3b8);
    margin-bottom: 0.5rem;
}

.splash-progress-bar {
    width: 200px;
    height: 4px;
    background: var(--surface-control, #e2e8f0);
    border-radius: 2px;
    overflow: hidden;
}

.splash-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary, #2563eb), var(--success-primary, #10b981));
    border-radius: 2px;
    width: 0%;
    animation: splashProgress 2.5s ease-out forwards;
}

/* Splash Screen Animations */
@keyframes splashPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes splashSpin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}

@keyframes splashProgress {
    0% {
        width: 0%;
    }
    25% {
        width: 25%;
    }
    50% {
        width: 50%;
    }
    75% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

/* Hide main content during splash */
body.splash-loading .container,
body.splash-loading .particles {
    opacity: 0;
}

/* Android Splash Screen Support */
@media screen and (display-mode: standalone) {
    .splash-screen {
        background: #ffffff;
    }
}

/* PWA Display Mode Styles */
@media (display-mode: standalone) {
    body {
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Hide address bar space */
    .container {
        padding-top: env(safe-area-inset-top);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface-app);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Floating Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: var(--surface-popover-soft);
    border-radius: 50%;
    animation: float 20s infinite linear;
    box-shadow: 0 0 6px var(--brand-glow-medium);
}

.particle:nth-child(1) {
    width: 4px;
    height: 4px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 30s;
    background: var(--success-glow-strong);
    box-shadow: 0 0 8px var(--success-glow-medium);
}

.particle:nth-child(3) {
    width: 3px;
    height: 3px;
    left: 30%;
    animation-delay: 0s;
    animation-duration: 22s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    left: 40%;
    animation-delay: 0s;
    animation-duration: 28s;
    background: var(--brand-glow-strong);
    box-shadow: 0 0 7px var(--brand-shadow);
}

.particle:nth-child(5) {
    width: 4px;
    height: 4px;
    left: 50%;
    animation-delay: 0s;
    animation-duration: 26s;
}

.particle:nth-child(6) {
    width: 7px;
    height: 7px;
    left: 60%;
    animation-delay: 0s;
    animation-duration: 24s;
    background: var(--success-glow-strong);
    box-shadow: 0 0 10px var(--success-overlay-soft);
}

.particle:nth-child(7) {
    width: 3px;
    height: 3px;
    left: 70%;
    animation-delay: 0s;
    animation-duration: 32s;
}

.particle:nth-child(8) {
    width: 5px;
    height: 5px;
    left: 80%;
    animation-delay: 0s;
    animation-duration: 27s;
    background: var(--brand-overlay-medium);
    box-shadow: 0 0 8px var(--brand-shadow);
}

.particle:nth-child(9) {
    width: 4px;
    height: 4px;
    left: 90%;
    animation-delay: 0s;
    animation-duration: 29s;
}

.particle:nth-child(10) {
    width: 6px;
    height: 6px;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 23s;
    background: var(--success-overlay-faint);
    box-shadow: 0 0 9px var(--success-overlay);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 2.5rem;
    position: relative;
    z-index: 10; /* Above particles */
    width: 100%;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: transparent;
    border-bottom: none;
    padding: 2rem 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

.filters-container {
    position: relative;
}

.filters-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 0px solid var(--surface-control);
    background: var(--surface-control);
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 14px var(--shadow-soft);
}

.filters-button:hover,
.filters-button:focus {
    background: var(--surface-card-hover, rgba(255, 255, 255, 0.6));
    border-color: var(--border-strong);
    box-shadow: 0 6px 18px var(--shadow-medium);
}

.filters-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--brand-primary-light, rgba(37, 99, 235, 0.25));
}

.filters-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    background: var(--text-subtle, rgba(37, 99, 235, 0.12));
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.60rem;
}

.filters-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    max-width: 150px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 18px 36px var(--shadow-strong);
    padding: 1rem;
    display: none;
    z-index: 1000;
}

.filters-dropdown.open {
    display: block;
}

.filters-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.filters-dropdown-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.filters-select-all {
    border: none;
    background: none;
    color: var(--brand-primary);
    font-weight: 600;
    font-size: 0.775rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.filters-select-all:hover {
    background: var(--brand-primary-ghost, rgba(37, 99, 235, 0.12));
}

.filters-list {
    max-height: 280px;
    max-width: 120px;
    margin-left: auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    
    /* Ocultar scroll pero mantener desplazamiento */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE y Edge antiguos */
}

.filters-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Edge */
}

.filters-option {
    display: grid;
    grid-template-columns: auto 32px 1fr;
    max-width: 100px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.1rem 0.75rem;
    border-radius: 20px;
    background: rgba(161, 161, 161, 0.432);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.filters-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.filters-option:hover {
    border-color: var(--brand-primary);
    background: var(--surface-card-inverse);
}

.filters-option-logo {
    width: 45px;
    height: 30px;
    object-fit: contain;
}

.filters-option-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filters-option-error {
    animation: filtersShake 0.3s ease;
}

@keyframes filtersShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

.filters-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.filters-close {
    border: none;
    background: var(--brand-primary);
    color: var(--text-on-inverse);
    font-weight: 600;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.filters-close:hover {
    background: var(--brand-primary-hover, #1d4ed8);
}

.filters-empty {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem 0;
}
.filters-notice {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: var(--surface-card-inverse-soft);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.empty-comparison {
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--surface-card);
    border: 1px dashed var(--border-subtle);
    color: var(--text-secondary);
    text-align: center;
    max-width: 520px;
    font-size: 0.9rem;
}.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-align: center;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Main Content */
.main-content {
    padding: 1rem 0 2rem;
}

@supports (height: 100dvh) {
    body {
        min-height: 100dvh;
    }
}

@supports (-webkit-touch-callout: none) {
    html, body {
        height: -webkit-fill-available;
    }
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 0.5rem;
    padding: 0.25rem 0;
}

.hero-logo {
    width: min(220px, 60vw); /* Keep logo proportionate on small screens */
    height: auto;
    margin-bottom: 0.25rem;
    filter: brightness(1.1);
}

.hero-title {
    font-size: 2.2rem; /* Slightly smaller */
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem; /* Slightly smaller */
    color: var(--text-secondary);
    margin-bottom: 1.5rem; /* Reduced margin */
    font-weight: 400;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--surface-control);
    color: var(--text-heading);
    transition: all 0.2s ease;
    outline: none;
}

.search-box input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-overlay-light);
    background: var(--surface-panel-muted);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

/* Search Results */
.search-results {
    background: var(--surface-panel);
    border: 0px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 10px 25px var(--shadow-subtle);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 1rem;
    width: 120%;
    margin-left: -10%;
    padding-right: 8px; /* Space for custom scrollbar */
}

/* Custom Scrollbar for Search Results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: var(--surface-panel); /* Same as main background */
    border-radius: 4px;
    margin: 8px 0; /* Space from top and bottom */
}

.search-results::-webkit-scrollbar-thumb {
    background: var(--surface-control-muted); /* Subtle gray */
    border-radius: 4px;
    border: 1px solid var(--surface-panel); /* Border to separate from content */
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: var(--surface-control-hover); /* Slightly lighter on hover */
}

/* Firefox scrollbar */
.search-results {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) var(--surface-panel);
}

.search-results.show {
    display: block;
}

.search-result-item, .result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--divider-contrast);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.search-result-item:hover, .result-item:hover {
    background-color: var(--surface-card-muted);
}

.search-result-item:last-child, .result-item:last-child {
    border-bottom: none;
}

.no-results {
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--text-tertiary);
    cursor: default;
}

.no-results:hover {
    background-color: transparent !important;
}

.product-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 0.25rem;
    text-align: left;
}

.product-price {
    font-size: 0.875rem;
    color: var(--success-accent);
    font-weight: bold;
}

.add-button, .add-btn {
    background: var(--brand-primary);
    color: var(--text-on-inverse);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-button:hover, .add-btn:hover {
    background: var(--brand-primary-hover);
    transform: scale(1.1);
}

/* CTA Button */
.cta-button {
    width: 100%;
    padding: 1.25rem 2rem;
    background: var(--brand-primary);
    color: var(--text-on-inverse);
    border: none;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Product List Section */
.product-list-section {
    margin-top: 2rem;
}

.search-and-list {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.search-area {
    flex: 1;
    max-width: 600px;
}

.search-box-small {
    position: relative;
}

.search-box-small input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--surface-card-inverse);
    transition: all 0.2s ease;
    outline: none;
}

.search-box-small input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-overlay-faint);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--surface-card-inverse);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -5px 0 15px var(--shadow-subtle);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

/* Desktop: Adjust main content when cart is open */
@media (min-width: 769px) {
    body.cart-open .container {
        margin-right: 400px;
        transition: margin-right 0.3s ease;
    }
    
    body.cart-open .cart-sidebar {
        box-shadow: -2px 0 8px var(--shadow-subtle);
    }
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-strong);
    margin: 0;
    flex: 1;
}

.cart-header .list-actions {
    width: 100%;
}

.cart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.cart-close:hover {
    background: var(--surface-card-inverse-soft);
    color: var(--text-strong);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    background: var(--surface-card-inverse);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: var(--text-strong);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.cart-item-price {
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.cart-item-unavailable .cart-item-price {
    color: var(--warning-strong);
}

.cart-item-warning-text {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--warning-strong);
}

.cart-item-unavailable .quantity-controls {
    opacity: 0.85;
}


.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    background: var(--surface-card-inverse-soft);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    background: var(--surface-neutral);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 0.875rem;
}

.remove-btn {
    background: var(--danger-surface-soft);
    color: var(--danger-primary);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: var(--danger-surface);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    background: var(--surface-card-muted);
}

.cart-warning {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--warning-surface);
    border: 1px solid var(--warning-primary);
    color: var(--warning-strong);
    font-size: 0.85rem;
    line-height: 1.4;
}

.cart-warning[hidden] {
    display: none;
}

.cart-summary {
    margin-bottom: 1rem;
}

.item-count {
    font-weight: 500;
    color: var(--text-tertiary);
}

.compare-button {
    width: 100%;
    padding: 1rem;
    background: var(--success-primary);
    color: var(--text-on-inverse);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-button:hover:not(:disabled) {
    background: var(--success-primary-hover);
}

.compare-button:disabled {
    background: var(--state-disabled-bg);
    cursor: not-allowed;
}

/* Mobile Cart Toggle */
.mobile-cart-toggle {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--surface-floating);
    color: var(--text-on-inverse);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px var(--brand-shadow);
    cursor: pointer;
    z-index: 1001; /* Higher z-index to stay above footer */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-cart-toggle:hover {
    transform: scale(1.1);
}

.cart-icon {
    font-size: 1.5rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-primary);
    color: var(--text-on-inverse);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%; /* Estaba en 100% Modificado por jg  */
    height: 0%; /* Estaba en 100% Modificado por jg  */
    background: var(--overlay-dim);
    z-index: 999;
    display: none;
} 

.overlay.show {
    display: block;
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--text-tertiary);
}

.empty-cart-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-cart-text {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.empty-cart-subtext {
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--surface-app-alt);
    border-top: 1px solid var(--border-contrast);
    padding: 0.5rem 0;
    margin-top: 0;
    color: var(--text-secondary);
    z-index: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-social {
    display: flex;
    flex-direction: column;
    margin-top: 0.15rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-glass-soft);
    border: 1px solid var(--overlay-slate-soft);
    color: var(--text-secondary);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-link svg {
    color: inherit;
    width: 20px;
    height: 20px;
    display: block;
}

.social-link:hover {
    transform: translateY(-2px);
    background: var(--brand-glow-soft);
    border-color: var(--brand-glow-soft-strong);
    color: var(--text-primary);
}

.social-link:visited svg {
    color: inherit;
}

.social-link:active svg,
.social-link:focus svg {
    color: inherit;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-separator {
    color: var(--text-tertiary);
    margin: 0 0.25rem;
}

.footer-link {
    color: var(--text-link);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-link-hover);
    text-decoration: underline;
}

.developer-link {
    font-weight: 500;
}

.email-link {
    font-weight: 500;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-scrim);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--text-strong);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px var(--shadow-strong);
}

.modal-header {
    background: var(--surface-app-alt);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-contrast);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-heading);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
    color: var(--text-primary);
    line-height: 1.6;
}

.modal-body h3 {
    color: var(--text-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-subtle);
}

/* Mobile Footer Adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0 1.25rem;
        margin-top: 0;
    }
    
    .footer-content {
        padding: 0 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }
    
    .footer-text, .footer-link {
        font-size: 0.8rem;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

/* 3x2 Promotional Ribbon */
.price-item-with-ribbon {
    position: relative;
    overflow: visible;
}

.promotional-ribbon {
    position: absolute;
    top: -8px;
    left: -4px; /* Cambiado de right a left */
    width: 40px;
    height: 14px;
    background: rgba(0, 0, 0, 0.411); /*linear-gradient(135deg, #ff6b35, #ff4444);*/
    color: white;
    font-size: 0.5rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 10;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
    transform: rotate(0deg); /* Ajustado para que gire hacia el otro lado */
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.promotional-ribbon::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 1px; /* Cambiado de right a left */
    width: 0;
    height: 0;
    border-right: rgba(0, 0, 0, 0.411); /* Invertido */
    border-left: 2px solid transparent; 
    border-bottom: 3px solid transparent;
    transform: rotate(10deg); /* Ajustado para la nueva orientación */
}

/* Mobile adjustments for ribbon */
@media (max-width: 768px) {
    .promotional-ribbon {
        width: 36px;
        height: 13px;
        font-size: 0.45rem;
        top: -8px;
        right: -1px;
    }
    
    .promotional-ribbon::before {
        border-left: 2px solid rgba(0, 0, 0, 0.411);
        border-right: 2px solid transparent;
        border-bottom: 2px solid transparent;
    }
}

/* Christmas Basket Button */
.christmas-basket-section {
    margin: 3rem auto 2rem;
    text-align: center;
    max-width: 600px;
    z-index: 5; /* Lower than search results */
}

.christmas-basket-btn {
    background: linear-gradient(135deg, #FF6B6B, #FF5252);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.christmas-basket-btn:hover {
    background: linear-gradient(135deg, #FF5252, #E53935);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

.christmas-basket-btn:active {
    transform: translateY(0);
}

.christmas-basket-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Christmas sparkle animation */
.christmas-basket-btn::before {
    content: '✨';
    position: absolute;
    right: 1rem;
    opacity: 0;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        opacity: 1; 
        transform: translateY(-2px) rotate(180deg); 
    }
}

/* Mobile styles for Christmas basket button */
@media (max-width: 768px) {
    .christmas-basket-section {
        margin: 2rem auto 1.5rem;
        padding: 0 1rem;
    }
    
    .christmas-basket-btn {
        padding: 0.875rem 3rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        align-items: center;
    }
    
    .christmas-basket-btn::before {
        right: 0.75rem;
    }
}

/* Ensure search results have higher z-index to cover the button */
.search-results {
    z-index: 1000; /* Higher than christmas button */
}
