/* ============================================
   HOSTINGER DOMAIN CHECKER PRO - STYLES
   VERSIÓN CON ESPECIFICIDAD REFORZADA
   ============================================ */

:root {
    --hdc-primary: #673de6;
    --hdc-primary-dark: #5028c6;
    --hdc-secondary: #ff6b6b;
    --hdc-success: #51cf66;
    --hdc-error: #ff6b6b;
    --hdc-text: #2d3748;
    --hdc-text-light: #718096;
    --hdc-bg: #ffffff;
    --hdc-bg-alt: #f7fafc;
    --hdc-border: #e2e8f0;
    --hdc-shadow: 0 10px 40px rgba(103, 61, 230, 0.1);
    --hdc-shadow-lg: 0 20px 60px rgba(103, 61, 230, 0.15);
}

/* ============================================
   WRAPPER & CONTAINER
   ============================================ */

.hdc-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hdc-wrapper .hdc-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--hdc-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--hdc-shadow-lg);
}

/* ============================================
   HEADER CON FONDO AZUL OSCURO - ESPECIFICIDAD REFORZADA
   ============================================ */

.hdc-wrapper .hdc-container .hdc-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #4c1d95 100%) !important;
    padding: 3rem 2rem !important;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Efecto de decoración en el header */
.hdc-wrapper .hdc-container .hdc-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hdc-wrapper .hdc-container .hdc-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hdc-wrapper .hdc-container .hdc-header .hdc-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff !important;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hdc-wrapper .hdc-container .hdc-header .hdc-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ============================================
   BADGES (dentro del header azul)
   ============================================ */

.hdc-wrapper .hdc-container .hdc-header .hdc-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.hdc-wrapper .hdc-container .hdc-header .hdc-badges .hdc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hdc-wrapper .hdc-badge-discount {
    background: linear-gradient(135deg, #ff6b6b, #ff8787) !important;
    color: white !important;
    animation: pulse 2s infinite;
}

.hdc-wrapper .hdc-badge-free {
    background: linear-gradient(135deg, #51cf66, #69db7c) !important;
    color: white !important;
}

.hdc-wrapper .hdc-badge-ssl {
    background: linear-gradient(135deg, #ffd43b, #fab005) !important;
    color: #1e3a8a !important;
}

.hdc-wrapper .hdc-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hdc-wrapper .hdc-icon {
    width: 16px;
    height: 16px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   SEARCH BOX (fuera del header, fondo blanco)
   ============================================ */

.hdc-wrapper .hdc-container .hdc-search-box {
    padding: 2.5rem 2rem 2rem 2rem;
    background: white;
}

.hdc-wrapper .hdc-form {
    margin-bottom: 1.5rem;
}

.hdc-wrapper .hdc-input-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    background: white;
    border: 2px solid var(--hdc-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.hdc-wrapper .hdc-input-wrapper:focus-within {
    border-color: var(--hdc-primary);
    box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.1);
}

.hdc-wrapper .hdc-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--hdc-text-light);
    pointer-events: none;
    z-index: 1;
}

.hdc-wrapper .hdc-input {
    flex: 1;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: none;
    font-size: 1rem;
    color: var(--hdc-text);
    background: transparent;
    outline: none;
}

.hdc-wrapper .hdc-input::placeholder {
    color: var(--hdc-text-light);
}

.hdc-wrapper .hdc-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--hdc-primary), var(--hdc-primary-dark)) !important;
    color: white !important;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hdc-wrapper .hdc-submit-btn:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.3);
}

.hdc-wrapper .hdc-btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.hdc-wrapper .hdc-submit-btn:hover .hdc-btn-icon {
    transform: translateX(4px);
}

/* ============================================
   LOADER
   ============================================ */

.hdc-wrapper .hdc-loader {
    text-align: center;
    padding: 2rem;
}

.hdc-wrapper .hdc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--hdc-border);
    border-top-color: var(--hdc-primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESULTS
   ============================================ */

.hdc-wrapper .hdc-results {
    margin-top: 1.5rem;
}

.hdc-wrapper .hdc-result-available {
    background: linear-gradient(135deg, #d3f9d8, #b2f2bb);
    border: 2px solid var(--hdc-success);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.hdc-wrapper .hdc-result-taken {
    background: linear-gradient(135deg, #ffe0e0, #ffc9c9);
    border: 2px solid var(--hdc-error);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.hdc-wrapper .hdc-result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hdc-wrapper .hdc-result-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--hdc-text);
}

.hdc-wrapper .hdc-result-domain {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hdc-primary);
    margin: 0 0 1rem 0;
}

.hdc-wrapper .hdc-result-message {
    font-size: 1rem;
    color: var(--hdc-text-light);
    margin: 0 0 1.5rem 0;
}

.hdc-wrapper .hdc-cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--hdc-primary), var(--hdc-primary-dark)) !important;
    color: white !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(103, 61, 230, 0.3);
}

.hdc-wrapper .hdc-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(103, 61, 230, 0.4);
}

.hdc-wrapper .hdc-alternative-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: white;
    color: var(--hdc-primary);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--hdc-primary);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.hdc-wrapper .hdc-alternative-btn:hover {
    background: var(--hdc-primary);
    color: white;
}

/* ============================================
   FEATURES - VERSIONE COMPATTA
   ============================================ */

.hdc-wrapper .hdc-container .hdc-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background: var(--hdc-bg-alt);
    border-top: 1px solid var(--hdc-border);
}

.hdc-wrapper .hdc-feature {
    text-align: center;
    padding: 1rem 0.75rem;
}

.hdc-wrapper .hdc-feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.hdc-wrapper .hdc-feature h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hdc-text);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.hdc-wrapper .hdc-feature p {
    font-size: 0.75rem;
    color: var(--hdc-text-light);
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   CTA FOOTER
   ============================================ */

.hdc-wrapper .hdc-container .hdc-cta-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid var(--hdc-border);
}

.hdc-wrapper .hdc-urgency {
    font-size: 0.95rem;
    color: var(--hdc-secondary);
    font-weight: 600;
    margin: 0;
    animation: pulse 2s infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hdc-wrapper .hdc-container .hdc-header {
        padding: 2rem 1.5rem !important;
    }
    
    .hdc-wrapper .hdc-title {
        font-size: 1.5rem;
    }
    
    .hdc-wrapper .hdc-subtitle {
        font-size: 1rem;
    }
    
    .hdc-wrapper .hdc-badges {
        gap: 0.5rem;
    }
    
    .hdc-wrapper .hdc-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hdc-wrapper .hdc-search-box {
        padding: 2rem 1.5rem;
    }
    
    .hdc-wrapper .hdc-input-wrapper {
        flex-direction: column;
    }
    
    .hdc-wrapper .hdc-input {
        padding: 1rem 1rem 1rem 3rem;
        border-bottom: 1px solid var(--hdc-border);
    }
    
    .hdc-wrapper .hdc-submit-btn {
        padding: 1rem;
        justify-content: center;
        border-radius: 0 0 14px 14px;
    }
    
    .hdc-wrapper .hdc-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1.5rem;
    }
    
    .hdc-wrapper .hdc-feature {
        padding: 0.75rem 0.5rem;
    }
    
    .hdc-wrapper .hdc-feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }
    
    .hdc-wrapper .hdc-feature h4 {
        font-size: 0.8rem;
    }
    
    .hdc-wrapper .hdc-feature p {
        font-size: 0.7rem;
    }
    
    .hdc-wrapper .hdc-cta-footer {
        padding: 1.25rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hdc-wrapper .hdc-features {
        grid-template-columns: 1fr;
    }
    
    .hdc-wrapper .hdc-feature {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 0.75rem;
        padding: 0.75rem;
        background: white;
        border-radius: 8px;
    }
    
    .hdc-wrapper .hdc-feature-icon {
        font-size: 1.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}