/* ══════════════════════════════════════════════════════════
   AI-SOLUTIONS — FORMULARIO DE COTIZACIÓN (welcome.html)
   Sección #cotizar · reutiliza variables de landing.css
   ══════════════════════════════════════════════════════════ */

.lead-section { position: relative; z-index: 1; }

/* Subtítulo de sección (no existe en landing.css) */
.section-subtitle {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.7;
}

.lead-card {
    position: relative;
    max-width: 880px;
    margin: 40px auto 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 42px 40px;
    backdrop-filter: blur(12px);
    overflow: hidden;
}
.lead-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 28px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(0,229,255,.35), transparent 40%, rgba(224,64,251,.35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
}
.lead-field.full { grid-column: 1 / -1; }

.lead-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}
.lead-field label i { color: var(--cyan); font-size: 0.85rem; }
.lead-field label .req { color: var(--magenta); }

.lead-input,
.lead-select,
.lead-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 13px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.98rem;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.lead-input::placeholder, .lead-textarea::placeholder { color: rgba(255,255,255,.3); }
.lead-input:focus, .lead-select:focus, .lead-textarea:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}
.lead-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300e5ff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}
.lead-select option { background: #0a1420; color: #fff; }
.lead-textarea { resize: vertical; min-height: 110px; }

/* Honeypot invisible (anti-bots) */
.lead-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lead-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}
.lead-privacy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 380px;
}
.lead-privacy i { color: var(--cyan); }

.lead-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    border: none;
    border-radius: 50px;
    font-family: var(--font-d, 'Orbitron', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    color: #03121a;
    background: linear-gradient(135deg, var(--cyan), #7c4dff);
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, opacity .25s;
    box-shadow: 0 8px 30px rgba(0, 229, 255, 0.3);
}
.lead-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 229, 255, 0.45);
}
.lead-submit:disabled { opacity: 0.6; cursor: wait; }

/* Mensajes de estado */
.lead-msg {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}
.lead-msg.hidden { display: none; }
.lead-msg.error {
    background: rgba(255, 64, 129, 0.1);
    border: 1px solid rgba(255, 64, 129, 0.4);
    color: #ff8ab1;
}
.lead-msg.info {
    background: rgba(0, 229, 255, 0.07);
    border: 1px solid rgba(0, 229, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

/* Estado de éxito (reemplaza al formulario) */
.lead-success {
    text-align: center;
    padding: 30px 10px;
}
.lead-success .ls-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #03121a;
    background: linear-gradient(135deg, #00e676, var(--cyan));
    box-shadow: 0 0 40px rgba(0, 230, 118, 0.4);
    animation: leadPop .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes leadPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lead-success h3 {
    font-family: var(--font-d, 'Orbitron', sans-serif);
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}
.lead-success p {
    color: rgba(255, 255, 255, 0.65);
    max-width: 460px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.lead-success .btn-whatsapp { text-decoration: none; }

@media (max-width: 680px) {
    .lead-card { padding: 30px 22px; }
    .lead-grid { grid-template-columns: 1fr; gap: 16px; }
    .lead-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .lead-privacy { max-width: none; justify-content: center; }
    .lead-submit { justify-content: center; }
}
