/**
 * RICO Y FIT - Estilos Principales
 * Colores: #b2f900 (verde lima), blanco, tonos oscuros
 * Versión: 1.0.0
 */

/* ===== VARIABLES ===== */
:root {
    --rf-primary: #b2f900;
    --rf-primary-dark: #8fca00;
    --rf-primary-light: #c8ff3d;
    --rf-dark: #1a1a1a;
    --rf-dark-light: #2d2d2d;
    --rf-text: #ffffff;
    --rf-text-dark: #333333;
    --rf-border: #444444;
    --rf-bg-light: #f5f5f5;
    --rf-bg-dark: #0d0d0d;
    --rf-shadow: 0 4px 15px rgba(178, 249, 0, 0.15);
    --rf-shadow-hover: 0 8px 25px rgba(178, 249, 0, 0.25);
}

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

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== LAYOUT GENERAL ===== */
.ricofit-layout-with-sidebar {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.ricofit-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ricofit-main-content {
    min-width: 0;
}

/* ===== BREADCRUMB ===== */
.ricofit-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px 25px;
    background: var(--rf-dark);
    border-radius: 12px;
    box-shadow: var(--rf-shadow);
    animation: fadeIn 0.5s ease;
}

.ricofit-breadcrumb-link {
    color: var(--rf-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ricofit-breadcrumb-link:hover {
    color: var(--rf-primary-light);
    transform: translateX(-3px);
}

.ricofit-breadcrumb-separator {
    color: var(--rf-border);
    font-size: 14px;
}

.ricofit-breadcrumb-current {
    color: var(--rf-text);
    font-weight: 600;
    font-size: 16px;
}

/* ===== SIDEBAR CATEGORÍAS ===== */
.ricofit-sidebar-content {
    background: var(--rf-dark);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--rf-shadow);
    animation: slideInRight 0.6s ease;
}

.ricofit-sidebar-content h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: var(--rf-primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rf-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ricofit-categorias-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ricofit-categorias-menu li {
    margin: 0;
    padding: 0;
}

.categoria-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--rf-text);
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.categoria-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--rf-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.categoria-link:hover {
    background: var(--rf-dark-light);
    color: var(--rf-primary);
    transform: translateX(8px);
}

.categoria-link:hover::before {
    transform: scaleY(1);
}

.categoria-link.active {
    background: var(--rf-primary);
    color: var(--rf-dark);
    font-weight: 700;
    box-shadow: 0 0 20px rgba(178, 249, 0, 0.3);
}

.categoria-link.active::before {
    display: none;
}

.categoria-link .categoria-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.categoria-link .categoria-nombre {
    flex: 1;
    font-weight: 500;
}

.categoria-link .categoria-badge {
    background: var(--rf-border);
    color: var(--rf-text);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.categoria-link.active .categoria-badge {
    background: var(--rf-dark);
    color: var(--rf-primary);
}

/* ===== FILTROS ===== */
.ricofit-filtros {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.ricofit-search,
.ricofit-orden {
    padding: 14px 18px;
    border: 2px solid var(--rf-border);
    border-radius: 10px;
    font-size: 16px;
    background: var(--rf-dark);
    color: var(--rf-text);
    transition: all 0.3s ease;
}

.ricofit-search {
    flex: 1;
    min-width: 250px;
}

.ricofit-search:focus,
.ricofit-orden:focus {
    outline: none;
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(178, 249, 0, 0.1);
}

.ricofit-orden {
    min-width: 220px;
    cursor: pointer;
}

.ricofit-search::placeholder {
    color: #888;
}

/* ===== GRID DE PRODUCTOS ===== */
.ricofit-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.ricofit-producto-card {
    background: var(--rf-dark);
    border: 2px solid var(--rf-border);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.ricofit-producto-card:nth-child(1) { animation-delay: 0.1s; }
.ricofit-producto-card:nth-child(2) { animation-delay: 0.2s; }
.ricofit-producto-card:nth-child(3) { animation-delay: 0.3s; }
.ricofit-producto-card:nth-child(4) { animation-delay: 0.4s; }
.ricofit-producto-card:nth-child(5) { animation-delay: 0.5s; }
.ricofit-producto-card:nth-child(6) { animation-delay: 0.6s; }

.ricofit-producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rf-primary), var(--rf-primary-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ricofit-producto-card:hover {
    transform: translateY(-8px);
    border-color: var(--rf-primary);
    box-shadow: var(--rf-shadow-hover);
}

.ricofit-producto-card:hover::before {
    transform: scaleX(1);
}

.ricofit-producto-card h4 {
    font-size: 20px;
    margin: 0 0 12px 0;
    color: var(--rf-text);
    min-height: 50px;
    font-weight: 600;
}

.producto-descripcion {
    font-size: 14px;
    color: #ccc;
    margin: 12px 0;
    padding: 12px;
    background: var(--rf-dark-light);
    border-radius: 8px;
    line-height: 1.5;
    min-height: 65px;
}

.ricofit-producto-card .precio {
    font-size: 26px;
    font-weight: 700;
    color: var(--rf-primary);
    margin: 18px 0;
    text-shadow: 0 0 15px rgba(178, 249, 0, 0.3);
}

/* ===== CONTROLES DE CANTIDAD CON PRECIO ===== */
.producto-cantidad-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 18px 0 8px 0;
    background: var(--rf-dark-light);
    padding: 12px 15px;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-cantidad {
    background: var(--rf-primary);
    color: var(--rf-dark);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(178, 249, 0, 0.3);
    flex-shrink: 0;
}

.btn-cantidad:hover {
    background: var(--rf-primary-light);
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(178, 249, 0, 0.5);
}

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

.cantidad-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cantidad-display {
    font-size: 20px;
    font-weight: 700;
    color: var(--rf-text);
    line-height: 1;
}

.subtotal-display {
    font-size: 16px;
    font-weight: 600;
    color: var(--rf-primary);
    line-height: 1;
}

/* Estado cuando el producto está en el carrito */
.ricofit-producto-card.en-carrito {
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 2px rgba(178, 249, 0, 0.2);
}

.ricofit-producto-card.en-carrito .producto-cantidad-wrapper {
    background: var(--rf-primary);
}

.ricofit-producto-card.en-carrito .cantidad-display {
    color: var(--rf-dark);
}

.ricofit-producto-card.en-carrito .subtotal-display {
    color: var(--rf-dark);
    font-weight: 700;
}

.ricofit-producto-card.en-carrito .btn-cantidad {
    background: var(--rf-dark);
    color: var(--rf-primary);
}

.ricofit-producto-card.en-carrito .btn-cantidad:hover {
    background: var(--rf-dark-light);
}

/* ===== BOTONES ===== */
.ricofit-btn-primary {
    background: var(--rf-primary);
    color: var(--rf-dark);
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(178, 249, 0, 0.3);
}

.ricofit-btn-primary:hover {
    background: var(--rf-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 249, 0, 0.5);
}

.ricofit-btn-primary:active {
    transform: translateY(0);
}

.btn-agregar-carrito {
    margin-top: 12px;
}

/* ===== CARRITO FLOTANTE ===== */
.ricofit-carrito-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--rf-primary);
    color: var(--rf-dark);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 25px rgba(178, 249, 0, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 9998;
    animation: pulse 2s ease-in-out infinite;
}

.ricofit-carrito-flotante:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(178, 249, 0, 0.6);
    animation: none;
}

.ricofit-carrito-flotante .carrito-icon {
    font-size: 30px;
    line-height: 1;
}

.ricofit-carrito-flotante .carrito-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--rf-dark);
    color: var(--rf-primary);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 3px solid var(--rf-primary);
}

/* ===== PÁGINA DE CARRITO ===== */
.ricofit-carrito-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease;
}

.ricofit-carrito-title {
    font-size: 42px;
    color: var(--rf-text-dark);
    margin: 0 0 30px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 15px;
}

.ricofit-carrito-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--rf-primary);
}

.ricofit-items {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.ricofit-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.ricofit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.ricofit-item-preview {
    width: 150px;
    flex-shrink: 0;
}

.ricofit-item-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 0 0 15px;
}

.ricofit-item-details {
    padding: 20px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ricofit-item-details h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: var(--rf-text-dark);
    font-weight: 600;
}

.ricofit-item-details p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.ricofit-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
}

.ricofit-quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ricofit-btn-quantity {
    background: var(--rf-primary);
    color: var(--rf-dark);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ricofit-btn-quantity:hover {
    transform: scale(1.1);
    background: var(--rf-primary-light);
}

.ricofit-quantity-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--rf-text-dark);
    min-width: 80px;
    text-align: center;
}

.ricofit-btn-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ricofit-btn-remove:hover {
    background: #cc0000;
    transform: rotate(90deg) scale(1.1);
}

.ricofit-empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.ricofit-empty-cart p {
    font-size: 20px;
    color: #999;
    margin: 0 0 20px 0;
}

/* ===== FORMULARIO DE CONTACTO SIMPLIFICADO ===== */
.ricofit-form-contacto {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--rf-shadow);
    margin: 30px 0;
}

.ricofit-form-contacto h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--rf-text-dark);
    font-size: 22px;
}

.ricofit-form-contacto input,
.ricofit-form-contacto textarea {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.ricofit-form-contacto input:focus,
.ricofit-form-contacto textarea:focus {
    outline: none;
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(178, 249, 0, 0.1);
}

.ricofit-form-contacto textarea {
    min-height: 80px;
    resize: vertical;
}

.ricofit-carrito-total-simple {
    background: var(--rf-primary);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    margin: 20px 0;
}

.ricofit-carrito-total-simple h3 {
    margin: 0;
    font-size: 32px;
    color: var(--rf-dark);
    font-weight: 700;
}

/* ===== CUPÓN ===== */
.ricofit-coupon {
    background: white;
    border-radius: 15px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ricofit-coupon h3 {
    margin: 0;
    font-size: 18px;
    color: var(--rf-text-dark);
    font-weight: 600;
    min-width: 180px;
}

.ricofit-coupon input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
}

.ricofit-btn-secondary {
    background: var(--rf-dark);
    color: var(--rf-primary);
    border: 2px solid var(--rf-primary);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ricofit-btn-secondary:hover {
    background: var(--rf-primary);
    color: var(--rf-dark);
}

/* ===== RESUMEN ===== */
.ricofit-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin: 30px 0;
}

.ricofit-summary-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.ricofit-meta-data {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ricofit-sub-total,
.ricofit-taxes {
    font-size: 18px;
    color: var(--rf-text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ricofit-sub-total em,
.ricofit-taxes em {
    font-style: normal;
    font-weight: 500;
}

.ricofit-total {
    font-size: 32px;
    font-weight: 700;
    color: var(--rf-primary);
    text-align: center;
}

.ricofit-btn-summary {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.ricofit-btn-checkout {
    flex: 1;
    background: var(--rf-primary);
    color: var(--rf-dark);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ricofit-btn-checkout:hover {
    background: var(--rf-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 249, 0, 0.4);
}

.ricofit-btn-reverse {
    background: white;
    color: var(--rf-dark);
    border: 2px solid var(--rf-primary);
}

.ricofit-btn-reverse:hover {
    background: var(--rf-primary);
    color: var(--rf-dark);
}

/* ===== CONFIRMACIÓN ===== */
.ricofit-confirmacion {
    background: white;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeInUp 0.6s ease;
}

.confirmacion-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.ricofit-confirmacion h3 {
    font-size: 32px;
    color: var(--rf-primary);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.ricofit-confirmacion p {
    font-size: 18px;
    color: #666;
    margin: 0;
}

/* ===== CARRUSEL DE LOGOS (Unificado con gira.css) ===== */
.logo-wheel,
.ricofit-logo-wheel {
    position: fixed;
    top: 20px;
    left: 70px;
    width: 180px;
    height: 180px;
    z-index: 9999;
    pointer-events: none;
    overflow: visible;
    touch-action: none;
}

.logo-wheel .wheel,
.ricofit-logo-wheel .wheel {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transform-origin: 50% 50%;
    will-change: transform;
    user-select: none;
}

.logo-wheel .wheel-item,
.ricofit-logo-wheel .wheel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    transform-origin: 0 0;
    display: grid;
    place-items: center;
    pointer-events: auto;
}

.logo-wheel .upright,
.ricofit-logo-wheel .upright {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    transform-origin: 50% 50%;
}

.logo-wheel .wheel-item img,
.ricofit-logo-wheel .wheel-item img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.ricofit-brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--rf-primary);
    text-shadow: 0 0 10px rgba(178, 249, 0, 0.5);
}

.brand-text {
    line-height: 1;
}

.brand-ampersand {
    font-size: 8px;
    opacity: 0.8;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

.ricofit-center-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: var(--rf-primary);
    color: var(--rf-dark);
    padding: 12px;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    justify-content: center;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(178, 249, 0, 0.6);
}

.center-text {
    line-height: 1;
}

.center-ampersand {
    font-size: 9px;
    opacity: 0.9;
}

/* Focus para accesibilidad */
.logo-wheel .wheel-item:focus-within .upright,
.ricofit-logo-wheel .wheel-item:focus-within .upright {
    outline: 2px solid var(--rf-primary);
    outline-offset: 4px;
    border-radius: 10px;
}

/* Responsive - ocultar en móvil */
@media (max-width: 768px) {
    .logo-wheel,
    .ricofit-logo-wheel {
        display: none;
    }
}

/* ===== ESTADOS ===== */
.ricofit-loading,
.ricofit-error,
.ricofit-empty {
    text-align: center;
    padding: 50px;
    font-size: 20px;
    color: #999;
}

.ricofit-error {
    color: #ff4444;
}

/* ===== NOTIFICACIONES ===== */
.ricofit-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--rf-primary);
    color: var(--rf-dark);
    padding: 16px 28px;
    border-radius: 10px;
    box-shadow: 0 6px 25px rgba(178, 249, 0, 0.4);
    z-index: 9999;
    font-weight: 600;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s ease;
}

.ricofit-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .ricofit-layout-with-sidebar {
        grid-template-columns: 1fr;
    }

    .ricofit-sidebar {
        position: static;
    }

    .ricofit-delivery-payment {
        grid-template-columns: 1fr;
    }

    .ricofit-logo-wheel {
        width: 140px;
        height: 140px;
        left: 15px;
    }

    .ricofit-center-badge {
        width: 55px;
        height: 55px;
        font-size: 9px;
    }
}

@media (max-width: 768px) {
    .ricofit-productos-grid {
        grid-template-columns: 1fr;
    }

    .ricofit-filtros {
        flex-direction: column;
    }

    .ricofit-search,
    .ricofit-orden {
        width: 100%;
    }

    .ricofit-item {
        flex-direction: column;
    }

    .ricofit-item-preview {
        width: 100%;
        height: 200px;
    }

    .ricofit-item-preview img {
        border-radius: 15px 15px 0 0;
    }

    .ricofit-item-details,
    .ricofit-item-controls {
        padding: 15px 20px;
    }

    .ricofit-coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .ricofit-coupon h3 {
        min-width: auto;
    }

    .ricofit-summary-content {
        grid-template-columns: 1fr;
    }

    .ricofit-btn-summary {
        flex-direction: column;
    }

    .ricofit-carrito-flotante {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .ricofit-carrito-flotante .carrito-icon {
        font-size: 26px;
    }

    .ricofit-logo-wheel {
        display: none; /* Ocultar en móvil */
    }
}

@media (max-width: 480px) {
    .ricofit-carrito-title {
        font-size: 32px;
    }

    .ricofit-item-details h3 {
        font-size: 20px;
    }

    .ricofit-total {
        font-size: 26px;
    }
}

/* ===== MENÚ CATEGORÍAS (GRID) ===== */
.ricofit-menu-categorias {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.8s ease;
}

.ricofit-menu-categorias h2 {
    text-align: center;
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--rf-text-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 20px;
}

.ricofit-menu-categorias h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--rf-primary), var(--rf-primary-light));
}

.ricofit-categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.ricofit-categoria-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 35px;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.ricofit-categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--rf-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ricofit-categoria-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(178, 249, 0, 0.25);
    border-color: var(--rf-primary);
}

.ricofit-categoria-card:hover::before {
    transform: scaleX(1);
}

.ricofit-categoria-card .categoria-icon {
    font-size: 70px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.ricofit-categoria-card:hover .categoria-icon {
    transform: scale(1.2) rotate(5deg);
}

.ricofit-categoria-card h3 {
    font-size: 24px;
    color: var(--rf-text-dark);
    margin: 10px 0;
    font-weight: 600;
}

.ricofit-categoria-card .categoria-count {
    color: var(--rf-primary);
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}

/* ===== BUSCADOR GLOBAL ===== */
.ricofit-buscador-global {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
}

.ricofit-search-global {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid var(--rf-border);
    border-radius: 50px;
    font-size: 18px;
    background: var(--rf-dark);
    color: var(--rf-text);
    transition: all 0.3s ease;
}

.ricofit-search-global:focus {
    outline: none;
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 4px rgba(178, 249, 0, 0.1);
}

.ricofit-search-global::placeholder {
    color: #888;
}

.ricofit-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--rf-dark);
    border: 2px solid var(--rf-border);
    border-radius: 15px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--rf-border);
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--rf-dark-light);
}

.search-result-item strong {
    flex: 1;
    font-size: 16px;
    color: var(--rf-text);
    font-weight: 600;
}

.search-result-item span {
    margin: 0 15px;
    color: var(--rf-primary);
    font-weight: 700;
    font-size: 16px;
}

.search-result-item button {
    background: var(--rf-primary);
    color: var(--rf-dark);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item button:hover {
    background: var(--rf-primary-light);
    transform: scale(1.15);
}

.search-empty {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 16px;
}

/* ===== SCROLLBAR PERSONALIZADO ===== */
.ricofit-search-results::-webkit-scrollbar {
    width: 8px;
}

.ricofit-search-results::-webkit-scrollbar-track {
    background: var(--rf-dark-light);
    border-radius: 10px;
}

.ricofit-search-results::-webkit-scrollbar-thumb {
    background: var(--rf-primary);
    border-radius: 10px;
}

.ricofit-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--rf-primary-light);
}

/* ===== UTILIDADES ===== */
.ricofit-text-center {
    text-align: center;
}

.ricofit-hidden {
    display: none !important;
}

.ricofit-fade-in {
    animation: fadeIn 0.6s ease;
}

/* ===== ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .ricofit-logo-wheel .wheel {
        animation: none !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .ricofit-carrito-page,
    .ricofit-menu-categorias {
        background: var(--rf-bg-dark);
    }

    .ricofit-carrito-title,
    .ricofit-menu-categorias h2 {
        color: var(--rf-text);
    }

    .ricofit-categoria-card {
        background: var(--rf-dark);
        border-color: var(--rf-border);
    }

    .ricofit-categoria-card h3 {
        color: var(--rf-text);
    }
}
