/**
 * FotoEnfocada - CSS Principal
 * ============================================================================
 * Estilos consolidados para componentes reutilizables del frontend
 * 
 * Incluye:
 * - Lightbox con marca de agua
 * - Toast de protección
 * - Estilos de galería de eventos
 * - Estilos de cards de fotos
 * - Animaciones
 * 
 * @version 2.0.0
 * @author FotoEnfocada
 */

/* ============================================================================
   VARIABLES CSS
   ============================================================================ */

:root {
    --fe-primary: #4E54FF;
    --fe-primary-dark: #3034ff;
    --fe-secondary: #6B52FF;
    --fe-success: #10b981;
    --fe-danger: #ef4444;
    --fe-warning: #f59e0b;
    --fe-gray-50: #f9fafb;
    --fe-gray-100: #f3f4f6;
    --fe-gray-200: #e5e7eb;
    --fe-gray-600: #4b5563;
    --fe-gray-800: #1f2937;
    --fe-gray-900: #111827;
    --fe-font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --fe-border-radius: 12px;
    --fe-border-radius-lg: 16px;
    --fe-border-radius-xl: 20px;
    --fe-shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --fe-shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --fe-shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    --fe-transition: all 0.3s ease;
}

/* ============================================================================
   LIGHTBOX
   ============================================================================ */

.fe-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fe-fadeIn 0.3s ease;
}

.fe-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.fe-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: var(--fe-border-radius-xl);
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fe-scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fe-lightbox-photo {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    display: block;
    border-radius: var(--fe-border-radius);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.fe-lightbox-watermark-pattern {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 80px;
    background-image: url('https://fotoenfocada-market-media.s3.us-east-2.amazonaws.com/frontend/Patter-nuevo-foto-enfocada.png');
    background-size: 600px 600px;
    background-repeat: repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: screen;
    border-radius: var(--fe-border-radius);
}

.fe-lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: var(--fe-danger);
    color: white;
    border: 3px solid white;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: var(--fe-transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fe-lightbox-close:hover {
    background: #dc2626;
    transform: rotate(90deg) scale(1.1);
}

.fe-lightbox-info {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--fe-gray-600);
    line-height: 1.6;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .fe-lightbox-watermark-pattern {
        background-size: 400px 400px;
    }
    
    .fe-lightbox-info {
        font-size: 12px;
    }
    
    .fe-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: -10px;
        right: -10px;
    }
}

/* ============================================================================
   TOAST DE PROTECCIÓN
   ============================================================================ */

.fe-protection-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--fe-danger) 0%, #dc2626 100%);
    color: white;
    padding: 16px 24px;
    border-radius: var(--fe-border-radius);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    z-index: 9999999;
    animation: fe-slideUp 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--fe-font-family);
}

.fe-protection-toast-icon {
    font-size: 24px;
}

.fe-protection-toast-title {
    font-size: 14px;
    font-weight: 700;
}

.fe-protection-toast-message {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.fe-protection-toast-hide {
    animation: fe-slideDown 0.3s ease forwards;
}

/* ============================================================================
   PROTECCIÓN DE IMÁGENES
   ============================================================================ */

.fe-product-thumb img,
.fe-lightbox-content img,
[data-fe-protected] img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
}

.fe-product-thumb {
    -webkit-touch-callout: none;
    cursor: pointer;
    position: relative;
}

/* ============================================================================
   CARDS DE FOTOS
   ============================================================================ */

.fe-photo-card {
    background: white;
    border-radius: var(--fe-border-radius-lg);
    overflow: hidden;
    box-shadow: var(--fe-shadow-sm);
    transition: var(--fe-transition);
    position: relative;
}

.fe-photo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fe-shadow-lg);
}

.fe-photo-card .fe-product-thumb:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Badge "En carrito" */
.fe-photo-card.fe-added::before {
    content: '✓ EN CARRITO';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--fe-success) 0%, #059669 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6);
}

/* Botón añadir al carrito */
.fe-btn-add-cart {
    display: block;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--fe-primary) 0%, var(--fe-secondary) 100%);
    color: white;
    padding: 14px 24px;
    border-radius: var(--fe-border-radius);
    font-weight: 700;
    font-size: 15px;
    transition: var(--fe-transition);
}

.fe-btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 84, 255, 0.4);
    color: white;
}

/* Badge de dorsal */
.fe-dorsal-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--fe-primary) 0%, var(--fe-secondary) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--fe-border-radius);
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================================
   CARDS DE EVENTOS
   ============================================================================ */

.evento-card {
    background: white;
    border-radius: var(--fe-border-radius-xl);
    overflow: hidden;
    box-shadow: var(--fe-shadow-sm);
    transition: var(--fe-transition);
    cursor: pointer;
}

.evento-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fe-shadow-lg);
}

.evento-card .evento-image {
    transition: transform 0.3s ease;
}

.evento-card:hover .evento-image {
    transform: scale(1.05);
}

.evento-button {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--fe-primary) 0%, var(--fe-secondary) 100%);
    color: white;
    padding: 14px 24px;
    border-radius: var(--fe-border-radius);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--fe-transition);
    box-shadow: 0 4px 12px rgba(78, 84, 255, 0.3);
}

.evento-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 84, 255, 0.4);
    color: white;
}

/* ============================================================================
   HERO DE EVENTOS
   ============================================================================ */

.fe-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    min-height: 400px;
}

.fe-hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin: 0 0 20px 0;
}

/* ============================================================================
   BUSCADOR DE DORSALES
   ============================================================================ */

.fe-search-section {
    background: linear-gradient(135deg, var(--fe-primary) 0%, var(--fe-secondary) 100%);
    padding: 60px 40px;
    border-radius: var(--fe-border-radius-xl);
    text-align: center;
}

.fe-search-section h2 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.fe-search-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.fe-search-input {
    flex: 1;
    padding: 20px;
    border: none;
    border-radius: var(--fe-border-radius-lg);
    font-size: 18px;
}

.fe-search-button {
    padding: 20px 40px;
    background: white;
    color: var(--fe-primary);
    border: none;
    border-radius: var(--fe-border-radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: var(--fe-transition);
}

.fe-search-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--fe-shadow-md);
}

/* ============================================================================
   GRID DE GALERÍA
   ============================================================================ */

.fe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .fe-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .fe-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .fe-grid {
        grid-template-columns: 1fr;
    }
    
    .fe-hero h1 {
        font-size: 2rem;
    }
}

/* ============================================================================
   ANIMACIONES
   ============================================================================ */

@keyframes fe-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fe-fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes fe-scaleIn {
    from { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

@keyframes fe-slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fe-slideDown {
    from { 
        opacity: 1;
        transform: translateY(0);
    }
    to { 
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes fe-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Clases de animación */
.fe-animated {
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

.fe-fadeInUp {
    animation-name: fe-fadeInUp;
}

/* ============================================================================
   ACCESIBILIDAD
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .fe-lightbox,
    .fe-lightbox-content,
    .fe-protection-toast,
    .fe-photo-card,
    .evento-card,
    .fe-animated {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus states */
.fe-btn-add-cart:focus,
.evento-button:focus,
.fe-search-button:focus,
.fe-lightbox-close:focus {
    outline: 3px solid var(--fe-primary);
    outline-offset: 2px;
}

/* ============================================================================
   CARRITO - ESTILOS COMPLETOS
   ============================================================================ */

/* Z-INDEX Y ESPACIADO BASE */
body.woocommerce-cart header,
body.woocommerce-cart .site-header,
body.woocommerce-cart .elementor-location-header {
    position: relative !important;
    z-index: 9999 !important;
}

body.woocommerce-cart header nav,
body.woocommerce-cart .elementor-nav-menu,
body.woocommerce-cart .menu {
    z-index: 99999 !important;
}

body.woocommerce-cart {
    background: #f5f5f5 !important;
    padding-top: 0 !important;
}

body.woocommerce-cart > main,
body.woocommerce-cart > #content,
body.woocommerce-cart > .site-main {
    padding-top: 30px !important;
}

/* Ocultar elementos nativos */
body.woocommerce-cart .entry-header,
body.woocommerce-cart .page-header,
body.woocommerce-cart h1.entry-title,
body.woocommerce-cart .page-title,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .woocommerce-cart-form .actions,
body.woocommerce-cart .shop_table thead,
body.woocommerce-cart .wc-proceed-to-checkout {
    display: none !important;
}

body.woocommerce-cart * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    box-sizing: border-box;
}

/* BANNER "MI CARRITO" */
.fe-cart-header {
    background: linear-gradient(135deg, var(--fe-primary) 0%, var(--fe-primary-dark) 100%);
    padding: 60px 20px;
    text-align: center;
    margin: 20px 0 40px 0;
    box-shadow: 0 4px 20px rgba(78, 84, 255, 0.2);
    position: relative;
    z-index: 1;
}

.fe-cart-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.02em;
}

/* WRAPPER PRINCIPAL */
.fe-cart-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.fe-cart-products {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* TABLA DE PRODUCTOS */
body.woocommerce-cart .shop_table {
    border: none !important;
    margin: 0 !important;
}

body.woocommerce-cart .shop_table tbody {
    border: none !important;
}

body.woocommerce-cart .woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 110px 1fr 150px 40px !important;
    grid-template-areas: "thumb info price remove" !important;
    gap: 20px !important;
    align-items: center !important;
    padding: 25px 30px !important;
    border-bottom: 2px solid var(--fe-gray-100) !important;
    background: white !important;
    transition: background 0.2s ease !important;
    position: relative !important;
}

body.woocommerce-cart .woocommerce-cart-form__cart-item:hover {
    background: var(--fe-gray-50) !important;
}

body.woocommerce-cart .woocommerce-cart-form__cart-item:last-child {
    border-bottom: none !important;
}

/* THUMBNAIL - CLICKEABLE PARA LIGHTBOX */
body.woocommerce-cart .product-thumbnail {
    grid-area: thumb !important;
    width: 110px !important;
    height: 110px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 2px solid var(--fe-gray-200) !important;
    background: #f9fafb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

body.woocommerce-cart .product-thumbnail:hover {
    box-shadow: 0 6px 20px rgba(78, 84, 255, 0.25) !important;
    border-color: var(--fe-primary) !important;
    transform: translateY(-2px) !important;
}

/* Prevenir que el <a> redirija */
body.woocommerce-cart .product-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    cursor: default !important;
}

body.woocommerce-cart .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transform: scale(1.10) !important;
    transition: transform 0.3s ease !important;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

body.woocommerce-cart .product-thumbnail:hover img {
    transform: scale(1.12) !important;
}

/* Overlay "Ver" */
body.woocommerce-cart .product-thumbnail::after {
    content: '🔍 Ver' !important;
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0,0,0,0.75) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    border-radius: 10px !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

body.woocommerce-cart .product-thumbnail:hover::after {
    opacity: 1 !important;
}

/* INFO (NOMBRE + DORSAL) */
body.woocommerce-cart .product-name {
    grid-area: info !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
    text-align: left !important;
    align-items: flex-start !important;
}

body.woocommerce-cart .product-name > a {
    display: none !important;
}

.fe-cart-item-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.fe-evento-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-align: left !important;
}

.fe-dorsal-badge {
    display: inline-block !important;
    background: linear-gradient(135deg, #4E54FF 0%, #6B52FF 100%) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.03em !important;
    align-self: flex-start !important;
    margin: 0 !important;
}

/* PRECIO */
body.woocommerce-cart .product-price {
    grid-area: price !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
    text-align: right !important;
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}

body.woocommerce-cart .product-price del {
    font-size: 14px !important;
    color: #9ca3af !important;
    text-decoration: line-through !important;
}

body.woocommerce-cart .product-price ins {
    text-decoration: none !important;
}

body.woocommerce-cart .product-price .amount {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--fe-primary) !important;
}

body.woocommerce-cart .product-price del .amount {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #9ca3af !important;
}

/* BOTÓN ELIMINAR */
body.woocommerce-cart .product-remove {
    grid-area: remove !important;
    width: 40px !important;
    height: 40px !important;
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-cart .product-remove a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    background: white !important;
    border: 2px solid #fee2e2 !important;
    border-radius: 10px !important;
    color: var(--fe-danger) !important;
    font-size: 24px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

body.woocommerce-cart .product-remove a:hover {
    background: var(--fe-danger) !important;
    color: white !important;
    border-color: var(--fe-danger) !important;
    transform: scale(1.1) !important;
}

body.woocommerce-cart .product-quantity,
body.woocommerce-cart .product-subtotal {
    display: none !important;
}

/* SIDEBAR DEL CARRITO */
.fe-cart-sidebar {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.fe-timer-box {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fed7aa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.fe-timer-box p {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
}

.fe-timer-display {
    font-size: 32px;
    font-weight: 900;
    color: #c2410c;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.05em;
}

.fe-progress-box {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fe-progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fe-progress-text span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--fe-gray-800);
}

.fe-progress-text span:last-child {
    font-size: 16px;
    font-weight: 800;
    color: var(--fe-success);
}

.fe-progress-bar-bg {
    width: 100%;
    height: 12px;
    background: var(--fe-gray-200);
    border-radius: 20px;
    overflow: hidden;
}

.fe-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--fe-success) 0%, #34d399 100%);
    border-radius: 20px;
    transition: width 0.6s ease;
}

.fe-progress-message {
    margin-top: 12px;
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0369a1;
    text-align: center;
}

.fe-totals-box {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fe-totals-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--fe-gray-900);
    margin: 0 0 20px 0;
    text-align: center;
}

.fe-total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 15px;
    color: var(--fe-gray-800);
}

.fe-total-row span:last-child {
    font-weight: 700;
}

.fe-total-row.discount {
    color: var(--fe-success);
    font-weight: 600;
}

.fe-total-row.final {
    padding-top: 20px;
    margin-top: 16px;
    border-top: 2px solid var(--fe-gray-200);
    font-size: 22px;
    font-weight: 900;
}

.fe-savings-compare {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #a7f3d0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.fe-savings-compare p {
    margin: 0;
    font-size: 13px;
    color: #065f46;
    font-weight: 600;
}

.fe-savings-amount {
    font-size: 24px;
    font-weight: 900;
    color: #047857;
    margin-top: 8px;
}

.fe-checkout-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--fe-primary) 0%, var(--fe-primary-dark) 100%);
    color: white;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(78, 84, 255, 0.4);
    margin-bottom: 12px;
}

.fe-checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(78, 84, 255, 0.5);
    color: white;
}

.fe-back-event-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: white;
    color: var(--fe-primary);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid var(--fe-primary);
    transition: all 0.2s ease;
}

.fe-back-event-btn:hover {
    background: #f0f4ff;
    color: var(--fe-primary);
}

.fe-upsell-box {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
    border: 2px dashed var(--fe-primary);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.fe-upsell-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--fe-gray-900);
    margin: 0 0 12px 0;
}

.fe-upsell-box p {
    font-size: 15px;
    color: var(--fe-gray-800);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.fe-upsell-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--fe-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.fe-upsell-btn:hover {
    background: var(--fe-primary-dark);
    transform: translateY(-2px);
    color: white;
}

.fe-guarantees {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.fe-guarantees h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--fe-gray-900);
    margin: 0 0 16px 0;
    text-align: center;
}

.fe-guarantee-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.fe-guarantee-item:last-child {
    margin-bottom: 0;
}

.fe-guarantee-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.fe-guarantee-text {
    font-size: 13px;
    color: var(--fe-gray-800);
    line-height: 1.5;
}

/* CARRITO - RESPONSIVE TABLET */
@media (max-width: 1024px) {
    .fe-cart-wrapper {
        grid-template-columns: 1fr;
    }
    
    .fe-cart-sidebar {
        position: static;
    }
}

/* CARRITO - RESPONSIVE MOBILE */
@media (max-width: 768px) {
    body.woocommerce-cart > main,
    body.woocommerce-cart > #content {
        padding-top: 20px !important;
    }
    
    .fe-cart-header {
        padding: 40px 20px !important;
        margin: 15px 0 30px 0 !important;
    }
    
    .fe-cart-header h1 {
        font-size: 2rem !important;
    }
    
    .fe-cart-wrapper {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px 40px !important;
    }
    
    body.woocommerce-cart .woocommerce-cart-form__cart-item {
        grid-template-columns: 90px 1fr 36px !important;
        grid-template-rows: auto auto !important;
        grid-template-areas: 
            "thumb info remove"
            "price price price" !important;
        gap: 12px 16px !important;
        padding: 20px 16px !important;
    }
    
    body.woocommerce-cart .product-thumbnail {
        width: 90px !important;
        height: 90px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    }
    
    body.woocommerce-cart .product-thumbnail img {
        object-fit: cover !important;
        width: 100% !important;
        height: 100% !important;
        transform: scale(1.10) !important;
    }
    
    body.woocommerce-cart .product-thumbnail::after {
        font-size: 12px !important;
    }
    
    body.woocommerce-cart .product-name {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .fe-evento-name {
        font-size: 15px !important;
        text-align: left !important;
        line-height: 1.3 !important;
    }
    
    .fe-dorsal-badge {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }
    
    body.woocommerce-cart .product-price {
        grid-area: price !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding-top: 12px !important;
        border-top: 1px solid var(--fe-gray-100) !important;
    }
    
    body.woocommerce-cart .product-price .amount {
        font-size: 22px !important;
    }
    
    body.woocommerce-cart .product-remove {
        width: 36px !important;
        height: 36px !important;
    }
    
    body.woocommerce-cart .product-remove a {
        font-size: 20px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 480px) {
    body.woocommerce-cart .woocommerce-cart-form__cart-item {
        grid-template-columns: 75px 1fr 32px !important;
        padding: 16px 12px !important;
    }
    
    body.woocommerce-cart .product-thumbnail {
        width: 75px !important;
        height: 75px !important;
        border-radius: 8px !important;
    }
    
    .fe-evento-name {
        font-size: 14px !important;
    }
    
    .fe-dorsal-badge {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }
    
    body.woocommerce-cart .product-price .amount {
        font-size: 20px !important;
    }
    
    body.woocommerce-cart .product-remove {
        width: 32px !important;
        height: 32px !important;
    }
    
    body.woocommerce-cart .product-remove a {
        font-size: 18px !important;
    }
    
    .fe-cart-header h1 {
        font-size: 1.75rem !important;
    }
}
