        /* ============================================
           VARIABLES CSS PREMIUM - CHECKOUT MEJORADO
        ============================================ */
        :root {
            /* Colores premium mejorados */
            --checkout-color-primario: #111111;
            --checkout-color-secundario: #d4af37;
            --checkout-color-acento: #c9a96e;
            --checkout-color-texto-primario: #2c2c2c;
            --checkout-color-texto-secundario: #777777;
            --checkout-color-fondo-principal: #f8f8f8;
            --checkout-color-fondo-secundario: #ffffff;
            --checkout-color-fondo-overlay: rgba(26, 26, 26, 0.95);
            
            /* Sombras premium mejoradas */
            --checkout-sombra-sutil: 0 4px 25px rgba(0, 0, 0, 0.05);
            --checkout-sombra-media: 0 12px 45px rgba(0, 0, 0, 0.08);
            --checkout-sombra-intensa: 0 25px 70px rgba(0, 0, 0, 0.12);
            --checkout-sombra-dorada: 0 12px 35px rgba(212, 175, 55, 0.15);
            
            /* Transiciones premium mejoradas */
            --checkout-transicion-rapida: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            --checkout-transicion-media: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            --checkout-transicion-lenta: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            
            /* Bordes premium */
            --checkout-borde-fino: 1px solid rgba(212, 175, 55, 0.1);
            --checkout-borde-dorado: 1px solid rgba(212, 175, 55, 0.3);
        }

        /* ============================================
           ESTILOS BASE MEJORADOS
        ============================================ */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--checkout-color-fondo-principal);
            color: var(--checkout-color-texto-primario);
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* ============================================
           CONTENEDOR PRINCIPAL Y SISTEMA DE GRID MEJORADO
        ============================================ */
        .container-py {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 15px;
            width: 100%;
        }

        .py-5 {
            padding: 3rem 0;
        }

        /* SISTEMA DE GRID MEJORADO */
        .checkout-grid {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
            align-items: flex-start;
        }

        .checkout-col-main {
            padding: 0 15px;
            position: relative;
            width: 100%;
        }

        .checkout-col-sidebar {
            padding: 0 15px;
            position: relative;
            width: 100%;
        }

        /* Layout de dos columnas en pantallas grandes */
        @media (min-width: 992px) {
            .checkout-col-main {
                flex: 0 0 66.666667%;
                max-width: 66.666667%;
            }

            .checkout-col-sidebar {
                flex: 0 0 33.333333%;
                max-width: 33.333333%;
                position: sticky;
                top: 20px;
            }
        }

        /* Layout de una columna en pantallas medianas */
        @media (max-width: 991px) {
            .checkout-col-main,
            .checkout-col-sidebar {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            .checkout-col-sidebar {
                margin-top: 2rem;
            }
        }

        /* ============================================
           HEADER PREMIUM MEJORADO
        ============================================ */
        .checkout-header-premium {
            position: relative;
            height: 220px;
            overflow: hidden;
            background: linear-gradient(135deg, var(--checkout-color-primario) 0%, #2c2c2c 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2.5rem;
        }

        .checkout-header-premium::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1607083206968-13611e3d76db?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1215&q=80') no-repeat center center/cover;
            opacity: 0.2;
        }

        .checkout-header-premium::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(212, 175, 55, 0.1) 100%);
        }

        .checkout-header-content {
            position: relative;
            z-index: 2;
            text-align: center;
            color: white;
            padding: 0 20px;
            max-width: 1200px;
            width: 100%;
        }

        /* ============================================
           TÍTULO PRINCIPAL PREMIUM MEJORADO
        ============================================ */
        .checkout-titulo-principal {
            font-family: 'Playfair Display', serif;
            font-weight: 700;
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            color: white;
            text-align: center;
            margin-bottom: 1rem;
            position: relative;
            letter-spacing: -0.5px;
        }

        .checkout-titulo-principal::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            border-radius: 2px;
        }

        .checkout-subtitulo {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.85);
            max-width: 700px;
            margin: 0 auto;
            font-weight: 400;
        }

        /* ============================================
           BREADCRUMBS PREMIUM MEJORADO
        ============================================ */
        .checkout-breadcrumb-premium {
            background: linear-gradient(135deg, #ffffff 0%, #faf8f5 100%);
            border-radius: 16px;
            padding: 1.2rem 2rem;
            box-shadow: 0 4px 20px rgba(212, 175, 55, 0.08);
            margin-bottom: 2.5rem;
            animation: checkoutFadeInUp 0.6s ease-out;
            border: 2px solid rgba(212, 175, 55, 0.15);
            position: relative;
            overflow: hidden;
        }

        .checkout-breadcrumb-premium::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(212, 175, 55, 0.03) 50%,
                transparent 100%);
            pointer-events: none;
        }

        .checkout-breadcrumb-premium .breadcrumb {
            margin: 0;
            background: none;
            padding: 0;
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            list-style: none;
        }

        .checkout-breadcrumb-premium .breadcrumb-item {
            position: relative;
            display: flex;
            align-items: center;
        }

        .checkout-breadcrumb-premium .breadcrumb-item::before {
            display: none !important;
            content: none !important;
        }

        .checkout-breadcrumb-premium .breadcrumb-item a {
            color: #555;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            padding: 0.4rem 0.8rem;
            border-radius: 8px;
            font-family: 'Playfair Display', serif;
        }

        .checkout-breadcrumb-premium .breadcrumb-item a i {
            font-size: 0.9rem;
            transition: transform 0.3s ease;
        }

        .checkout-breadcrumb-premium .breadcrumb-item a:hover {
            color: #d4af37;
            background: rgba(212, 175, 55, 0.08);
            transform: translateY(-2px);
        }

        .checkout-breadcrumb-premium .breadcrumb-item a:hover i {
            transform: scale(1.15);
        }

        .checkout-breadcrumb-premium .breadcrumb-item.active {
            color: #d4af37;
            font-weight: 700;
            font-family: 'Playfair Display', serif;
            display: inline-flex;
            align-items: center;
            padding: 0.4rem 0.8rem;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(244, 228, 188, 0.12));
            border-radius: 8px;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }

        .checkout-breadcrumb-premium .breadcrumb-item.active i {
            color: #d4af37;
            filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.4));
        }

        .checkout-breadcrumb-premium .breadcrumb-item + .breadcrumb-item::after {
            content: '›';
            color: #d4af37;
            font-size: 1.3rem;
            font-weight: 300;
            padding: 0 0.7rem;
            vertical-align: middle;
            display: inline-block !important;
            order: -1;
        }

        /* ============================================
           PASOS DEL PROCESO PREMIUM MEJORADO
        ============================================ */
        .checkout-pasos-container {
            background: var(--checkout-color-fondo-secundario);
            border-radius: 16px;
            padding: 1.8rem;
            margin-bottom: 2.5rem;
            box-shadow: var(--checkout-sombra-media);
            animation: checkoutFadeInUp 0.8s ease-out;
            border: var(--checkout-borde-fino);
        }

        /* Barra de progreso minimalista para móviles */
        .checkout-progress-bar-mobile {
            display: none;
            background: var(--checkout-color-fondo-secundario);
            border-radius: 12px;
            padding: 1rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            border: 1px solid rgba(212, 175, 55, 0.15);
        }

        .checkout-progress-title-mobile {
            font-size: 13px;
            font-weight: 600;
            color: var(--checkout-color-primario);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .checkout-progress-title-mobile i {
            color: var(--checkout-color-secundario);
            font-size: 14px;
        }

        .checkout-progress-track {
            height: 6px;
            background: #e0e0e0;
            border-radius: 10px;
            overflow: hidden;
            position: relative;
        }

        .checkout-progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            border-radius: 10px;
            transition: width 0.4s ease;
            position: relative;
        }

        .checkout-progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translate(-50%, -10px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }

        @keyframes fadeOutUp {
            from {
                opacity: 1;
                transform: translate(-50%, 0);
            }
            to {
                opacity: 0;
                transform: translate(-50%, -10px);
            }
        }

        .checkout-progress-label {
            margin-top: 6px;
            font-size: 11px;
            color: var(--checkout-color-texto-secundario);
            text-align: right;
            font-weight: 500;
        }

        /* Responsive para barra de progreso móvil */
        @media (max-width: 576px) {
            .checkout-progress-bar-mobile {
                padding: 0.8rem;
                margin-bottom: 1.2rem;
                border-radius: 10px;
            }

            .checkout-progress-title-mobile {
                font-size: 12px;
                margin-bottom: 6px;
            }

            .checkout-progress-track {
                height: 5px;
            }

            .checkout-progress-label {
                font-size: 10px;
                margin-top: 5px;
            }
        }

        @media (max-width: 400px) {
            .checkout-progress-bar-mobile {
                padding: 0.7rem;
                margin-bottom: 1rem;
            }

            .checkout-progress-title-mobile {
                font-size: 11px;
            }

            .checkout-progress-track {
                height: 4px;
            }
        }

        .checkout-pasos {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        .checkout-pasos::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 10%;
            right: 10%;
            height: 3px;
            background: linear-gradient(90deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            z-index: 1;
            border-radius: 2px;
        }

        .checkout-paso {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
            background: var(--checkout-color-fondo-secundario);
            padding: 0.5rem;
            border-radius: 12px;
            transition: all var(--checkout-transicion-media);
        }

        .checkout-paso:hover {
            transform: translateY(-5px);
        }

        .checkout-paso-icono {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            margin-bottom: 0.5rem;
            transition: all var(--checkout-transicion-media);
            position: relative;
            overflow: hidden;
            box-shadow: var(--checkout-sombra-sutil);
        }

        .checkout-paso-icono::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: all 0.6s;
        }

        .checkout-paso:hover .checkout-paso-icono::before {
            left: 100%;
        }

        .checkout-paso.activo .checkout-paso-icono {
            background: linear-gradient(135deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            box-shadow: var(--checkout-sombra-dorada);
            animation: checkoutPulso 2s infinite ease-in-out;
        }

        .checkout-paso.completado .checkout-paso-icono {
            background: linear-gradient(135deg, #28a745, #20c997);
            box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
        }

        .checkout-paso.pendiente .checkout-paso-icono {
            background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
        }

        .checkout-paso-texto {
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--checkout-color-texto-primario);
            text-align: center;
            letter-spacing: 0.5px;
        }

        /* ============================================
           TARJETAS PREMIUM MEJORADAS
        ============================================ */
        .checkout-card-premium {
            background: var(--checkout-color-fondo-secundario);
            border-radius: 20px;
            box-shadow: var(--checkout-sombra-media);
            border: none;
            overflow: hidden;
            transition: all var(--checkout-transicion-lenta);
            animation: checkoutFadeInLeft 0.8s ease-out;
            position: relative;
            border: var(--checkout-borde-fino);
            margin-bottom: 1.5rem;
            width: 100%;
        }

        .checkout-card-premium::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: linear-gradient(90deg, var(--checkout-color-secundario), var(--checkout-color-acento), var(--checkout-color-secundario));
            background-size: 200% 100%;
            animation: checkoutBrilloHeader 3s infinite;
        }

        .checkout-card-premium:hover {
            transform: translateY(-5px);
            box-shadow: var(--checkout-sombra-intensa);
        }

        .checkout-card-header-premium {
            background: linear-gradient(135deg, var(--checkout-color-primario), #2c2c2c);
            color: white;
            padding: 1rem 1.5rem;
            border-bottom: none;
            position: relative;
            overflow: hidden;
        }

        .checkout-card-header-premium::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
            animation: checkoutBrilloFondo 4s infinite;
        }

        .checkout-card-header-premium h4 {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 1rem;
            font-size: 1.4rem;
            letter-spacing: -0.3px;
        }

        .checkout-card-header-icono {
            width: 40px;
            height: 40px;
            background: var(--checkout-color-secundario);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
        }

        .checkout-card-body-premium {
            padding: 1.5rem;
        }

        /* ============================================
           SECCIONES DE FORMULARIO PREMIUM MEJORADAS
        ============================================ */
        .checkout-seccion-formulario {
            margin-bottom: 1.4rem;
            padding: 1rem;
            border-radius: 14px;
            background: rgba(250, 250, 250, 0.5);
            border: var(--checkout-borde-fino);
            transition: all var(--checkout-transicion-rapida);
            position: relative;
            overflow: hidden;
        }

        .checkout-seccion-formulario::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 4px;
            height: 100%;
            background: linear-gradient(to bottom, var(--checkout-color-secundario), var(--checkout-color-acento));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .checkout-seccion-formulario:hover {
            background: rgba(250, 250, 250, 0.8);
            border-color: rgba(212, 175, 55, 0.2);
            transform: translateY(-2px);
        }

        .checkout-seccion-formulario:hover::before {
            opacity: 1;
        }

        .checkout-seccion-titulo {
            font-family: 'Playfair Display', serif;
            font-weight: 600;
            font-size: 1.15rem;
            color: var(--checkout-color-primario);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            position: relative;
            padding-bottom: 0.4rem;
        }

        .checkout-seccion-titulo::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: linear-gradient(90deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            border-radius: 1px;
        }

        .checkout-seccion-icono {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.95rem;
            box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
        }

        /* ============================================
           INPUTS PREMIUM MEJORADOS
        ============================================ */
        .checkout-input-group {
            position: relative;
            margin-bottom: 1rem;
        }

        .checkout-label-premium {
            font-weight: 600;
            color: var(--checkout-color-texto-primario);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.95rem;
        }

        .checkout-label-premium i {
            color: var(--checkout-color-secundario);
            width: 16px;
        }

        .checkout-input-premium {
            width: 100%;
            border: 1px solid #e0e0e0;
            border-radius: 12px;
            padding: 0.75rem 1rem;
            font-size: 0.95rem;
            transition: all var(--checkout-transicion-rapida);
            background: var(--checkout-color-fondo-secundario);
            position: relative;
            font-family: 'Inter', sans-serif;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
        }

        .checkout-input-premium:focus {
            border-color: var(--checkout-color-secundario);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
            outline: none;
            transform: translateY(-2px);
        }

        .checkout-input-premium:valid {
            border-color: #28a745;
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.14-.03c.05-.01.1-.03.15-.05l2.9-2.9c.02-.02.05-.04.08-.05a.5.5 0 0 0 .12-.04L6 3.6c.02-.01.03-.03.05-.04.02-.02.04-.03.06-.05l.02-.02c.02-.02.04-.03.06-.05a.5.5 0 0 0 .16-.25.5.5 0 0 0-.15-.31l-.02-.02c-.02-.02-.04-.03-.06-.05a.5.5 0 0 0-.12-.04l-.4-.16c-.02-.01-.03-.03-.05-.04-.02-.02-.04-.03-.06-.05l-.02-.02c-.02-.02-.04-.03-.06-.05a.5.5 0 0 0-.25-.16.5.5 0 0 0-.31.15l-2.9 2.9a.5.5 0 0 0-.05.08.5.5 0 0 0-.04.12l-.16.4c-.01.02-.03.03-.04.05-.02.02-.03.04-.05.06l-.02.02c-.02.02-.03.04-.05.06a.5.5 0 0 0-.16.25.5.5 0 0 0 .15.31c.02.02.04.03.06.05a.5.5 0 0 0 .12.04l.4.16c.02.01.03.03.05.04.02.02.04.03.06.05l.02.02z'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right calc(0.375em + 0.1875rem) center;
            background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        }

        .checkout-input-premium.error {
            border-color: #dc3545;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
        }

        /* Efecto de onda en input focus */
        .checkout-input-premium:focus {
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15), 0 5px 20px rgba(212, 175, 55, 0.1);
        }

        /* ============================================
           MÉTODOS DE PAGO PREMIUM MEJORADOS
        ============================================ */
        .checkout-metodos-pago {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        /* Responsive para métodos de pago */
        @media (min-width: 768px) {
            .checkout-metodos-pago {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 992px) {
            .checkout-metodos-pago {
                grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            }
        }

        .checkout-metodo-pago {
            position: relative;
            cursor: pointer;
        }

        .checkout-metodo-pago input[type="radio"] {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

        .checkout-metodo-card {
            background: var(--checkout-color-fondo-secundario);
            border: 1px solid #e0e0e0;
            border-radius: 14px;
            padding: 1.2rem;
            transition: all var(--checkout-transicion-rapida);
            display: flex;
            align-items: center;
            gap: 1rem;
            position: relative;
            overflow: hidden;
        }

        .checkout-metodo-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
            transition: all 0.6s;
        }

        .checkout-metodo-pago:hover .checkout-metodo-card::before {
            left: 100%;
        }

        .checkout-metodo-pago input[type="radio"]:checked + .checkout-metodo-card {
            border-color: var(--checkout-color-secundario);
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(201, 169, 110, 0.02));
            box-shadow: var(--checkout-sombra-dorada);
            transform: translateY(-3px);
        }

        .checkout-metodo-pago:hover .checkout-metodo-card {
            border-color: var(--checkout-color-acento);
            transform: translateY(-3px);
            box-shadow: var(--checkout-sombra-media);
        }

        .checkout-metodo-icono {
            width: 55px;
            height: 55px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            flex-shrink: 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .checkout-metodo-visa {
            background: linear-gradient(135deg, #1a1f71, #0f4c75);
        }

        .checkout-metodo-mastercard {
            background: linear-gradient(135deg, #eb001b, #f79e1b);
        }

        .checkout-metodo-transferencia {
            background: linear-gradient(135deg, #2e7d32, #4caf50);
        }

        .checkout-metodo-info h6 {
            margin: 0 0 0.25rem 0;
            font-weight: 600;
            color: var(--checkout-color-primario);
            font-size: 1.1rem;
        }

        .checkout-metodo-info p {
            margin: 0;
            color: var(--checkout-color-texto-secundario);
            font-size: 0.9rem;
        }

        /* Indicador de selección */
        .checkout-metodo-check {
            position: absolute;
            top: 0.8rem;
            right: 0.8rem;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: var(--checkout-color-secundario);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.8rem;
            opacity: 0;
            transform: scale(0);
            transition: all var(--checkout-transicion-rapida);
            box-shadow: 0 3px 8px rgba(212, 175, 55, 0.3);
        }

        .checkout-metodo-pago input[type="radio"]:checked + .checkout-metodo-card .checkout-metodo-check {
            opacity: 1;
            transform: scale(1);
        }

        /* ============================================
           DETALLES DE TARJETA PREMIUM MEJORADOS
        ============================================ */
        .checkout-tarjeta-detalles {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(201, 169, 110, 0.01));
            border-radius: 14px;
            padding: 1.2rem;
            margin-top: 1rem;
            border: var(--checkout-borde-dorado);
            transform: translateY(-10px);
            opacity: 0;
            animation: checkoutSlideIn 0.5s ease-out forwards;
        }

        .checkout-tarjeta-visual {
            background: linear-gradient(135deg, var(--checkout-color-primario), #2c2c2c);
            border-radius: 14px;
            padding: 1.2rem;
            color: white;
            margin-bottom: 1rem;
            position: relative;
            overflow: hidden;
            min-height: 140px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            transform-style: preserve-3d;
            perspective: 1000px;
            transition: transform 0.5s ease;
        }

        .checkout-tarjeta-visual::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, transparent, rgba(212, 175, 55, 0.1), transparent);
            border-radius: 14px;
            animation: checkoutTarjetaBrillo 3s infinite ease-in-out;
        }

        .checkout-tarjeta-numero {
            font-family: 'Courier New', monospace;
            font-size: 1.3rem;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            font-weight: 500;
        }

        .checkout-tarjeta-info {
            display: flex;
            justify-content: space-between;
            align-items: end;
        }

        .checkout-tarjeta-titular {
            font-size: 0.95rem;
            opacity: 0.9;
            max-width: 70%;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .checkout-tarjeta-logo {
            font-size: 1.8rem;
            color: var(--checkout-color-secundario);
        }

        /* ============================================
           RESUMEN DE COMPRA PREMIUM MEJORADO
        ============================================ */
        .checkout-resumen-premium {
            animation: checkoutFadeInRight 0.8s ease-out;
        }

        .checkout-producto-item {
            display: flex;
            gap: 0.8rem;
            padding: 0.8rem;
            border-radius: 14px;
            transition: all var(--checkout-transicion-rapida);
            margin-bottom: 0.8rem;
            border: 1px solid transparent;
            background: rgba(250, 250, 250, 0.5);
        }

        .checkout-producto-item:hover {
            background: rgba(250, 250, 250, 0.8);
            border-color: rgba(212, 175, 55, 0.2);
            transform: translateX(5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .checkout-producto-imagen {
            width: 75px;
            height: 75px;
            border-radius: 10px;
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        }

        .checkout-producto-imagen img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all var(--checkout-transicion-rapida);
        }

        .checkout-producto-item:hover .checkout-producto-imagen img {
            transform: scale(1.05);
        }

        .checkout-producto-info {
            flex: 1;
        }

        .checkout-producto-nombre {
            font-weight: 600;
            color: var(--checkout-color-primario);
            margin-bottom: 0.25rem;
            font-size: 0.95rem;
        }

        .checkout-producto-detalles {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--checkout-color-texto-secundario);
            font-size: 0.85rem;
        }

        .checkout-producto-precio {
            font-weight: 600;
            color: var(--checkout-color-secundario);
            font-size: 0.95rem;
        }

        /* Divider premium */
        .checkout-divider {
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--checkout-color-secundario), transparent);
            margin: 1.2rem 0;
            border-radius: 1px;
            opacity: 0.3;
        }

        /* Totales premium */
        .checkout-totales {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.03), rgba(201, 169, 110, 0.01));
            border-radius: 14px;
            padding: 1.2rem;
            margin-top: 1rem;
            border: var(--checkout-borde-dorado);
        }

        .checkout-total-linea {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 0.5rem;
            padding: 0.5rem 0;
        }

        .checkout-total-linea.total-final {
            border-top: 2px solid var(--checkout-color-secundario);
            padding-top: 0.8rem;
            margin-top: 0.8rem;
            font-weight: 700;
            font-size: 1.2rem;
        }

        .checkout-total-precio {
            font-weight: 600;
            color: var(--checkout-color-secundario);
        }

        /* ============================================
           BOTÓN FINALIZAR PREMIUM MEJORADO
        ============================================ */
        .checkout-btn-finalizar {
            background: linear-gradient(135deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            border: none;
            border-radius: 14px;
            padding: 1.1rem 1.8rem;
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
            width: 100%;
            margin-top: 1.8rem;
            position: relative;
            overflow: hidden;
            transition: all var(--checkout-transicion-media);
            box-shadow: var(--checkout-sombra-dorada);
            letter-spacing: 0.5px;
            font-family: 'Inter', sans-serif;
            cursor: pointer;
        }

        .checkout-btn-finalizar::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.6s;
            transform: translate(-50%, -50%);
        }

        .checkout-btn-finalizar:active::before {
            width: 300px;
            height: 300px;
        }

        .checkout-btn-finalizar:hover {
            background: linear-gradient(135deg, var(--checkout-color-acento), var(--checkout-color-secundario));
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
            color: white;
        }

        .checkout-btn-finalizar:disabled {
            background: linear-gradient(135deg, #e0e0e0, #bdbdbd);
            box-shadow: none;
            transform: none;
            cursor: not-allowed;
        }

        /* ============================================
           POLÍTICAS PREMIUM MEJORADAS
        ============================================ */
        .checkout-politicas {
            background: var(--checkout-color-fondo-secundario);
            border-radius: 14px;
            padding: 1.2rem;
            margin-top: 1rem;
            border: var(--checkout-borde-dorado);
            transition: all var(--checkout-transicion-rapida);
        }

        .checkout-politicas:hover {
            border-color: rgba(212, 175, 55, 0.4);
            box-shadow: var(--checkout-sombra-sutil);
            transform: translateY(-2px);
        }

        .checkout-politicas-titulo {
            font-weight: 600;
            color: var(--checkout-color-primario);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1.1rem;
        }

        .checkout-politicas-icono {
            color: var(--checkout-color-secundario);
            font-size: 1.1rem;
        }

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

        @keyframes checkoutFadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

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

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

        @keyframes checkoutPulso {
            0%, 100% {
                transform: scale(1);
                box-shadow: var(--checkout-sombra-dorada);
            }
            50% {
                transform: scale(1.05);
                box-shadow: 0 15px 45px rgba(212, 175, 55, 0.4);
            }
        }

        @keyframes checkoutBrilloHeader {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        @keyframes checkoutBrilloFondo {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        @keyframes checkoutTarjetaBrillo {
            0%, 100% {
                transform: scale(1) rotate(0deg);
                opacity: 0.1;
            }
            50% {
                transform: scale(1.1) rotate(180deg);
                opacity: 0.3;
            }
        }

        @keyframes checkoutSpin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ============================================
           RESPONSIVE DESIGN PREMIUM MEJORADO
        ============================================ */
        @media (max-width: 991px) {
            .checkout-header-premium {
                height: 200px;
                margin-bottom: 2rem;
            }

            .checkout-titulo-principal {
                font-size: 2.2rem;
            }

            .checkout-pasos {
                flex-direction: column;
                gap: 1.2rem;
            }

            .checkout-pasos::before {
                display: none;
            }

            .checkout-paso {
                flex-direction: row;
                width: 100%;
                background: var(--checkout-color-fondo-secundario);
                padding: 0.8rem;
                border-radius: 12px;
                box-shadow: var(--checkout-sombra-sutil);
            }

            .checkout-paso-icono {
                margin-bottom: 0;
                margin-right: 0.8rem;
            }

            .checkout-card-body-premium {
                padding: 1.2rem;
            }
        }

        /* Ocultar pasos grandes y mostrar barra minimalista en tablets y móviles */
        @media (max-width: 768px) {
            /* Ocultar pasos tradicionales */
            .checkout-pasos-container {
                display: none;
            }

            /* Mostrar barra de progreso minimalista */
            .checkout-progress-bar-mobile {
                display: block;
            }

            /* Simplificar breadcrumbs en tablets */
            .checkout-breadcrumb-premium {
                padding: 0.7rem 1.2rem;
                margin-bottom: 1.2rem;
            }

            .checkout-breadcrumb-premium .breadcrumb-item a,
            .checkout-breadcrumb-premium .breadcrumb-item.active {
                font-size: 0.85rem;
                padding: 0.3rem 0.6rem;
            }
        }

        @media (max-width: 768px) {
            .checkout-header-premium {
                height: 180px;
            }

            .checkout-titulo-principal {
                font-size: 1.8rem;
            }

            .checkout-subtitulo {
                font-size: 0.95rem;
            }

            .checkout-breadcrumb-premium {
                padding: 1rem 1.5rem;
                margin-bottom: 2rem;
            }

            .checkout-breadcrumb-premium .breadcrumb-item a,
            .checkout-breadcrumb-premium .breadcrumb-item.active {
                font-size: 0.88rem;
                padding: 0.3rem 0.6rem;
            }

            .checkout-breadcrumb-premium .breadcrumb-item + .breadcrumb-item::after {
                padding: 0 0.5rem;
                font-size: 1.1rem;
            }

            .checkout-pasos-container {
                padding: 1.2rem;
            }

            .checkout-seccion-formulario {
                padding: 1rem;
            }

            .checkout-metodo-card {
                flex-direction: column;
                text-align: center;
                gap: 0.8rem;
            }

            .checkout-tarjeta-visual {
                min-height: 120px;
            }
        }

        @media (max-width: 576px) {
            .container-py {
                padding: 0 10px;
            }

            .py-5 {
                padding: 2rem 0;
            }

            .checkout-header-premium {
                height: 160px;
            }

            .checkout-titulo-principal {
                font-size: 1.6rem;
            }

            .checkout-breadcrumb-premium {
                padding: 0.8rem 1rem;
                margin-bottom: 1.5rem;
            }

            .checkout-breadcrumb-premium .breadcrumb-item a,
            .checkout-breadcrumb-premium .breadcrumb-item.active {
                font-size: 0.8rem;
                padding: 0.25rem 0.5rem;
            }

            .checkout-breadcrumb-premium .breadcrumb-item a i,
            .checkout-breadcrumb-premium .breadcrumb-item.active i {
                font-size: 0.75rem;
                margin-right: 0.25rem !important;
            }

            .checkout-breadcrumb-premium .breadcrumb-item + .breadcrumb-item::after {
                padding: 0 0.4rem;
                font-size: 1rem;
            }

            .checkout-pasos-container {
                padding: 1rem;
            }

            .checkout-seccion-formulario {
                padding: 0.8rem;
            }

            .checkout-producto-item {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 0.8rem;
            }

            .checkout-producto-imagen {
                width: 65px;
                height: 65px;
            }

            .checkout-card-body-premium {
                padding: 1rem;
            }

            .checkout-input-premium {
                font-size: 14px;
                padding: 0.7rem 0.9rem;
            }

            .checkout-label-premium {
                font-size: 0.9rem;
            }

            /* Simplificar breadcrumbs aún más en móviles */
            .checkout-breadcrumb-premium {
                padding: 0.6rem 0.8rem;
                margin-bottom: 1rem;
            }

            /* Ocultar breadcrumbs intermedios, solo mostrar inicio y actual */
            .checkout-breadcrumb-premium .breadcrumb-item:not(:first-child):not(:last-child) {
                display: none;
            }

            /* Ajustar separador cuando hay items ocultos */
            .checkout-breadcrumb-premium .breadcrumb-item:first-child + .breadcrumb-item::after {
                content: '...' !important;
            }
        }

        /* Móviles extra pequeños - Breadcrumb ultra compacto */
        @media (max-width: 400px) {
            .checkout-breadcrumb-premium {
                padding: 0.5rem 0.7rem;
            }

            /* Solo mostrar el breadcrumb actual */
            .checkout-breadcrumb-premium .breadcrumb-item:not(:last-child) {
                display: none;
            }

            .checkout-breadcrumb-premium .breadcrumb-item + .breadcrumb-item::after {
                display: none !important;
            }
        }

        /* ============================================
           UTILIDADES PREMIUM
        ============================================ */
        .checkout-fade-in {
            opacity: 0;
            animation: checkoutFadeInUp 0.6s ease-out forwards;
        }

        .checkout-delay-1 { animation-delay: 0.1s; }
        .checkout-delay-2 { animation-delay: 0.2s; }
        .checkout-delay-3 { animation-delay: 0.3s; }
        .checkout-delay-4 { animation-delay: 0.4s; }
        .checkout-delay-5 { animation-delay: 0.5s; }

        /* ============================================
           ACCESIBILIDAD PREMIUM
        ============================================ */
        .checkout-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;
        }

        *:focus {
            outline: 3px solid var(--checkout-color-secundario);
            outline-offset: 2px;
        }
        
        /* ============================================
           ESTILOS PARA MAPA DE DIRECCIÓN
        ============================================ */
        .checkout-map-container {
            margin-top: 1rem;
            margin-bottom: 1.5rem;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--checkout-sombra-media);
            border: 2px solid rgba(212, 175, 55, 0.2);
            position: relative;
        }

        #mapa-direccion {
            height: 350px;
            width: 100%;
            min-height: 350px;
            position: relative;
            z-index: 1;
        }

        /* Responsive para mapa - Tablets */
        @media (max-width: 768px) {
            #mapa-direccion {
                height: 300px;
                min-height: 300px;
            }

            .checkout-map-container {
                border-radius: 10px;
            }
        }

        /* Responsive para mapa - Móviles */
        @media (max-width: 576px) {
            #mapa-direccion {
                height: 280px;
                min-height: 280px;
            }

            .checkout-map-container {
                border-radius: 8px;
                margin-top: 0.8rem;
                margin-bottom: 1.2rem;
            }
        }

        /* Asegurar que los tiles del mapa se carguen correctamente */
        .leaflet-container {
            background: #f8f9fa !important;
        }

        .leaflet-tile-container {
            will-change: transform;
        }

        .leaflet-tile {
            max-width: none !important;
        }

        /* Mejorar controles de Leaflet para móviles */
        .leaflet-control-zoom a {
            width: 30px;
            height: 30px;
            line-height: 30px;
            font-size: 18px;
        }

        /* Responsive para controles de Leaflet - Móviles */
        @media (max-width: 576px) {
            .leaflet-control-zoom a {
                width: 36px;
                height: 36px;
                line-height: 36px;
                font-size: 20px;
            }

            .leaflet-control-zoom {
                margin-top: 10px;
                margin-right: 10px;
            }

            .leaflet-control-attribution {
                font-size: 9px;
                padding: 2px 4px;
            }

            /* Hacer los popups más legibles en móviles */
            .leaflet-popup-content {
                font-size: 13px;
                line-height: 1.4;
                margin: 10px 12px;
            }

            .leaflet-popup-content-wrapper {
                border-radius: 6px;
            }
        }

        .map-search-container {
            position: relative;
            margin-bottom: 1rem;
            display: flex;
            gap: 10px;
            align-items: stretch;
            flex-wrap: wrap;
        }

        .map-search-input {
            flex: 1;
            min-width: 200px;
            padding: 12px 15px;
            border: 2px solid rgba(212, 175, 55, 0.3);
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .map-search-input:focus {
            outline: none;
            border-color: var(--checkout-color-secundario);
            box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
        }

        .map-search-btn {
            background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 14px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
            flex-shrink: 0;
        }

        .map-search-btn:hover {
            background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
        }

        .map-search-btn:active {
            transform: translateY(0);
        }

        .map-gps-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .map-gps-btn:hover {
            background: linear-gradient(135deg, #218838 0%, #1aa179 100%);
            box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
            transform: translateY(-2px);
        }

        .map-gps-btn:active {
            transform: translateY(0);
        }

        .map-gps-btn i {
            font-size: 16px;
        }

        /* Responsive para contenedor de búsqueda - Tablets */
        @media (max-width: 768px) {
            .map-search-container {
                gap: 8px;
            }

            .map-search-input {
                width: 100%;
                min-width: 100%;
            }

            .map-search-btn,
            .map-gps-btn {
                flex: 1;
                padding: 12px 16px;
                font-size: 13px;
            }

            .map-search-btn i,
            .map-gps-btn i {
                font-size: 14px;
            }
        }

        /* Responsive para contenedor de búsqueda - Móviles */
        @media (max-width: 576px) {
            .map-search-container {
                gap: 8px;
            }

            .map-search-input {
                width: 100%;
                font-size: 13px;
                padding: 10px 12px;
            }

            .map-search-btn,
            .map-gps-btn {
                flex: 1;
                padding: 10px 12px;
                font-size: 12px;
                gap: 6px;
            }

            /* Ocultar texto en botones en móviles muy pequeños, solo mostrar íconos */
            .map-search-btn span,
            .map-gps-btn span {
                display: none;
            }

            .map-search-btn i,
            .map-gps-btn i {
                font-size: 16px;
                margin: 0;
            }
        }

        /* Móviles extra pequeños - Botones apilados verticalmente si es necesario */
        @media (max-width: 400px) {
            .map-search-container {
                flex-direction: column;
            }

            .map-search-input {
                width: 100%;
            }

            .map-search-btn,
            .map-gps-btn {
                width: 100%;
                justify-content: center;
            }

            /* Mostrar texto nuevamente cuando están apilados */
            .map-search-btn span,
            .map-gps-btn span {
                display: inline;
            }
        }

        .leaflet-popup-content-wrapper {
            border-radius: 8px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        }

        /* Hint overlay sobre el mapa */
        .map-hint-overlay {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(255, 255, 255, 0.95);
            padding: 8px 12px;
            border-radius: 6px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            font-size: 12px;
            font-weight: 600;
            color: #007bff;
            z-index: 1000;
            pointer-events: none;
            display: flex;
            align-items: center;
            gap: 6px;
            max-width: calc(100% - 20px);
        }

        .map-hint-overlay i {
            flex-shrink: 0;
        }

        .map-hint-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Responsive para hint del mapa - Tablets */
        @media (max-width: 768px) {
            .map-hint-overlay {
                font-size: 11px;
                padding: 6px 10px;
            }
        }

        /* Responsive para hint del mapa - Móviles */
        @media (max-width: 576px) {
            .map-hint-overlay {
                font-size: 10px;
                padding: 6px 8px;
                top: 8px;
                left: 8px;
                max-width: calc(100% - 16px);
            }

            .map-hint-text {
                display: none;
            }

            /* Solo mostrar el ícono en móviles pequeños */
            .map-hint-overlay i {
                font-size: 14px;
            }

            .map-hint-overlay::after {
                content: 'Toca aquí';
                margin-left: 4px;
                white-space: nowrap;
            }
        }

        /* Móviles extra pequeños - mensaje más corto */
        @media (max-width: 400px) {
            .map-hint-overlay::after {
                content: '';
            }
        }

        /* Instrucciones del mapa */
        .map-instructions {
            background: #e7f3ff;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 15px;
            border-left: 4px solid #007bff;
        }

        .map-instructions-title {
            color: #007bff;
            display: block;
            margin-bottom: 8px;
            font-size: 14px;
        }

        .map-instructions-title i {
            margin-right: 6px;
        }

        .map-instructions-list {
            margin: 8px 0 0 0;
            padding-left: 20px;
            font-size: 13px;
            line-height: 1.8;
        }

        .map-instructions-list li {
            margin-bottom: 4px;
        }

        /* Responsive para instrucciones del mapa - Tablets */
        @media (max-width: 768px) {
            .map-instructions {
                padding: 10px;
                margin-bottom: 12px;
            }

            .map-instructions-title {
                font-size: 13px;
            }

            .map-instructions-list {
                font-size: 12px;
                line-height: 1.6;
                padding-left: 18px;
            }
        }

        /* Responsive para instrucciones del mapa - Móviles */
        @media (max-width: 576px) {
            .map-instructions {
                padding: 10px;
                margin-bottom: 12px;
                border-radius: 6px;
            }

            .map-instructions-title {
                font-size: 12px;
            }

            .map-instructions-list {
                font-size: 11px;
                line-height: 1.5;
                padding-left: 16px;
            }

            .map-instructions-list li {
                margin-bottom: 6px;
            }
        }

        /* Móviles extra pequeños - Versión compacta */
        @media (max-width: 400px) {
            .map-instructions {
                padding: 8px 10px;
            }

            .map-instructions-title {
                font-size: 11px;
            }

            .map-instructions-list {
                font-size: 10px;
                padding-left: 14px;
            }
        }

        /* ============================================
           ESTILOS PARA FOTO DE DIRECCIÓN
        ============================================ */
        .foto-direccion-container {
            margin-top: 1rem;
        }

        .foto-direccion-preview {
            margin-top: 1rem;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--checkout-sombra-media);
            border: 2px solid rgba(212, 175, 55, 0.2);
            max-height: 300px;
            display: none;
        }

        .foto-direccion-preview.active {
            display: block;
        }

        .foto-direccion-preview img {
            width: 100%;
            height: auto;
            display: block;
        }

        .foto-direccion-input-wrapper {
            position: relative;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .foto-direccion-btn {
            flex: 1;
            padding: 12px 20px;
            background: linear-gradient(135deg, var(--checkout-color-secundario), var(--checkout-color-acento));
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .foto-direccion-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
        }

        .foto-direccion-btn i {
            font-size: 18px;
        }

        .foto-direccion-input {
            display: none;
        }

        .foto-remove-btn {
            padding: 12px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: none;
        }

        .foto-remove-btn.active {
            display: block;
        }

        .foto-remove-btn:hover {
            background: #c82333;
            transform: translateY(-2px);
        }

        .foto-direccion-label {
            display: block;
            font-size: 13px;
            color: var(--checkout-color-texto-secundario);
            margin-top: 8px;
            font-style: italic;
        }

        /* Responsive para foto de dirección - Tablets */
        @media (max-width: 768px) {
            .foto-direccion-btn {
                padding: 10px 18px;
                font-size: 14px;
            }

            .foto-direccion-btn i {
                font-size: 16px;
            }

            .foto-direccion-preview {
                max-height: 250px;
            }
        }

        /* Responsive para foto de dirección - Móviles */
        @media (max-width: 576px) {
            .foto-direccion-input-wrapper {
                flex-direction: column;
                gap: 8px;
            }

            .foto-direccion-btn {
                width: 100%;
                padding: 12px 20px;
                font-size: 14px;
            }

            .foto-remove-btn {
                width: 100%;
                padding: 12px 20px;
            }

            .foto-direccion-preview {
                max-height: 200px;
                border-radius: 10px;
            }

            .foto-direccion-label {
                font-size: 12px;
            }
        }

        /* Móviles extra pequeños */
        @media (max-width: 400px) {
            .foto-direccion-btn {
                padding: 10px 16px;
                font-size: 13px;
            }

            .foto-direccion-btn i {
                font-size: 14px;
            }
        }

        /* ============================================
           ESTILOS PERSONALIZADOS PARA SWEETALERT2
        ============================================ */
        .swal2-popup {
            border-radius: 16px;
            font-family: 'Inter', sans-serif;
            box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
        }

        .swal2-title {
            font-family: 'Playfair Display', serif;
            color: var(--checkout-color-primario);
            font-weight: 600;
        }

        .swal2-html-container {
            color: var(--checkout-color-texto-secundario);
            font-size: 15px;
        }

        .swal2-confirm {
            background: linear-gradient(135deg, var(--checkout-color-secundario), var(--checkout-color-acento)) !important;
            border: none !important;
            border-radius: 8px !important;
            padding: 12px 30px !important;
            font-weight: 600 !important;
            box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3) !important;
            transition: all 0.3s ease !important;
        }

        .swal2-confirm:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4) !important;
        }

        .swal2-cancel {
            background: #6c757d !important;
            border: none !important;
            border-radius: 8px !important;
            padding: 12px 30px !important;
            font-weight: 600 !important;
        }

        .swal2-icon.swal2-success {
            border-color: var(--checkout-color-secundario) !important;
        }

        .swal2-icon.swal2-success [class^='swal2-success-line'] {
            background-color: var(--checkout-color-secundario) !important;
        }

        .swal2-icon.swal2-success .swal2-success-ring {
            border-color: rgba(212, 175, 55, 0.3) !important;
        }

        .swal2-icon.swal2-error {
            border-color: #dc3545 !important;
        }

        .swal2-icon.swal2-warning {
            border-color: #ffc107 !important;
            color: #ffc107 !important;
        }

        .swal2-icon.swal2-info {
            border-color: #17a2b8 !important;
            color: #17a2b8 !important;
        }

        /* Responsive fixes: Mobile-first form / inputs / previews */
        .checkout-container,
        form#formNiubizTarjeta,
        .form-row, .form-group {
            width: 100%;
            box-sizing: border-box;
        }

        /* Inputs full width and readable on small screens */
        #formNiubizTarjeta input,
        #formNiubizTarjeta textarea,
        #formNiubizTarjeta select {
            width: 100% !important;
            max-width: 100% !important;
        }

        /* Foto preview responsive */
        #foto-direccion-preview {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 8px 0;
        }

        /* Ajuste específico para botones */
        .btn {
            width: 100%;
            margin-bottom: 8px;
        }

        /* Breakpoint para móviles más pequeños */
        @media (min-width: 576px) {
            .btn-responsive-row {
                display: flex;
                gap: 8px;
            }
            .btn-responsive-row .btn {
                width: auto;
                flex: 1;
            }
        }

        @media (max-width: 420px) {
            .checkout-container { padding: 12px; }
            .form-label { font-size: 14px; }
        }

        /* ============================================
           UTILIDADES DE DISPLAY
        ============================================ */
        .d-none {
            display: none !important;
        }
        
        .text-center {
            text-align: center !important;
        }
        
        .mb-4 {
            margin-bottom: 1.5rem !important;
        }

        /* ============================================
           ESTILOS PARA FORMULARIOS Y BOTONES
        ============================================ */
        .btn-outline-primary {
            color: #0d6efd;
            border-color: #0d6efd;
        }
        
        .btn-sm {
            padding: 0.25rem 0.5rem;
            font-size: 0.875rem;
            border-radius: 0.2rem;
        }
        
        .alert {
            position: relative;
            padding: 1rem 1rem;
            margin-bottom: 1rem;
            border: 1px solid transparent;
            border-radius: 0.25rem;
        }
        
        .alert-info {
            color: #055160;
            background-color: #cff4fc;
            border-color: #b6effb;
        }
        
        .alert-heading {
            color: inherit;
            font-size: 1.1rem;
        }
        
        hr {
            margin: 1rem 0;
            color: inherit;
            background-color: currentColor;
            border: 0;
            opacity: 0.25;
        }
        
        .form-check {
            display: block;
            min-height: 1.5rem;
            padding-left: 1.5em;
            margin-bottom: 0.125rem;
        }
        
        .form-check-input {
            width: 1em;
            height: 1em;
            margin-top: 0.25em;
            vertical-align: top;
            background-color: #fff;
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            border: 1px solid rgba(0, 0, 0, 0.25);
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            -webkit-print-color-adjust: exact;
            color-adjust: exact;
            cursor: pointer;
            flex-shrink: 0;
        }

        .form-check-input:checked {
            background-color: var(--checkout-color-secundario);
            border-color: var(--checkout-color-secundario);
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
        }

        .form-check-input:hover {
            border-color: var(--checkout-color-secundario);
        }

        .form-check-input:focus {
            border-color: var(--checkout-color-secundario);
            outline: 0;
            box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
        }

        .form-check-label {
            cursor: pointer;
        }
        
        .btn-close {
            box-sizing: content-box;
            width: 1em;
            height: 1em;
            padding: 0.25em 0.25em;
            color: #000;
            background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
            border: 0;
            border-radius: 0.25rem;
            opacity: 0.5;
        }
        
        .btn-close-white {
            filter: invert(1) grayscale(100%) brightness(200%);
        }
        
        .modal-footer {
            display: flex;
            flex-wrap: wrap;
            flex-shrink: 0;
            align-items: center;
            justify-content: flex-end;
            padding: 0.75rem;
            border-top: 1px solid #dee2e6;
            border-bottom-right-radius: calc(0.3rem - 1px);
            border-bottom-left-radius: calc(0.3rem - 1px);
        }
        
        .btn {
            display: inline-block;
            font-weight: 400;
            line-height: 1.5;
            color: #212529;
            text-align: center;
            text-decoration: none;
            vertical-align: middle;
            cursor: pointer;
            -webkit-user-select: none;
            -moz-user-select: none;
            user-select: none;
            background-color: transparent;
            border: 1px solid transparent;
            padding: 0.375rem 0.75rem;
            font-size: 1rem;
            border-radius: 0.25rem;
            transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }
        
        .btn-secondary {
            color: #fff;
            background-color: #6c757d;
            border-color: #6c757d;
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        #btn-cerrar-modal:hover {
            background: #f5f5f5;
            color: #333;
        }

        #niubiz-numero-tarjeta:focus,
        #niubiz-nombre-tarjeta:focus,
        #niubiz-vencimiento:focus,
        #niubiz-cvv:focus,
        #niubiz-email-tarjeta:focus {
            border-color: #0033A0;
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 51, 160, 0.15);
        }
