/* --- RDA OPCIÓN A: CLARO, LIMPIO Y CONVERSIÓN --- */
:root {
    --primary-color: #2563eb;
    --primary-rgb: 37, 99, 235;
    --bg-color: #ffffff;
    --surface-color: #f8fafc;
    --surface-strong: #eef2ff;
    --text-color: #475569;
    --title-color: #0f172a;
    --border-color: rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.10);
    --radius-global: 24px;
    --hero-pt: 150px;
    --hero-pb: 88px;
}

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

body {
    background: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 96px 0;
}

.text-center {
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    padding: 16px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(var(--primary-rgb), 0.24);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(var(--primary-rgb), 0.30);
}

.hero-main {
    position: relative;
    padding: var(--hero-pt) 0 var(--hero-pb);
    background:
        radial-gradient(circle at 14% 14%, rgba(37, 99, 235, 0.12) 0%, transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    isolation: isolate;
}

.hero-main::after {
    content: '';
    position: absolute;
    inset: auto -12% -35% auto;
    width: 520px;
    height: 520px;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(80px);
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-mockup {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.42;
}

.mockup-laptop {
    position: absolute;
    right: clamp(-180px, -8vw, -60px);
    top: 96px;
    width: min(720px, 52vw);
    min-height: 380px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 40px 120px rgba(37, 99, 235, 0.16);
    transform: rotate(-4deg);
    backdrop-filter: blur(10px);
}

.mockup-topbar {
    display: flex;
    gap: 8px;
    padding: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.mockup-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.45);
}

.mockup-content {
    padding: 32px;
}

.mockup-line,
.phone-line {
    height: 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    margin-bottom: 14px;
    width: 62%;
}

.mockup-line-lg {
    height: 32px;
    width: 82%;
    background: rgba(15, 23, 42, 0.10);
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.mockup-grid div,
.phone-card {
    height: 110px;
    border-radius: 22px;
    background: rgba(37, 99, 235, 0.10);
    border: 1px solid rgba(37, 99, 235, 0.10);
}

.mockup-phone {
    position: absolute;
    right: clamp(18px, 8vw, 110px);
    bottom: 42px;
    width: 150px;
    height: 290px;
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.88);
    padding: 18px;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.22);
    transform: rotate(6deg);
}

.phone-pill {
    width: 44px;
    height: 5px;
    margin: 0 auto 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-wrapper,
.hero-conversion-layout {
    position: relative;
    z-index: 1;
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr) !important;
    align-items: center;
    justify-content: initial !important;
    gap: clamp(36px, 5vw, 72px);
}

.hero-content,
.hero-copy-block {
    min-width: 0;
    order: 1 !important;
    text-align: left;
}

.hero-lead-card {
    order: 2 !important;
    width: 100%;
    max-width: 430px;
    margin-left: auto;
    margin-right: 0;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(18px);
}

.hero-form-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    color: #2563eb;
    font-weight: 900;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-lead-card h2 {
    color: #0f172a;
    font-size: 1.55rem;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.hero-lead-card > p {
    margin-bottom: 18px;
    color: #475569;
    font-weight: 600;
}

.hero-mini-form {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hero-title {
    font-size: clamp(2.65rem, 6vw, 4.85rem);
    color: var(--title-color);
    margin-bottom: 1.4rem;
    letter-spacing: -0.06em;
    line-height: 0.98;
    font-weight: 950;
}

.hero-title strong,
.hero-title em {
    color: var(--primary-color);
    font-style: normal;
}

.hero-subtitle {
    max-width: 620px;
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 1.6rem;
}

.hero-bullets {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0 0 2.2rem;
    max-width: 600px;
}

.hero-bullets li {
    position: relative;
    padding-left: 34px;
    color: #1e293b;
    font-weight: 800;
}

.hero-bullets li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    color: var(--primary-color);
}

.nosotros-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.10);
    color: var(--primary-color);
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    color: var(--title-color);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 950;
    letter-spacing: -0.045em;
    margin-bottom: 1.2rem;
}

.section-desc,
.seo-text p,
.intent-text,
.audit-lead {
    color: #475569;
}

.seo-content {
    max-width: 920px;
}

.seo-text {
    display: grid;
    gap: 18px;
    font-size: 1.08rem;
}

.audit-section {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.audit-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 54px;
    align-items: start;
}

.audit-lead {
    font-size: 1.12rem;
    max-width: 560px;
    margin-bottom: 28px;
}

.audit-points {
    list-style: none;
    display: grid;
    gap: 14px;
}

.audit-points li {
    border-left: 3px solid var(--primary-color);
    padding-left: 16px;
    color: #1e293b;
    font-weight: 800;
}

.audit-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 34px;
    border-radius: var(--radius-global);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
}

.form-field,
.form-field-full {
    display: grid;
    gap: 8px;
}

.form-field-full,
.audit-submit {
    grid-column: 1 / -1;
}

.form-field label {
    color: #0f172a;
    font-size: 0.92rem;
    font-weight: 900;
}

.form-field input,
.form-field textarea {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #94a3b8;
}

.form-field textarea {
    resize: vertical;
    min-height: 116px;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}

.intent-section {
    background: #ffffff;
}

.intent-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
    gap: 46px;
    align-items: center;
}

.intent-text {
    max-width: 720px;
    font-size: 1.08rem;
}

.intent-list {
    display: grid;
    gap: 16px;
}

.intent-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #0f172a;
    font-weight: 900;
    padding: 18px;
    border-radius: var(--radius-global);
    background: #f8fafc;
    border: 1px solid var(--border-color);
}

.intent-item i {
    color: var(--primary-color);
}

.proceso-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.step-card,
.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 34px;
    border-radius: var(--radius-global);
    transition: all 0.32s ease;
    height: 100%;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.step-card:hover,
.service-card:hover {
    background: #ffffff;
    border-color: rgba(var(--primary-rgb), 0.35);
    transform: translateY(-8px);
    box-shadow: 0 22px 58px rgba(15, 23, 42, 0.12);
}

.step-number i,
.card-icon {
    color: var(--primary-color);
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.step-card:hover .step-number i {
    transform: scale(1.12) rotate(5deg);
}

.step-title,
.service-card-title {
    color: var(--title-color);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.step-desc,
.service-card p {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.logos-confianza i {
    transition: all 0.4s ease;
    cursor: pointer;
    color: #64748b;
    opacity: 0.65;
    filter: grayscale(1);
}

.logos-confianza i:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: translateY(-8px) scale(1.15);
}

.logos-confianza .fa-php:hover { color: #777BB4 !important; }
.logos-confianza .fa-js:hover { color: #F7DF1E !important; }
.logos-confianza .fa-python:hover { color: #3776AB !important; }
.logos-confianza .fa-aws:hover { color: #FF9900 !important; }
.logos-confianza .fa-database:hover { color: #4479A1 !important; }
.logos-confianza .fa-google:hover { color: #4285F4 !important; }

/* Móvil real. Ojo: bajamos el breakpoint para que "vista escritorio" en celular no active layout móvil. */
@media (max-width: 640px) {
    :root {
        --hero-pt: 112px;
        --hero-pb: 58px;
    }

    .container {
        padding: 0 18px;
    }

    .section-padding {
        padding: 68px 0;
    }

    .hero-wrapper,
    .hero-conversion-layout,
    .nosotros-flex,
    .audit-wrapper,
    .intent-wrapper {
        display: grid !important;
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 32px;
    }

    .hero-content,
    .hero-copy-block {
        order: 1 !important;
        text-align: center;
    }

    .hero-lead-card {
        order: 2 !important;
        max-width: 560px;
        margin: 0 auto;
        text-align: left;
        padding: 22px;
        border-radius: 24px;
    }

    .hero-lead-card h2 {
        font-size: 1.35rem;
    }

    .hero-title {
        font-size: clamp(2.3rem, 13vw, 3.35rem);
    }

    .hero-subtitle {
        font-size: 1.02rem;
        margin: 0 auto 2.2rem auto;
    }

    .hero-bullets,
    .audit-points {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-bg-mockup {
        opacity: 0.22;
    }

    .mockup-laptop {
        width: 560px;
        right: -390px;
        top: 72px;
        min-height: 300px;
    }

    .mockup-phone {
        display: none;
    }

    .services-grid,
    .proceso-grid {
        grid-template-columns: 1fr !important;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .service-card,
    .step-card {
        text-align: left;
        padding: 26px;
        border-radius: 22px;
    }

    .audit-form {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 24px;
    }
}
