/* ==========================================================================
   PUBLIPERÚ - CUSTOM STYLES & DEFINITIVE FIXES (TEMA NEXUS / WHMCS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES GLOBALES & PALETA CORPORATIVA
   -------------------------------------------------------------------------- */
:root {
    --publiperu-red: #A71D2A;
    --publiperu-red-hover: #861420;
    --publiperu-whatsapp: #25D366;
    --publiperu-whatsapp-hover: #128C7E;
    --publiperu-bg-light: #F9FAFB;
}

/* --------------------------------------------------------------------------
   2. CORRECCIÓN PARA EL BOTÓN DE REGISTRO EN REGISTER.PHP (CLIENTREGISTER.TPL)
   -------------------------------------------------------------------------- */
html body #registration input[type="submit"],
html body #frmCheckout input[type="submit"],
html body form[name="orderfrm"] input[type="submit"],
html body .using-password-strength input[type="submit"],
html body #btnRegister {
    background: var(--publiperu-red) !important;
    background-color: var(--publiperu-red) !important;
    background-image: none !important;
    border: 1px solid var(--publiperu-red) !important;
    color: #FFFFFF !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    padding: 14px 45px !important;
    border-radius: 6px !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 48px !important;
    margin: 30px auto !important;
    box-shadow: 0 4px 14px rgba(167, 29, 42, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.25s ease-in-out !important;
    text-align: center !important;
}

html body #registration input[type="submit"]:hover,
html body #frmCheckout input[type="submit"]:hover,
html body form[name="orderfrm"] input[type="submit"]:hover,
html body .using-password-strength input[type="submit"]:hover,
html body #btnRegister:hover {
    background: var(--publiperu-red-hover) !important;
    background-color: var(--publiperu-red-hover) !important;
    border-color: var(--publiperu-red-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(167, 29, 42, 0.5) !important;
}

/* --------------------------------------------------------------------------
   3. REPARACIÓN GLOBAL DEL BUSCADOR DE DOMINIOS (HOME & CART.PHP)
   -------------------------------------------------------------------------- */

/* Eliminar el fondo amarillo del tema Nexus y las ilustraciones desalineadas */
html body .domain-checker-bg,
html body .domain-checker-container,
html body div[class*="domain-checker"],
html body div[class*="domain-search"],
html body #frmDomainChecker,
html body .bg-warning {
    background: var(--publiperu-bg-light) !important;
    background-color: var(--publiperu-bg-light) !important;
    background-image: none !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    padding: 25px !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    display: block !important;
    overflow: visible !important;
}

/* Ocultar elementos decorativos SVG / PNG que tapan los botones */
html body .domain-checker-bg::after,
html body .domain-checker-container img[src*="yellow"],
html body .domain-checker-container .svg-bg {
    display: none !important;
}

/* Estilos para las cajas de texto de entrada de dominios */
html body #frmDomainChecker textarea,
html body #frmDomainChecker input[type="text"],
html body .domain-checker-container textarea,
html body .domain-checker-container input[type="text"],
html body #frmDomainHomepage input[name="domain"] {
    width: 100% !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 1rem !important;
    background: #FFFFFF !important;
    color: #111827 !important;
    box-shadow: none !important;
}

/* Forzado de visibilidad y color del botón BUSCAR Dominios */
html body #frmDomainChecker button[type="submit"],
html body #frmDomainChecker input[type="submit"],
html body #frmDomainChecker .btn-primary,
html body .domain-checker-container button[type="submit"],
html body .domain-checker-container input[type="submit"],
html body .domain-checker-container .btn-primary,
html body button.btn-domain-search,
html body #frmDomainHomepage #btnDomainSearch,
html body #frmDomainHomepage #btnDomainSearch2 {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 100 !important;
    background: var(--publiperu-red) !important;
    background-color: var(--publiperu-red) !important;
    background-image: none !important;
    border: 1px solid var(--publiperu-red) !important;
    color: #FFFFFF !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    padding: 12px 35px !important;
    border-radius: 6px !important;
    height: auto !important;
    min-height: 48px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(167, 29, 42, 0.4) !important;
    transition: all 0.25s ease-in-out !important;
    margin-top: 10px !important;
    float: none !important;
}

/* Hover para los botones de búsqueda de dominios */
html body #frmDomainChecker button[type="submit"]:hover,
html body #frmDomainChecker input[type="submit"]:hover,
html body #frmDomainChecker .btn-primary:hover,
html body .domain-checker-container button[type="submit"]:hover,
html body .domain-checker-container input[type="submit"]:hover,
html body button.btn-domain-search:hover,
html body #frmDomainHomepage #btnDomainSearch:hover,
html body #frmDomainHomepage #btnDomainSearch2:hover {
    background: var(--publiperu-red-hover) !important;
    background-color: var(--publiperu-red-hover) !important;
    border-color: var(--publiperu-red-hover) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(167, 29, 42, 0.5) !important;
}

/* --------------------------------------------------------------------------
   4. BOTÓN FLOTANTE DE WHATSAPP UNIFICADO (+51966423715)
   -------------------------------------------------------------------------- */
.whatsapp-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
}

.whatsapp-btn {
    background-color: var(--publiperu-whatsapp);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.whatsapp-btn i {
    font-size: 20px;
}

.whatsapp-btn:hover {
    background-color: var(--publiperu-whatsapp-hover);
    color: #FFFFFF !important;
    transform: scale(1.05);
}

@media (max-width: 576px) {
    .whatsapp-float-container {
        bottom: 15px;
        right: 15px;
    }
    .whatsapp-btn {
        font-size: 13px;
        padding: 8px 14px;
    }
    .whatsapp-btn i {
        font-size: 18px;
    }
}