/* =========================================
   1. CONTENEDOR PRINCIPAL
   ========================================= */
.rs-domain-wrapper {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    max-width: 950px !important;
    margin: 0 auto !important;
    color: var(--rs-text) !important;
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

/* =========================================
   2. LA BARRA DE BÚSQUEDA (ESTILO PÍLDORA GIGANTE)
   ========================================= */
/* =========================================
   2. LA BARRA DE BÚSQUEDA (ESTILO PÍLDORA GIGANTE)
   ========================================= */
.rs-search-bar-container {
    background: #ffffff !important;
    padding: 8px 8px 8px 30px !important; /* Espacio asimétrico para acomodar el botón dentro */
    border-radius: 60px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    margin-bottom: 50px !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
    display: block !important;
}

.rs-search-bar-container:focus-within {
    border-color: var(--rs-btn) !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25) !important;
}

.rs-search-bar {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
}

/* Aplicado al buscador normal y al buscador WHOIS */
.rs-search-bar input#rs-domain-input,
.rs-search-bar input#rs-whois-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
    font-size: 22px !important;
    color: #333333 !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: auto !important;
    line-height: normal !important;
}

.rs-search-bar input#rs-domain-input::placeholder,
.rs-search-bar input#rs-whois-input::placeholder {
    color: #999999 !important;
    font-weight: 400 !important;
}

/* Aplicado al botón normal y al botón WHOIS */
.rs-search-bar button#rs-search-btn,
.rs-search-bar button#rs-whois-btn {
    background: var(--rs-btn) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 20px 50px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    height: auto !important;
    line-height: normal !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rs-search-bar button#rs-search-btn:hover,
.rs-search-bar button#rs-whois-btn:hover {
    transform: scale(0.97) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
}

.rs-search-bar button#rs-search-btn:disabled,
.rs-search-bar button#rs-whois-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* =========================================
   3. FILAS DE RESULTADOS
   ========================================= */
.rs-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 25px !important;
    background: #ffffff !important;
    color: #333333 !important;
    border-radius: 12px !important;
    margin-bottom: 15px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    border: 1px solid #eaeaea !important; /* NUEVO: LÍNEA GRIS */
}

.rs-main-header {
    margin-bottom: 15px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--rs-text) !important;
    text-align: center !important;
}

.rs-col-domain { 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    font-size: 22px !important; 
    font-weight: 700 !important; 
    flex: 1 !important; 
}
.is-available .rs-domain-name { color: #169b36 !important; }
.rs-icon-success { width: 30px !important; height: 30px !important; stroke: #169b36 !important; fill: none !important; stroke-width: 2 !important; }
.rs-icon-taken { width: 30px !important; height: 30px !important; stroke: #d32f2f !important; fill: none !important; stroke-width: 2 !important; }

/* =========================================
   4. BLOQUE DE PRECIOS
   ========================================= */
.rs-col-price { display: flex !important; align-items: center !important; gap: 15px !important; padding-right: 30px !important; }
.rs-price-col-inner { display: flex !important; flex-direction: column !important; align-items: flex-end !important; }
.rs-price-top { display: flex !important; align-items: center !important; gap: 10px !important; }

.rs-price-main { font-size: 26px !important; font-weight: 800 !important; color: #333 !important; }
.rs-price-crossed { font-size: 16px !important; color: #999 !important; text-decoration: line-through !important; font-weight: normal !important; }
.rs-price-renew { font-size: 14px !important; color: #777 !important; margin-top: 5px !important; }

.rs-price-tag.hot-price { 
    background: #ffebeb !important; 
    color: #d32f2f !important; 
    padding: 6px 12px !important; 
    border-radius: 6px !important; 
    font-size: 14px !important; 
    font-weight: bold !important; 
}

/* =========================================
   5. BOTONES DE ACCIÓN (Comprar / Transferir)
   ========================================= */
.rs-btn-add {
    background: var(--rs-btn) !important;
    color: #ffffff !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 16px !important;
    transition: 0.2s !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.rs-btn-add:hover { opacity: 0.9 !important; transform: translateY(-2px) !important; }

/* =========================================
   6. SUGERENCIAS Y ESTADOS DE CARGA
   ========================================= */
.rs-suggestions-title { 
    color: #000000 !important; 
    font-size: 18px !important; 
    margin: 40px 0 20px 0 !important; 
    font-weight: 700 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 1px !important; 
    display: flex !important; 
    align-items: center !important;
}

.rs-error-msg {
    color: #ff6b6b !important;
    font-size: 20px !important;
    text-align: center !important;
    padding: 20px !important;
    background: rgba(255,0,0,0.1) !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
}

.rs-spinner {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: rs-spin 1s ease-in-out infinite !important;
}
@keyframes rs-spin { to { transform: rotate(360deg); } }

/* =========================================
   7. STICKY CART (CARRITO FLOTANTE)
   ========================================= */
/* =========================================
   7. FLOATING BUBBLE & MODERN CART PANEL
   ========================================= */
#rs-cart-bubble {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: #ff4757 !important;
    color: #fff !important;
    width: 65px !important;
    height: 65px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4) !important;
    cursor: pointer !important;
    z-index: 999998 !important;
    transition: transform 0.3s ease !important;
}
#rs-cart-bubble:hover { transform: scale(1.1) !important; }
#rs-cart-bubble svg { width: 30px !important; height: 30px !important; }
#rs-bubble-count {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    background: #222 !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #fff !important;
}

#rs-cart-panel {
    position: fixed !important;
    bottom: 85px !important; 
    right: 30px !important;
    width: 350px !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2) !important;
    z-index: 999999 !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid #eaeaea !important;
}

.rs-cart-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.rs-cart-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #111 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
#rs-cart-badge {
    background: #ff4757 !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
#rs-cart-clear {
    background: none !important;
    border: none !important;
    color: #888 !important;
    font-size: 14px !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}
#rs-cart-clear:hover { color: #ff4757 !important; }
#rs-cart-close {
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    color: #555 !important;
    padding: 0 !important;
}
#rs-cart-close:hover { color: #ff4757 !important; }
#rs-cart-close svg { width: 24px !important; height: 24px !important; }

.rs-cart-currency {
    padding: 12px 20px !important;
    background: #f9f9f9 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 15px !important;
    color: #444 !important;
}

.rs-cart-items {
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 10px 20px !important;
    transition: opacity 0.3s ease !important;
}
.rs-cart-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
}
.rs-cart-item:last-child { border-bottom: none !important; }
.rs-cart-item-name {
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #111 !important;
}
.rs-cart-item-right {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}
.rs-cart-item-price { font-weight: 600 !important; color: #333 !important; font-size: 16px !important; }
.rs-item-remove {
    background: none !important;
    border: none !important;
    color: #ff4757 !important;
    cursor: pointer !important;
    padding: 0 !important;
    display: flex !important;
}
.rs-item-remove svg { width: 20px !important; height: 20px !important; }

.rs-cart-footer {
    padding: 25px 20px !important;
    background: #fdfdfd !important;
    border-top: 1px solid #eaeaea !important;
}
.rs-cart-total-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 18px !important;
    color: #444 !important;
    margin-bottom: 15px !important;
}
.rs-cart-total-row strong { font-size: 26px !important; color: #111 !important; }

.rs-btn-checkout {
    background: var(--rs-btn) !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    white-space: nowrap !important;
}
.rs-btn-checkout:hover { background: #e8414f !important; transform: translateY(-2px) !important; }
/* =========================================
   8. RESPONSIVE (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    .rs-search-bar-container { padding: 6px !important; border-radius: 40px !important; }
    .rs-search-bar { flex-direction: column !important; gap: 0 !important; }
    .rs-search-bar input#rs-domain-input { padding: 15px 20px !important; border-radius: 40px !important; text-align: center !important; }
    .rs-search-bar button#rs-search-btn { width: 100% !important; padding: 20px !important; border-radius: 40px !important; margin-top: 10px !important; }
    
    
    .rs-main-row {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 20px !important;
    }
    .rs-main-row .rs-col-domain { justify-content: center !important; width: 100% !important; }
    .rs-main-row .rs-col-price { justify-content: center !important; flex-direction: column !important; width: 100% !important; align-items: center !important; padding: 0 !important; }
    .rs-main-row .rs-price-col-inner { align-items: center !important; }
    .rs-main-row .rs-col-action { width: 100% !important; }
    .rs-main-row .rs-btn-add { width: 100% !important; justify-content: center !important; }
    
    
    .rs-row { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; padding: 20px !important; }
    .rs-col-domain { width: 100% !important; }
    .rs-col-price { width: 100% !important; justify-content: space-between !important; padding-right: 0 !important; flex-direction: row-reverse !important;}
    .rs-price-col-inner { align-items: flex-start !important; }
    .rs-col-action { width: 100% !important; }
    .rs-btn-add { width: 100% !important; justify-content: center !important; padding: 15px !important; }
    
    .rs-sticky-content { flex-direction: column !important; gap: 15px !important; text-align: center !important; }
    .rs-btn-checkout { width: 100% !important; }
}


#rs-cart-bubble { position: fixed; bottom: 30px; left: 30px; background: var(--rs-btn); color: white; padding: 15px; border-radius: 50%; box-shadow: 0 5px 15px rgba(0,0,0,0.3); cursor: pointer; z-index: 99999; transition: transform 0.2s; }
#rs-cart-bubble:hover { transform: scale(1.1); }
#rs-bubble-count { position: absolute; top: -5px; right: -5px; background: #333; color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; }
#rs-selected-ul { list-style: none; padding: 0; margin: 0; max-height: 200px; overflow-y: auto; }


/* =========================================
   9. MODO CLARO (theme="light")
   ========================================= */
.rs-theme-light .rs-row {
    border: 1px solid #eaeaea !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04) !important;
}

.rs-theme-light .rs-main-header {
    color: #222222 !important;
}

.rs-theme-light .rs-suggestions-title {
    color: #555555 !important;
}

.rs-theme-light .rs-search-bar-container {
    border: 1px solid #eaeaea !important;
}

/* Color del texto superior (título general) si es necesario */
.rs-theme-light {
    color: #333333 !important;
}

/* =========================================
   10. FILAS COMPACTAS (Sugerencias)
   ========================================= */
.rs-compact-row {
    padding: 12px 20px !important; /* Menos padding vertical */
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    display: grid !important;
    grid-template-columns: 1fr auto auto !important; /* Distribución perfecta en PC */
    align-items: center !important;
    gap: 15px !important;
}

.rs-icon-sm { width: 22px !important; height: 22px !important; }
.rs-domain-name-sm { font-size: 18px !important; font-weight: 700 !important; }
.rs-col-domain-sm { display: flex !important; align-items: center !important; gap: 10px !important; }

/* Precios en una sola línea */
.rs-price-inline { display: flex !important; align-items: center !important; gap: 8px !important; white-space: nowrap !important; }
.rs-price-main-sm { font-size: 18px !important; font-weight: 800 !important; color: #333 !important; }
.rs-price-renew-sm { font-size: 13px !important; color: #888 !important; font-weight: normal !important; }
.rs-badge-sm { padding: 3px 8px !important; font-size: 12px !important; }

/* Botón delgado */
.rs-btn-sm { padding: 8px 18px !important; font-size: 14px !important; border-radius: 6px !important; }

/* =========================================
   11. COMPACTO RESPONSIVO (Móviles)
   ========================================= */
@media (max-width: 768px) {
    .rs-compact-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 15px !important;
        gap: 10px !important;
    }
    .rs-col-price-sm, .rs-col-action-sm { width: 100% !important; }
    .rs-price-inline { flex-wrap: wrap !important; } /* Permitir que el texto de renovación baje si no cabe */
    .rs-btn-sm { width: 100% !important; }
}

/* =========================================
   12. TEMA CLARO RIGUROSO
   ========================================= */
/* Si el contenedor tiene rs-theme-light, forzamos los textos generales a gris/negro */
.rs-theme-light .rs-main-header,
.rs-theme-light .rs-suggestions-title,
.rs-theme-light {
    color: #333333 !important; 
}
.rs-theme-light #rs-sugg-spinner {
    border-top-color: #333333 !important;
    border-right-color: rgba(0,0,0,0.1) !important;
    border-bottom-color: rgba(0,0,0,0.1) !important;
    border-left-color: rgba(0,0,0,0.1) !important;
}
.rs-theme-light .rs-search-bar-container {
    border: 1px solid #ddd !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}
.rs-theme-light .rs-row {
    border: 1px solid #eaeaea !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important;
}


/* =========================================
   13. PRECIO INDIVIDUAL (SHORTCODE LANDINGS)
   ========================================= */
.rs-single-price-inline {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    white-space: nowrap !important;
}
.rs-single-price-inline .rs-price-main { font-size: 30px !important; font-weight: 800 !important; color: #333 !important; line-height: 1 !important; }
.rs-single-price-inline .rs-price-crossed { font-size: 18px !important; color: #999 !important; text-decoration: line-through !important; font-weight: 500 !important; line-height: 1 !important; }

/* =========================================
   REMODELACIÓN DEL CARRITO (VIEWCART)
   ========================================= */

/* 1. Ocultar la cabecera tipo "tabla" antigua de WHMCS */
.rs-modern-cart .view-cart-items-header {
    display: none !important;
}

/* 2. Diseño de Tarjetas Flotantes para los Productos */
.rs-modern-cart .rs-cart-card {
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    transition: all 0.3s ease !important;
}

.rs-modern-cart .rs-cart-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06) !important;
    border-color: #d0d0d0 !important;
}

/* Limpiar los bordes residuales del tema base de WHMCS */
.rs-modern-cart .view-cart-items .item {
    border-bottom: none !important;
}

/* 3. Panel de Resumen Fijo (Sticky) */
.rs-modern-cart .rs-sticky-summary {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 30px !important; /* Mantiene 30px de aire desde el techo al bajar */
    z-index: 10 !important;
}

/* 4. Estilos de botones secundarios dentro del carrito */
.rs-modern-cart .btn-link {
    text-decoration: none !important;
    color: #666 !important;
}
.rs-modern-cart .btn-link:hover {
    color: #c1272d !important; /* Tu rojo al pasar el mouse */
}
.rs-modern-cart .text-danger:hover {
    color: #a01f24 !important; /* Rojo más oscuro para el botón de borrar */
}

/* 5. Ajustes Responsivos (Móviles) */
@media (max-width: 991px) {
    .rs-modern-cart .rs-sticky-summary {
        position: relative !important;
        top: 0 !important;
        margin-top: 40px !important;
    }
    .rs-modern-cart .rs-cart-card {
        padding: 15px !important;
    }
    .rs-modern-cart .item-price {
        text-align: left !important;
        margin-top: 15px !important;
    }
    .rs-modern-cart .col-sm-1.text-right {
        text-align: left !important;
        margin-top: 10px !important;
    }
}

/* cambios para el carrito */


#order-standard_cart .cart-body {
    width: 100% !important;
}

/* Cambios en el checkout */

/* =========================================
   DISEÑO PREMIUM: MÉTODOS DE PAGO
   ========================================= */

/* =========================================
   DISEÑO: LISTA RECTANGULAR DE PAGOS
   ========================================= */

.rs-payment-cards-container {
    display: flex;
    flex-direction: column; /* Cambiamos a lista vertical */
    gap: 12px;
    margin-top: 15px;
}

.payment-card-label {
    display: flex;
    align-items: center; /* Alineación horizontal */
    justify-content: flex-start;
    border: 2px solid #eaeaea;
    border-radius: 8px;
    padding: 15px 20px !important;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    text-align: left;
    margin: 0 !important;
}

/* Efecto hover */
.payment-card-label:hover {
    border-color: #ccc;
    background: #fcfcfc;
}

/* Efecto seleccionado */
.payment-card-label:has(input[type="radio"]:checked) {
    border-color: #c1272d !important;
    background: #fff9f9 !important;
}

/* Ajuste del icono a la izquierda */
.rs-payment-icon {
    margin-right: 20px;
    font-size: 24px;
    width: 30px; /* Ancho fijo para que todos se alineen */
    text-align: center;
}

/* Nombre del método de pago */
.gateway-name {
    font-weight: 700;
    font-size: 15px;
    color: #333;
}


/* ========================================
   CHECKOUT - STICKY SIDEBAR
   ======================================== */
/* Checkout sticky sidebar fix */
