/* ==========================================================================
   UBD MODERN - ECOSISTEMA APPLE MIDNIGHT (FULL SITE UNIFICADO)
   ========================================================================== */

/* 1. BASE Y TIPOGRAFÍA GLOBAL */
html body, html body #main, html body #wrapper {
    background-color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    color: #1d1d1f !important;
    -webkit-font-smoothing: antialiased;
}

/* 2. HEADER PREMIUM (CRISTAL & FLOTACIÓN) */
html body #header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03) !important;
}

html body .search-widget form input[type=text] {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 50px !important;
    padding-left: 20px !important;
    height: 42px !important;
}

/* 3. BOTONES: NARANJA UBD (FUERZA TOTAL) */
html body .btn-primary, 
html body .continue,
html body [name="confirmDeliveryOption"],
html body #payment-confirmation button,
html body .checkout.cart-detailed-actions .btn-primary,
html body .cart-grid-body .btn-primary,
html body .btn-secondary,
html body .form-control-submit {
    background-color: #FF9800 !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    height: 52px !important;
    text-transform: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 30px !important;
    color: #ffffff !important;
}

html body .label.btn-unstyle, html body a.label.btn-unstyle {
    display: inline-block !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
    font-weight: 600 !important;
}

/* 4. SECCIONES DE CONFIANZA Y SEO (APPLE CARDS) */
html body #index .tvcms-service-section, 
html body #index .tvcms-service-area,
html body #index .tvcms-html-block, 
html body #index .custom-text {
    width: 96% !important;
    max-width: 1400px !important;
    margin: 40px auto !important;
    border-radius: 28px !important;
    border: 1px solid #d2d2d7 !important;
    background-color: #f5f5f7 !important;
    padding: 50px 20px !important;
}

/* 5. HOME (INDEX): BANNERS */
html body #index .tv-slider-content-wrapper img, 
html body #index .tvcms-sample-banner img,
html body #index .tv-main-slider img {
    border-radius: 28px !important;
}

/* 6. LOGIN, CARRITO Y CHECKOUT (iOS STYLE) */
html body#authentication #content, 
html body#checkout, 
html body#cart { background-color: #f5f5f7 !important; }

html body .checkout-step, 
html body #cart-summary,
html body .cart-grid-body,
html body .cart-summary,
html body #customer-form,
html body .login-form {
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid #d2d2d7 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    padding: 35px !important;
    margin-bottom: 25px !important;
}

/* 7. INPUTS: Estilo iOS */
html body .form-control {
    background: #fbfbfd !important;
    border: 1px solid #d2d2d7 !important;
    border-radius: 12px !important;
    height: 52px !important;
}

/* 8. OCULTAR RUIDO VISUAL THEMEVOLTY */
.tvtheme-layout-wrapper, .tvtheme-control-wrapper, .tv-theme-settings-wrapper, .tvcms-loading-overlay {
    display: none !important;
}


/* 9. CORRECCIÓN: PRODUCTOS (Fondo Blanco) */
html body .product-miniature, 
html body .tvall-product-wrapper {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important; /* Fondo blanco */
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    border: 1px solid #f0f0f0 !important; /* Borde sutil en lugar de negro */
    margin-bottom: 20px;
}

html body .product-miniature .thumbnail-container,
html body .tvall-product-image {
    position: relative !important;
    background: #ffffff !important; 
    order: 1 !important;
}

html body .product-miniature img {
    border-radius: 24px 24px 0 0 !important;
    width: 100% !important;
    transition: transform 0.5s ease !important;
}

html body .product-miniature:hover img {
    transform: scale(1.05);
}

/* Bloque de texto Blanco */
html body .product-miniature .product-description, 
html body .product-miniature .tvproduct-info,
html body .tvall-product-info {
    position: relative !important;
    background: #ffffff !important; /* Fondo blanco sólido */
    padding: 20px 15px !important;
    order: 2 !important;
    text-align: center !important;
}

html body .tvall-product-name a {
    font-size: 0.95rem !important;
    color: #222222 !important; /* Texto oscuro para que se lea */
    font-weight: 500 !important;
    display: block !important;
    margin-bottom: 8px !important;
    text-decoration: none !important;
}

html body .tvall-product-price {
    color: #28a745 !important; /* Tu color verde */
    font-weight: 700 !important;
    font-size: 1.3rem !important;
    display: block !important;
}
/* =========================================================
   REDONDEO ESPECÍFICO PÁGINA DE CARRITO (UBD MODERN)
   ========================================================= */

/* 1. Botones principales ("Ir A La Caja" y "Seguir Comprando") */
html body#cart .cart-summary .btn,
html body#cart .cart-detailed-actions .btn,
html body#cart .card-block .btn,
html body#cart a.label {
    border-radius: 50px !important;
}

/* 2. Selector de Cantidad (Input central y botones + / -) */
html body#cart .bootstrap-touchspin,
html body#cart .bootstrap-touchspin .input-group,
html body#cart input.js-cart-line-product-quantity,
html body#cart .bootstrap-touchspin .btn-touchspin,
html body#cart .bootstrap-touchspin .input-group-btn .btn {
    border-radius: 12px !important;
}

/* Redondear específicamente las esquinas exteriores del selector */
html body#cart .input-group > .input-group-prepend > .btn {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}
html body#cart .input-group > .input-group-append > .btn {
    border-top-right-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

/* 3. Campo de Cupón de Descuento (si alguien lo despliega) */
html body#cart .promo-code input.promo-input,
html body#cart .cart-voucher input[type="text"] {
    border-radius: 12px !important;
}

/* 4. Botón de basura (Eliminar artículo) */
html body#cart .remove-from-cart {
    border-radius: 12px !important;
}
/* DISEÑO MODERNO PÁGINA CONFIRMACIÓN */
.ubd-modern-layout .ubd-card {
    background: #ffffff !important;
    border-radius: 22px !important;
    border: 1px solid #d2d2d7 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
}

.ubd-confirmation-header {
    background: #f5f5f7 !important;
    border: none !important;
    border-radius: 28px !important;
    margin-top: 20px !important;
}

.ubd-confirmation-header .done {
    color: #28a745 !important;
    font-size: 3rem !important;
    display: block;
    margin-bottom: 10px;
}

/* POP-UP ACTUALIZADO */
.ubd-popup-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 100000;
}

.ubd-popup-content {
    background: #fff;
    padding: 40px;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.ubd-btn-whatsapp {
    background: #25D366;
    color: #fff !important;
    padding: 15px 30px;
    border-radius: 50px;
    display: block;
    text-decoration: none;
    font-weight: bold;
    margin: 20px 0 10px;
}

/* NOTA EN LETRAS PEQUEÑAS */
.ubd-popup-note {
    font-size: 0.75rem !important;
    color: #888 !important;
    margin-top: 15px;
    font-style: italic;
}


/* ==========================================================================
   UBD MODERN - HERO, SLIDER, DEGRADADO Y COMPONENTES (UNIFICADO)
   ========================================================================== */

:root {
    --ubd-max-w: 1400px;
    --ubd-orange: #E65100;
}

/* 1. Header Moderno (Efecto Glassmorphism) */
#header {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    position: sticky; top: 0; z-index: 1000;
}
#header .menu-item a, .top-menu a {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700 !important; font-size: 13px !important;
    letter-spacing: 0.3px; text-transform: uppercase;
}

/* 2. Contenedor Maestro */
.ubd-content-max-width {
    width: 100%; max-width: var(--ubd-max-w);
    margin: 0 auto; padding: 0 20px; box-sizing: border-box;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* 3. Hero Banner & Slider */
.ubd-hero-section { margin: 20px 0 40px 0; }
.ubd-hero-wrapper { 
    width: 100%; line-height: 0; overflow: hidden; position: relative;
    border-radius: clamp(20px, 2.5vw, 32px);
    background: transparent; /* Fondo transparente para que el degradado funda con la página */
    box-shadow: none !important; /* Quitamos la sombra que marcaba el borde */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.ubd-hero-wrapper img { width: 100%; height: auto; display: block; }

@media (min-width: 1024px) {
    .ubd-hero-wrapper:hover { transform: scale(1.015); box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
}

/* Slider - Degradado suave integrado al fondo */
.ubd-main-slider { display: flex; width: 100%; position: relative; }
.ubd-slide { display: none; width: 100%; position: relative; animation: ubdFadeIn 0.8s ease; }
.ubd-slide.active { display: block; }

.ubd-slide a {
    display: block;
    position: relative;
    line-height: 0;
    /* Quitamos cualquier sombra o borde del contenedor de la imagen */
    box-shadow: none !important;
    border: none !important;
}

.ubd-slide a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13%;
    pointer-events: none;
    z-index: 2;
    /* Degradado que va del blanco puro a transparente. 
       Al ser el fondo blanco, esto creará el efecto de desvanecido */
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

/* FLECHAS DE NAVEGACIÓN */
.ubd-slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff; width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; opacity: 0; transition: 0.4s; outline: none;
}
.ubd-hero-wrapper:hover .ubd-slider-btn { opacity: 1; }
.ubd-slider-btn:hover { background: #fff; color: #000; transform: translateY(-50%) scale(1.1); }
.ubd-btn-prev { left: 20px; } 
.ubd-btn-next { right: 20px; }

.ubd-slider-btn::after {
    content: ''; width: 12px; height: 12px; border-top: 2px solid currentColor;
    border-right: 2px solid currentColor; display: inline-block;
}
.ubd-btn-prev::after { transform: rotate(-135deg); margin-left: 4px; }
.ubd-btn-next::after { transform: rotate(45deg); margin-right: 4px; }

/* DOTS */
.ubd-slider-dots {
    position: absolute; bottom: 20px; width: 100%;
    display: flex; justify-content: center; gap: 8px; z-index: 5;
}
.ubd-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.4); border-radius: 50%; transition: 0.3s; cursor: pointer; }
.ubd-dot.active { background: #fff; width: 25px; border-radius: 10px; }

/* Skeleton y Animaciones */
@keyframes ubdPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.ubd-skeleton-card { 
    flex: 0 0 clamp(160px, 15vw, 220px); height: 250px; 
    background: #f0f0f2; border-radius: 28px; animation: ubdPulse 1.5s infinite; 
}

@media (max-width: 767px) {
    .ubd-content-max-width { padding: 0 15px; }
    .ubd-hero-section { margin-bottom: 25px; }
    .ubd-slider-btn { display: none; }
}
@keyframes ubdFadeIn { from { opacity: 0.5; } to { opacity: 1; } }

/* Botón Premium Flow */
.ubd-btn-premium-flow { position: relative; display: inline-block; padding: 4px; border-radius: 60px; overflow: hidden; background: rgba(0,0,0,0.05); transition: 0.3s; }
.ubd-btn-flow-content { display: flex; align-items: center; gap: 15px; background: #fff; padding: 16px 30px; border-radius: 56px; }
.ubd-btn-flow-border { 
    position: absolute; top: 0; left: 0; width: 200%; height: 100%; z-index: 1;
    background: linear-gradient(to right, #E65100, #E040FB, #E65100);
    background-size: 50% 100%; animation: borderSlidePulse 4s linear infinite; filter: blur(10px); opacity: 0.6; 
}
@keyframes borderSlidePulse { 0% { transform: translateX(-100%); } 50% { transform: translateX(0%); } 100% { transform: translateX(100%); } }



