/* ===== COLORES PRINCIPALES ===== */
:root {
    --primary-purple: #6B3DBB;
    --dark-purple: #1a0728;
    --medium-purple: #28081f;
    --accent-purple: #8427D6;
    --text-dark: #333333;
    --text-gray: #4b5563;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --border-light: #e5e7eb;
}

/* ===== FONDO PRINCIPAL ===== */
.primary-bg-color {
    background: #ffffff;
}

/* ===== HEADER ===== */
.header {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(107, 61, 187, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1000;
}

.navbar {
    background: transparent !important;
    position: relative;
    z-index: 1001;
}

.navbar-brand img {
    filter: brightness(0.95);
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    filter: brightness(0.8);
    transform: scale(1.05);
}

/* ===== MENÚ DE NAVEGACIÓN ===== */
#nav .nav-link,
#nav a.pr-4 {
    color: var(--text-dark) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

#nav .nav-link:hover,
#nav a.pr-4:hover {
    color: var(--primary-purple) !important;
}

#nav a.pr-4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
}

#nav a.pr-4:hover::after {
    width: 100%;
}

/* Ocultar Announcements */
#Primary_Navbar-Announcements,
#Secondary_Sidebar-Support-Announcements {
    display: none !important;
}

/* ===== DROPDOWN MENUS - SOLUCIÓN Z-INDEX ===== */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(107, 61, 187, 0.2);
    border-top: 3px solid var(--primary-purple);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(107, 61, 187, 0.25), 
                0 2px 8px rgba(0, 0, 0, 0.1);
    position: absolute !important;
    z-index: 9999 !important;
    margin-top: 0 !important;
}

.dropdown {
    position: relative;
    z-index: 1002;
}

.dropdown-item {
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 10px 20px !important;
}

.dropdown-item:hover {
    background: var(--accent-purple) !important;
    color: #ffffff !important;
    padding-left: 25px !important;
    transform: translateX(2px);
}

/* ===== BOTONES PRINCIPALES ===== */
.btn-primary {
    background: linear-gradient(135deg, #6B3DBB 0%, #8427D6 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 61, 187, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(107, 61, 187, 0.5);
}

.btn-success {
    background: linear-gradient(135deg, #6B3DBB 0%, #8427D6 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-success:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}

.btn-warning {
    color: var(--primary-purple) !important;
    background: transparent !important;
    border: 2px solid var(--accent-purple) !important;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: var(--accent-purple) !important;
    color: white !important;
    box-shadow: 0 0 20px rgba(132, 39, 214, 0.4);
    transform: translateY(-2px);
}

/* ===== TARJETAS (CARDS) ===== */
.card {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(107, 61, 187, 0.15);
    border-color: rgba(107, 61, 187, 0.3) !important;
}

.card-header {
    background: rgba(107, 61, 187, 0.05) !important;
    border-bottom: 1px solid var(--border-light) !important;
}

.card-footer {
    background: rgba(107, 61, 187, 0.03) !important;
    border-top: 1px solid var(--border-light) !important;
}

/* ===== SIDEBAR ===== */
.card-sidebar {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
}

.list-group-item {
    background: transparent !important;
    border-color: var(--border-light) !important;
    color: var(--text-dark) !important;
}

.list-group-item:hover {
    background: rgba(107, 61, 187, 0.05) !important;
    color: var(--primary-purple) !important;
}

.list-group-item.active {
    background: linear-gradient(135deg, #6B3DBB 0%, #8427D6 100%) !important;
    border-color: var(--primary-purple) !important;
    color: white !important;
}

/* ===== FORMULARIOS ===== */
.form-control {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-dark) !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #ffffff !important;
    border-color: var(--accent-purple) !important;
    box-shadow: 0 0 0 3px rgba(107, 61, 187, 0.1) !important;
    color: var(--text-dark) !important;
}

.form-control::placeholder {
    color: #9ca3af !important;
}

.input-group-text {
    background: rgba(107, 61, 187, 0.08) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--primary-purple) !important;
}

.form-control-label {
    color: var(--text-dark) !important;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-light) !important;
    border-top: 1px solid var(--border-light);
    padding: 40px 0;
}

.footer .nav-link {
    color: var(--text-gray) !important;
    transition: all 0.3s ease;
}

.footer .nav-link:hover {
    color: var(--primary-purple) !important;
}

.footer .btn {
    color: var(--text-dark) !important;
}

.copyright {
    color: var(--text-gray) !important;
    opacity: 0.9;
}

/* ===== TEXTOS ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark) !important;
}

p, span, label {
    color: var(--text-gray) !important;
}

.text-muted {
    color: #9ca3af !important;
}

/* ===== PRODUCTOS ===== */
.product {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
}

.product header span {
    color: var(--text-dark) !important;
    font-weight: 600;
}

.product-desc,
.product-desc p,
.product-desc ul,
.product-desc li {
    color: var(--text-gray) !important;
}

.product-pricing {
    color: var(--text-dark) !important;
}

.product-pricing .price {
    color: var(--primary-purple) !important;
    font-weight: 700;
}

/* ===== CARRITO ===== */
.cart-btn {
    position: relative;
    transition: all 0.3s ease;
    color: var(--text-dark) !important;
}

.cart-btn:hover {
    transform: scale(1.1);
    color: var(--primary-purple) !important;
}

.badge-info {
    background: var(--accent-purple) !important;
    color: white !important;
}

/* ===== DOMAIN SEARCH ===== */
#order-standard_cart .domain-selection-options .option {
    margin-bottom: 15px !important;
    padding: 15px 20px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    border: 2px solid var(--border-light) !important;
    transition: all 0.3s ease;
}

#order-standard_cart .domain-selection-options .option:hover {
    border-color: var(--accent-purple) !important;
    box-shadow: 0 4px 15px rgba(107, 61, 187, 0.15);
}

#order-standard_cart .domain-selection-options .option label {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    cursor: pointer;
    margin-bottom: 0;
}

#order-standard_cart .domain-selection-options .option input[type="radio"] {
    margin-right: 10px;
}

/* Input group text (www.) */
.domain-input-group .input-group-text {
    background: var(--accent-purple) !important;
    color: white !important;
    border: 1px solid var(--accent-purple) !important;
    font-weight: 600;
}

/* Texto estático www. */
.domain-input-group .form-control-static {
    color: var(--text-dark) !important;
    font-weight: 600;
}

.domain-price {
    color: var(--primary-purple) !important;
    font-weight: 600;
}

.secondary-cart-body > p,
.cart-body > p {
    color: var(--text-gray) !important;
}

/* ===== BÚSQUEDA ===== */
.search .form-control {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
}

.search .btn {
    background: var(--accent-purple) !important;
    border-color: var(--accent-purple) !important;
    transition: all 0.3s ease;
    color: white !important;
}

.search .btn:hover {
    background: #8427D6 !important;
    box-shadow: 0 0 15px rgba(132, 39, 214, 0.4);
}

/* ===== MODALES ===== */
.modal-content {
    background: #ffffff !important;
    border: 1px solid var(--border-light) !important;
    z-index: 10000 !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-light) !important;
    background: var(--bg-light) !important;
}

.modal-header .modal-title {
    color: var(--text-dark) !important;
}

.modal-body {
    color: var(--text-gray) !important;
}

.modal-footer {
    border-top: 1px solid var(--border-light) !important;
    background: var(--bg-light) !important;
}

/* ===== ALERTAS ===== */
.alert {
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

/* ===== BREADCRUMB ===== */
.master-breadcrumb {
    background: var(--bg-light) !important;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    background: transparent !important;
}

.breadcrumb-item {
    color: var(--text-gray) !important;
}

.breadcrumb-item.active {
    color: var(--primary-purple) !important;
}

.breadcrumb-item a {
    color: var(--text-gray) !important;
}

.breadcrumb-item a:hover {
    color: var(--primary-purple) !important;
}

/* ===== TOOLBAR ===== */
.toolbar .nav-link {
    color: var(--text-dark) !important;
}

.toolbar .nav-link:hover {
    color: var(--primary-purple) !important;
}

/* ===== SELECT Y OPCIONES ===== */
select.form-control {
    color: var(--text-dark) !important;
    background-color: #ffffff !important;
}

select.form-control option {
    color: var(--text-dark) !important;
    background-color: #ffffff !important;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .btn, .form-control {
    animation: fadeIn 0.5s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8427D6;
}

/* ===== HEADER DE PRODUCTOS ===== */
.header-lined h1 {
    color: var(--text-dark) !important;
}

/* ===== SUB-HEADINGS ===== */
.sub-heading {
    background: transparent !important;
    border-bottom: 2px solid var(--border-light);
    padding: 15px 0;
    margin: 30px 0 20px 0;
}

.sub-heading span {
    background: #ffffff !important;
    padding: 0 15px 0 0;
    color: var(--text-dark) !important;
    font-weight: 600;
    font-size: 18px;
}

/* ===== CHECKOUT SECTIONS ===== */
.marketing-email-optin {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
}

.marketing-email-optin h4 {
    color: var(--text-dark) !important;
    margin-bottom: 10px;
}

.marketing-email-optin p {
    color: var(--text-gray) !important;
}

.checkout-security-msg {
    background: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    color: #856404 !important;
    border-radius: 8px;
    margin-top: 20px;
}

.checkout-security-msg strong {
    color: #856404 !important;
}

/* ===== BOTONES DE RADIO ===== */
.radio-inline {
    color: var(--text-dark) !important;
    font-weight: 500;
}

.radio-inline input[type="radio"] {
    margin-right: 8px;
}

/* ===== ALERTAS ESPECÍFICAS ===== */
.alert-success {
    background: #d4edda !important;
    border-color: #c3e6cb !important;
    color: #155724 !important;
}

.alert-success strong {
    color: #155724 !important;
}

.alert-info {
    background: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

.alert-warning {
    background: #fff3cd !important;
    border-color: #ffc107 !important;
    color: #856404 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn-primary {
        padding: 10px 20px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

/* ===== FIXES ESPECÍFICOS PARA VISIBILIDAD ===== */
.panel-title,
.card-title {
    color: var(--text-dark) !important;
}

.sidebar-collapsed select {
    color: var(--text-dark) !important;
}

body {
    color: var(--text-gray) !important;
}

.order-summary {
    background-color: var(--primary-purple) !important;   
}



/* ===== ORDER SUMMARY - CORRECCIÓN COMPLETA ===== */
.order-summary {
    background: linear-gradient(135deg, #6B3DBB 0%, #8427D6 100%) !important;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(107, 61, 187, 0.3);
}

/* Header del Order Summary */
.order-summary h2,
.order-summary .font-size-30 {
    color: #ffffff !important;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Summary Container */
.order-summary .summary-container {
    color: #ffffff !important;
}

/* Subtotal Section */
.order-summary .subtotal {
    background: transparent !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.order-summary .subtotal span {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 16px;
    font-weight: 600;
}

/* Recurring Totals */
.order-summary .recurring-totals {
    background: transparent !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 15px;
}

.order-summary .recurring-totals span {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 500;
}

.order-summary .recurring-totals .pull-left,
.order-summary .recurring-totals .float-left {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 600;
}

.order-summary .recurring-charges,
.order-summary .recurring-charges span,
.order-summary .recurring-charges .cost {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 14px;
}

/* IDs específicos */
.order-summary #subtotal {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 700;
}

.order-summary #recurring {
    color: #ffffff !important;
    background: transparent !important;
}

.order-summary #recurringMonthly,
.order-summary #recurringAnnually,
.order-summary #recurringQuarterly,
.order-summary #recurringSemiAnnually,
.order-summary #recurringBiennially,
.order-summary #recurringTriennially {
    color: #ffffff !important;
    background: transparent !important;
}

.order-summary #recurringMonthly .cost,
.order-summary #recurringAnnually .cost {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 600;
}

/* Total Due Today */
.order-summary .total-due-today {
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.order-summary .total-due-today-padded {
    padding: 20px !important;
}

.order-summary #totalDueToday,
.order-summary .total-due-today .amt {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    display: block;
    margin-bottom: 8px;
}

.order-summary .total-due-today > span:not(.amt) {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Todos los span dentro de order-summary */
.order-summary span {
    background: transparent !important;
}

/* Float helpers */
.order-summary .pull-left,
.order-summary .float-left,
.order-summary .pull-right,
.order-summary .float-right {
    color: #ffffff !important;
    background: transparent !important;
}

/* Clearfix */
.order-summary .clearfix {
    background: transparent !important;
}

/* Botones */
.order-summary .btn-checkout,
.order-summary .btn-success {
    background: #ffffff !important;
    color: var(--primary-purple) !important;
    border: none !important;
    font-weight: 700;
    padding: 14px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.order-summary .btn-checkout:hover,
.order-summary .btn-success:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: var(--primary-purple) !important;
}

.order-summary .btn-continue-shopping,
.order-summary .btn-link {
    color: #ffffff !important;
    background: transparent !important;
    text-decoration: underline;
    opacity: 0.9;
    font-weight: 500;
}

.order-summary .btn-continue-shopping:hover,
.order-summary .btn-link:hover {
    opacity: 1;
    color: #ffffff !important;
    background: transparent !important;
}

/* Express Checkout Buttons */
.order-summary .express-checkout-buttons {
    background: transparent !important;
    margin: 15px 0;
}

/* Loader */
.order-summary .loader,
.order-summary #orderSummaryLoader {
    color: #ffffff !important;
    background: transparent !important;
}

.order-summary .loader i {
    color: #ffffff !important;
}

/* Text alignment helpers */
.order-summary .text-right {
    background: transparent !important;
}

/* Divisores */
.order-summary hr {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
}

/* Asegurar que NADA tenga fondo azul */
.order-summary * {
    background-color: transparent !important;
}

/* Excepciones para fondos específicos que SÍ queremos */
.order-summary {
    background: linear-gradient(135deg, #6B3DBB 0%, #8427D6 100%) !important;
}

.order-summary .total-due-today {
    background: rgba(255, 255, 255, 0.15) !important;
}

.order-summary .btn-checkout,
.order-summary .btn-success {
    background: #ffffff !important;
}


/* ===== EMPTY CART BUTTON ===== */
.empty-cart {
    background: transparent !important;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid var(--border-light);
}

#btnEmptyCart,
#btnEmptyCart.btn-link {
    color: var(--primary-purple) !important;
    background: transparent !important;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none !important;
    padding: 8px 15px;
    text-decoration: none !important;
}

#btnEmptyCart:hover {
    color: #ffffff !important;
    background: var(--primary-purple) !important;
    border-radius: 6px;
    text-decoration: none !important;
    transform: translateX(-3px);
}

#btnEmptyCart i {
    color: var(--primary-purple) !important;
    margin-right: 8px;
    transition: all 0.3s ease;
}

#btnEmptyCart:hover i {
    color: #ffffff !important;
}

#btnEmptyCart span {
    color: var(--primary-purple) !important;
    background: transparent !important;
    transition: all 0.3s ease;
}

#btnEmptyCart:hover span {
    color: #ffffff !important;
    background: transparent !important;
}

/* Asegurar que el btn-link no tenga estilos por defecto */
.btn-link.btn-xs {
    background: transparent !important;
    border: none !important;
}

/* Si hay otros botones btn-link en el cart */
.view-cart-items .btn-link,
.item .btn-link {
    color: var(--primary-purple) !important;
    background: transparent !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-cart-items .btn-link:hover,
.item .btn-link:hover {
    color: var(--accent-purple) !important;
    background: transparent !important;
    text-decoration: underline !important;
}

.view-cart-items .btn-link i,
.item .btn-link i {
    color: var(--primary-purple) !important;
    margin-right: 5px;
}

.view-cart-items .btn-link:hover i,
.item .btn-link:hover i {
    color: var(--accent-purple) !important;
}


/* ===== VIEW CART HEADER ===== */
.view-cart-items-header {
    background: linear-gradient(135deg, #6B3DBB 0%, #8427D6 100%) !important;
    border-bottom: none !important;
    padding: 15px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(107, 61, 187, 0.2);
}

.view-cart-items-header .row {
    background: transparent !important;
    margin: 0;
}

.view-cart-items-header .row > div {
    color: #ffffff !important;
    background: transparent !important;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-cart-items-header .col-sm-7,
.view-cart-items-header .col-xs-7,
.view-cart-items-header .col-7 {
    color: #ffffff !important;
    background: transparent !important;
}

.view-cart-items-header .col-sm-4,
.view-cart-items-header .col-xs-5,
.view-cart-items-header .col-5 {
    color: #ffffff !important;
    background: transparent !important;
}

.view-cart-items-header .text-right {
    background: transparent !important;
}