/* ═══════════════════════════════════════════════════════════════
   CONTACT PAGE — css/pages/contact.css
   Mihari Intelligence | /contacto/
   ═══════════════════════════════════════════════════════════════ */

/* Variables locales extras solo para esta página */

.contact-page {
    --bg-input: #0c1829;
    --border-color: rgba(0, 212, 255, 0.12);
    --border-hover: rgba(0, 212, 255, 0.35);
    --text-muted: rgba(200, 214, 229, 0.4);
    --accent-red: #ff3b6e;
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Page Layout ─── */
.contact-page {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* Particles Background */
.contact-page #particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: auto;
}

.contact-page::before {
    content: '';
    position: fixed;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

.contact-page::after {
    content: '';
    position: fixed;
    bottom: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
    pointer-events: none; z-index: 0;
}

.contact-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 100px 24px 80px;
    position: relative;
    z-index: 1;
}


/* ═══════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════ */

.contact-header {
    text-align: center;
    margin-bottom: 64px;
    animation: contactFadeInUp 0.6s ease-out;
}

.contact-header .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--cyan);
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-header .tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    animation: contactPulseDot 2s infinite;
}

.contact-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, var(--silver) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-header p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}


/* ═══════════════════════════════════════════════
   MAIN GRID
   ═══════════════════════════════════════════════ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: start;
}


/* ═══════════════════════════════════════════════
   LEFT COLUMN — INFO
   ═══════════════════════════════════════════════ */

.contact-info {
    animation: contactFadeInUp 0.6s ease-out 0.1s backwards;
}

.info-intro {
    margin-bottom: 40px;
}

.info-intro h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.info-intro p {
    color: var(--text-dim);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Feature bullets */
.contact-info .features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
    padding: 0;
}

.contact-info .features-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info .feature-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: rgba(8, 20, 38, 0.8);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
    transition: var(--transition);
}

.contact-info .features-list li:hover .feature-icon {
    border-color: var(--cyan);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
}

.contact-info .feature-text {
    padding-top: 2px;
}

.contact-info .feature-text strong {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--white);
}

.contact-info .feature-text span {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Support Links */
.support-section h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-section h3::before {
    content: '';
    width: 20px; height: 2px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--accent2) 100%);
    border-radius: 2px;
}

.support-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(8, 20, 38, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--silver);
    text-decoration: none;
    font-family: 'Exo 2', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.support-link:hover {
    border-color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(4px);
}

.support-link svg {
    width: 16px; height: 16px;
    color: var(--cyan);
    flex-shrink: 0;
}

.support-link .arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: var(--transition);
}

.support-link:hover .arrow {
    color: var(--cyan);
    transform: translateX(3px);
}


/* ═══════════════════════════════════════════════
   RIGHT COLUMN — FORM WRAPPER
   ═══════════════════════════════════════════════ */

.contact-form-wrapper {
    background: rgba(8, 20, 38, 0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    animation: contactFadeInUp 0.6s ease-out 0.2s backwards;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--accent2) 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}


/* ═══════════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════════ */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Labels */
.form-group label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--silver);
    letter-spacing: 0.03em;
}

.form-group label .required {
    color: var(--accent-red);
    margin-left: 2px;
}

/* Inputs, Selects, Textareas */
.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--white);
    outline: none;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    background: rgba(12, 24, 41, 0.9);
}

/* Select custom arrow */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23637a95' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-group select option {
    background: #0a1628;
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}


/* ═══════════════════════════════════════════════
   CHECKBOXES
   ═══════════════════════════════════════════════ */

.checkbox-section {
    margin-bottom: 24px;
}

.checkbox-section-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--silver);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.checkbox-section-label .required {
    color: var(--accent-red);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.checkbox-item:hover {
    background: rgba(0, 212, 255, 0.04);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid rgba(0, 212, 255, 0.2);
    border-radius: 4px;
    background: var(--bg-input);
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.checkbox-item input[type="checkbox"]:hover {
    border-color: rgba(0, 212, 255, 0.4);
}

.checkbox-item input[type="checkbox"]:checked {
    background: var(--cyan);
    border-color: var(--cyan);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px; top: 2px;
    width: 5px; height: 9px;
    border: solid var(--bg-deep);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item span {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.84rem;
    color: var(--text-dim);
    transition: var(--transition);
}

.checkbox-item:hover span,
.checkbox-item input:checked ~ span {
    color: var(--white);
}

/* Reseller checkbox */
.reseller-check {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--cyan-dim);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius);
}

.reseller-check span {
    font-weight: 500;
    color: var(--silver);
}


/* ═══════════════════════════════════════════════
   SUBMIT BUTTON
   ═══════════════════════════════════════════════ */

.contact-form-wrapper .submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 32px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--cyan) 0%, var(--accent2) 100%);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-form-wrapper .submit-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.contact-form-wrapper .submit-btn:hover::before {
    left: 100%;
}

.contact-form-wrapper .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
}

.contact-form-wrapper .submit-btn:active {
    transform: translateY(0);
}

/* Loading state */
.contact-form-wrapper .submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.contact-form-wrapper .submit-btn .spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(4, 8, 15, 0.3);
    border-top-color: var(--bg-deep);
    border-radius: 50%;
    animation: contactSpin 0.6s linear infinite;
}

.contact-form-wrapper .submit-btn.loading .spinner {
    display: block;
}

.contact-form-wrapper .submit-btn.loading .btn-icon {
    display: none;
}

.contact-form-wrapper .submit-btn.loading .btn-text {
    display: none;
}


/* ═══════════════════════════════════════════════
   PRIVACY NOTE
   ═══════════════════════════════════════════════ */

.privacy-note {
    margin-top: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-note a {
    color: var(--cyan);
    text-decoration: none;
}

.privacy-note a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════
   SUCCESS STATE
   ═══════════════════════════════════════════════ */

.success-message {
    display: none;
    text-align: center;
    padding: 60px 32px;
}

.success-message.active {
    display: block;
    animation: contactFadeInUp 0.5s ease-out;
}

.success-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--accent-green-dim);
    border: 2px solid var(--accent-green);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--accent-green);
}

.success-message h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.success-message p {
    color: var(--text-dim);
    font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════
   VALIDATION ERRORS
   ═══════════════════════════════════════════════ */

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 110, 0.1);
}

.form-group .error-msg {
    display: none;
    font-size: 0.72rem;
    color: var(--accent-red);
    margin-top: 4px;
}

.form-group.error .error-msg {
    display: block;
}

.checkbox-section.error .checkbox-section-label {
    color: var(--accent-red);
}


/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
   
@keyframes contactFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes contactPulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes contactSpin {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
   
@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .contact-container {
        padding: 80px 16px 60px;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .contact-info .features-list li {
        gap: 12px;
    }

    .contact-info .feature-icon {
        width: 38px; height: 38px;
    }
}