/* ==========================================================================
   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;
}








