*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0f172a;
    --card: #1e293b;
    --primary: #3b82f6;
    --accent: #22d3ee;
    --whatsapp: #25D366;
    --text: #f8fafc;
    --muted: #94a3b8;
    --border: #334155;
    --warning: #f59e0b;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Variantes de acento por landing (profesional, sin recargar) */
body.lp-theme-support {
    --accent: #34d399;
}
body.lp-theme-migration {
    --accent: #fbbf24;
}
body.lp-theme-aws {
    --accent: #f59e0b;
}
body.lp-theme-dev {
    --accent: #a78bfa;
}

body.lp-theme-support .lp-hero {
    background: radial-gradient(ellipse at top center, rgba(52, 211, 153, 0.12) 0%, transparent 65%);
}
body.lp-theme-migration .lp-hero {
    background: radial-gradient(ellipse at top center, rgba(251, 191, 36, 0.12) 0%, transparent 65%);
}
body.lp-theme-aws .lp-hero {
    background: radial-gradient(ellipse at top center, rgba(245, 158, 11, 0.12) 0%, transparent 65%);
}
body.lp-theme-dev .lp-hero {
    background: radial-gradient(ellipse at top center, rgba(167, 139, 250, 0.12) 0%, transparent 65%);
}

.lp-header {
    background: rgba(15,23,42,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.lp-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-logo-icon svg { width: 20px; height: 20px; color: white; }

.lp-logo-name {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-header-cta {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(37,211,102,0.12);
    border: 1px solid rgba(37,211,102,0.35);
    color: #25D366;
    text-decoration: none;
    padding: 9px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.2s;
    white-space: nowrap;
}

.lp-header-cta:hover {
    background: rgba(37,211,102,0.22);
    border-color: rgba(37,211,102,0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(37,211,102,0.2);
}

@media (max-width: 480px) {
    .lp-header-cta .lp-cta-text { display: none; }
    .lp-header-cta { padding: 8px 10px; }
}

.lp-hero {
    padding: 60px 20px 50px;
    text-align: center;
    background: radial-gradient(ellipse at top center, rgba(59,130,246,0.15) 0%, transparent 65%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.lp-eyebrow {
    display: inline-block;
    background: rgba(34,211,238,0.1);
    border: 1px solid rgba(34,211,238,0.3);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 24px;
}

body.lp-theme-support .lp-eyebrow {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.35);
}
body.lp-theme-migration .lp-eyebrow {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.35);
}
body.lp-theme-aws .lp-eyebrow {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
}
body.lp-theme-dev .lp-eyebrow {
    background: rgba(167, 139, 250, 0.12);
    border-color: rgba(167, 139, 250, 0.4);
}

.lp-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff 50%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.lp-hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto 30px;
}

.lp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

.lp-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
}

.lp-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px 60px;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    align-items: start;
}

@media (max-width: 860px) {
    .lp-main { grid-template-columns: 1fr; gap: 20px; padding: 20px 16px 40px; }
    .lp-form-col { order: -1; position: static !important; }
    .form-card { padding: 16px 14px; border-radius: 14px; }
    .form-card-header { margin-bottom: 10px; }
    .form-card-header .form-emoji { display: none !important; }
    .form-card-header p { display: none !important; }
    .form-card-header h2 { font-size: 1.05rem; margin-bottom: 0; }
    .input-group { margin-bottom: 8px; }
    .input-group label { font-size: 0.78rem; margin-bottom: 3px; }
    .input-field { padding: 8px 10px; font-size: 0.88rem; border-radius: 8px; }
    .input-group-optional { display: none !important; }
    .btn-submit { margin-top: 10px; padding: 12px; font-size: 0.92rem; border-radius: 10px; }
    .form-guarantee { margin-top: 8px; padding: 7px 10px; font-size: 0.75rem; }
    .or-divider { margin: 8px 0; font-size: 0.82rem; }
    .btn-wa-lp { padding: 11px; font-size: 0.9rem; border-radius: 10px; }
}

@media (max-width: 600px) {
    .trust-bar { padding: 14px 16px; }
    .trust-bar-inner { flex-direction: column; align-items: stretch; gap: 8px; }
    .trust-item {
        display: flex !important;
        align-items: baseline;
        gap: 8px;
        font-size: 0.85rem;
        line-height: 1.45;
    }
    .trust-item .ti { flex-shrink: 0; width: 1.4em; text-align: center; }
}

.lp-benefits h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text);
}

.benefit-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.2);
}

.benefit-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
}

.quick-cases {
    margin-top: 36px;
    border-top: 1px solid var(--border);
    padding-top: 28px;
}

.quick-cases h3 {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    margin-bottom: 16px;
}

.qcase {
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.qcase strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.qcase span {
    font-size: 0.85rem;
    color: var(--muted);
}

.qcase .saving {
    color: var(--accent);
    font-weight: 700;
}

.lp-form-col {
    position: sticky;
    top: 80px;
}

.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.form-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.form-card-header .form-emoji { font-size: 2rem; display: block; margin-bottom: 8px; }

.form-card-header h2 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.form-card-header p {
    font-size: 0.88rem;
    color: var(--muted);
}

.input-group { margin-bottom: 16px; }

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    background: rgba(15,23,42,0.8);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}

textarea.input-field {
    min-height: 88px;
    resize: vertical;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

select.input-field { cursor: pointer; }
select.input-field option { background: #1e293b; }

.btn-submit {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(59,130,246,0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(59,130,246,0.5); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.spinner {
    width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

.form-guarantee {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(34,211,238,0.06);
    border: 1px solid rgba(34,211,238,0.15);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--muted);
}

.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.85rem;
}
.or-divider::before, .or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.btn-wa-lp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: var(--whatsapp);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-wa-lp:hover { filter: brightness(1.1); transform: translateY(-1px); }

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.form-success .success-emoji { font-size: 3rem; display: block; margin-bottom: 16px; }
.form-success h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 0.95rem; }

.lp-footer {
    text-align: center;
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--muted);
    font-size: 0.85rem;
}

.lp-footer a { color: var(--accent); text-decoration: none; }

.trust-bar {
    background: rgba(59,130,246,0.06);
    border-top: 1px solid rgba(59,130,246,0.1);
    border-bottom: 1px solid rgba(59,130,246,0.1);
    padding: 18px 20px;
}

.trust-bar-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.trust-item strong { color: var(--text); }

.lp-process {
    margin-top: 28px;
    padding: 20px;
    background: rgba(15,23,42,0.6);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.lp-process h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 14px;
}

.lp-process ol {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.lp-process li {
    margin-bottom: 8px;
}

.lp-process li strong {
    color: var(--text);
}
