/* ============================================================
   REGE Proptech — Landing SaaS
   Sistema visual: dark tech premium, morado de marca.
   Radios: cards 20px · inputs 12px · botones pill.
   ============================================================ */

@font-face {
    font-family: 'Sora';
    src: url('assets/fonts/sora-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('assets/fonts/manrope-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #07060b;
    --bg-soft: #0d0a15;
    --bg-elevated: #12101b;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-strong: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f4f0fa;
    --muted: #a79fb8;
    --muted-2: #81778f;
    --brand: #b02bd6;
    --brand-bright: #e040fb;
    --brand-deep: #6a1b9a;
    --brand-soft: rgba(176, 43, 214, 0.14);
    --gradient: linear-gradient(135deg, #6a1b9a 0%, #9c27b0 58%, #b02bd6 100%);
    --radius-card: 20px;
    --radius-input: 12px;
    --radius-pill: 999px;
    --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --shadow-brand: 0 24px 70px -28px rgba(176, 43, 214, 0.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
}

body {
    margin: 0;
    background:
        radial-gradient(900px 620px at 82% -8%, rgba(176, 43, 214, 0.16), transparent 62%),
        radial-gradient(760px 520px at -8% 18%, rgba(106, 27, 154, 0.14), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: rgba(224, 64, 251, 0.28);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 300;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    background: var(--text);
    color: var(--bg);
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* ---------- Navegación ---------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 72px;
    background: rgba(7, 6, 11, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    height: 28px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.9rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-login {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-login:hover {
    color: var(--text);
}

.mobile-login {
    display: none;
}

.nav-item {
    position: relative;
}

.nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    transition: color 0.2s ease;
}

.nav-trigger:hover,
.nav-trigger[aria-expanded="true"] {
    color: var(--text);
}

.nav-trigger i {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.nav-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 22px);
    left: 50%;
    z-index: 120;
    width: min(980px, calc(100vw - 48px));
    padding: 26px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    background: linear-gradient(180deg, #0e0b17 0%, #090710 100%);
    box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-item.is-open .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.mega-title {
    margin: 0 0 12px;
    color: var(--muted-2);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mega-link {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 -10px;
    padding: 9px 10px;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.mega-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mega-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(224, 64, 251, 0.22);
    border-radius: 10px;
    background: rgba(176, 43, 214, 0.12);
    color: #e9b6ff;
    font-size: 1rem;
}

.mega-copy {
    display: block;
    min-width: 0;
}

.mega-copy strong {
    display: block;
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
}

.mega-copy > span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.4;
}

.mega-badge {
    display: inline-flex;
    margin-left: 5px;
    padding: 3px 6px;
    border-radius: var(--radius-pill);
    background: var(--gradient);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.78rem;
}

.mega-all {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-bright);
    font-weight: 700;
}

.mega-all:hover {
    color: #f0a6ff;
}

.nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font-size: 1.2rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(224, 64, 251, 0.3);
}

/* ---------- Botones ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 80px -26px rgba(176, 43, 214, 0.75);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.btn-sm {
    min-height: 42px;
    padding: 0 18px;
    font-size: 0.86rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-bright);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.text-link:hover {
    gap: 12px;
    color: #f0a6ff;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--brand-bright);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
    min-height: calc(100dvh - 72px);
    display: flex;
    align-items: center;
    padding: 72px 0 56px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 64px;
}

.hero-copy h1 {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.h1-line {
    display: block;
    white-space: nowrap;
}

.grad {
    background: linear-gradient(120deg, #f2b8ff 0%, var(--brand-bright) 42%, var(--brand) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 44ch;
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    height: clamp(420px, 56vh, 620px);
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 40px 100px -40px rgba(176, 43, 214, 0.42);
}

.hero-image-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.06) brightness(0.82);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 6, 11, 0.96) 0%, rgba(7, 6, 11, 0.3) 52%, rgba(7, 6, 11, 0.06) 100%),
        linear-gradient(135deg, rgba(106, 27, 154, 0.42), rgba(7, 6, 11, 0.08) 62%);
}

.hero-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    background: rgba(10, 8, 16, 0.66);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #f7eaff;
    font-size: 0.76rem;
    font-weight: 700;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #7cf7b0;
    box-shadow: 0 0 0 0 rgba(124, 247, 176, 0.5);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 247, 176, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(124, 247, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 247, 176, 0); }
}

.hero-card {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(10, 8, 16, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mini-flow {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mini-flow li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f4eafb;
    font-size: 0.84rem;
    font-weight: 600;
}

.mini-flow i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(176, 43, 214, 0.18);
    color: #e9b6ff;
    font-size: 0.95rem;
}

/* ---------- Franja de capacidades ---------- */

.proof {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 18px 0;
}

.proof-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-right: 1px solid var(--border);
}

.proof-grid span:last-child {
    border-right: 0;
}

.proof-grid i {
    color: var(--brand-bright);
    font-size: 1.05rem;
}

/* ---------- Secciones ---------- */

.section {
    padding: 104px 0;
    position: relative;
}

.section-head {
    max-width: 740px;
    margin-bottom: 48px;
}

.section-head h2,
.split-copy h2,
.faq-copy h2,
.signup-copy h2 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-head > p:last-child,
.split-copy > p,
.faq-copy > p,
.signup-copy > p {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.split-reverse .ai-visual {
    order: -1;
}

/* ---------- Problema / comparación ---------- */

.compare {
    position: relative;
    padding: 8px 0;
}

.compare-card {
    border-radius: var(--radius-card);
    padding: 26px;
}

.compare-before {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    transform: rotate(-1.2deg);
}

.compare-after {
    position: relative;
    margin: -18px 0 0 34px;
    border: 1px solid rgba(224, 64, 251, 0.35);
    background:
        linear-gradient(145deg, rgba(176, 43, 214, 0.2), rgba(106, 27, 154, 0.06)),
        var(--bg-elevated);
    box-shadow: 0 30px 80px -36px rgba(176, 43, 214, 0.55);
    transform: rotate(0.9deg);
}

.compare-label {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.compare-after .compare-label {
    color: #e9b6ff;
}

.compare ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.compare li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.compare-after li {
    color: #eee6f7;
}

.compare li i {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 1rem;
}

.compare-before li i {
    color: #6f657c;
}

.compare-after li i {
    color: #7cf7b0;
}

/* ---------- Bento de módulos ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.bento-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    transition:
        transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.28s ease,
        background 0.28s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 64, 251, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

.bento-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.bento-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.bento-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border: 1px solid rgba(224, 64, 251, 0.24);
    border-radius: 12px;
    background: rgba(176, 43, 214, 0.12);
    color: #e9b6ff;
    font-size: 1.25rem;
}

.bento-large {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    padding: 0;
}

.bento-large > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.72) brightness(0.82);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-large:hover > img {
    transform: scale(1.04);
}

.bento-large-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 6, 11, 0.97) 0%, rgba(7, 6, 11, 0.46) 55%, rgba(7, 6, 11, 0.12) 100%),
        linear-gradient(135deg, rgba(106, 27, 154, 0.38), rgba(7, 6, 11, 0.12) 62%);
}

.bento-large-content {
    position: relative;
    z-index: 1;
    padding: 30px;
    max-width: 480px;
}

.bento-large-content .bento-icon {
    margin-bottom: 14px;
}

.bento-large-content h3 {
    font-size: 1.55rem;
    margin-bottom: 10px;
}

.bento-large-content p {
    font-size: 0.96rem;
    color: #d8cfe4;
}

.bento-ai {
    grid-column: span 2;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(224, 64, 251, 0.3), transparent 55%),
        linear-gradient(145deg, rgba(176, 43, 214, 0.2), rgba(106, 27, 154, 0.05)),
        var(--bg-elevated);
    border-color: rgba(224, 64, 251, 0.24);
}

.bento-tag {
    display: inline-flex;
    margin-top: 16px;
    padding: 5px 10px;
    border: 1px solid rgba(224, 64, 251, 0.3);
    border-radius: var(--radius-pill);
    color: #e9b6ff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.bento > .bento-card:not(.bento-large):not(.bento-ai) {
    grid-column: span 2;
}

/* ---------- Workflow ---------- */

.workflow {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.012);
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    padding: 24px 26px 0 0;
    border-top: 1px solid var(--border-strong);
}

.steps li + li {
    padding-left: 26px;
    border-left: 1px solid var(--border);
}

.step-num {
    display: block;
    margin-bottom: 18px;
    color: var(--brand-bright);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.steps h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.steps p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

/* ---------- Baly AI ---------- */

.ai-visual {
    position: relative;
    height: clamp(380px, 46vw, 520px);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px -40px rgba(176, 43, 214, 0.4);
}

.ai-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.68) contrast(1.06) brightness(0.78);
}

.ai-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(7, 6, 11, 0.92), rgba(7, 6, 11, 0.12) 60%),
        linear-gradient(135deg, rgba(106, 27, 154, 0.42), rgba(7, 6, 11, 0.08) 62%);
}

.ai-chip {
    position: absolute;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    background: rgba(10, 8, 16, 0.68);
    backdrop-filter: blur(14px);
    color: #f7eaff;
    font-size: 0.78rem;
    font-weight: 700;
}

.ai-chip i {
    color: var(--brand-bright);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 30px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #e7dff0;
    font-size: 0.94rem;
    line-height: 1.5;
}

.check-list i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #7cf7b0;
    font-size: 1.05rem;
}

/* ---------- Planes ---------- */

.pricing {
    background:
        radial-gradient(700px 420px at 50% 110%, rgba(176, 43, 214, 0.13), transparent 65%);
}

.plan-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.plan-option {
    text-align: left;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.plan-option:hover {
    border-color: rgba(224, 64, 251, 0.28);
    transform: translateY(-2px);
}

.plan-option.is-active {
    border-color: rgba(224, 64, 251, 0.55);
    background:
        linear-gradient(145deg, rgba(176, 43, 214, 0.18), rgba(106, 27, 154, 0.04)),
        var(--bg-elevated);
    box-shadow: 0 20px 60px -30px rgba(176, 43, 214, 0.55);
}

.plan-option-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.plan-option-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.plan-option-tag {
    padding: 3px 7px;
    border-radius: var(--radius-pill);
    background: var(--gradient);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-option-tag-vip {
    background: linear-gradient(135deg, #7c3aed, #c026d3);
}

.plan-option-price {
    color: #e9b6ff;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-option-price span {
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
}

.plan-option-desc {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.plan-option-features {
    display: block;
    margin-top: 8px;
    color: #cfc4dd;
    font-size: 0.76rem;
    line-height: 1.45;
}

.pricing-calculator {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-top: 20px;
    padding: 28px;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: var(--bg-elevated);
    box-shadow: 0 30px 90px -40px rgba(0, 0, 0, 0.8);
}

.calculator-kicker {
    margin: 0 0 6px;
    color: var(--muted-2);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.calculator-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.calculator-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.calculator-price {
    margin: 0;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.calculator-price span {
    margin-left: 4px;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0;
}

.calculator-breakdown {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.calculator-slider {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    margin-bottom: 20px;
}

.slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.slider-head label {
    color: #e9e2f2;
    font-size: 0.82rem;
    font-weight: 700;
}

.slider-head output {
    padding: 4px 9px;
    border-radius: var(--radius-pill);
    background: rgba(176, 43, 214, 0.14);
    border: 1px solid rgba(224, 64, 251, 0.25);
    color: #e9b6ff;
    font-size: 0.75rem;
    font-weight: 700;
}

#seats {
    width: 100%;
    accent-color: var(--brand-bright);
}

.slider-range {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--muted-2);
    font-size: 0.68rem;
}

.calculator-note {
    margin: 10px 0 0;
    color: var(--muted-2);
    font-size: 0.75rem;
    text-align: center;
}

.calculator-features {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.calculator-features-title {
    margin: 0 0 14px;
    color: var(--muted-2);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.calculator-features .check-list {
    margin: 0;
}

.calculator-features .check-list li {
    font-size: 0.85rem;
}

.developer-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 20px;
    padding: 26px 28px;
    border: 1px solid rgba(224, 64, 251, 0.25);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(106, 27, 154, 0.22), rgba(176, 43, 214, 0.06)),
        var(--bg-elevated);
}

.developer-banner .eyebrow {
    margin-bottom: 8px;
}

.developer-banner h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.developer-desc {
    margin: 0;
    max-width: 60ch;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.pricing-note {
    margin: 26px 0 0;
    color: var(--muted-2);
    font-size: 0.82rem;
}

/* ---------- FAQ ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
    gap: 72px;
}

.faq-copy a {
    color: var(--brand-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list details:first-child {
    border-top: 1px solid var(--border);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    flex: 0 0 auto;
    color: var(--brand-bright);
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
    content: '−';
    transform: rotate(0deg);
}

.faq-list details p {
    margin: 0;
    padding: 0 0 20px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
    max-width: 62ch;
}

/* ---------- Registro ---------- */

.signup {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(800px 520px at 82% 110%, rgba(176, 43, 214, 0.18), transparent 62%),
        linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012));
}

.signup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/img/team-office.webp') center / cover no-repeat;
    opacity: 0.08;
    filter: saturate(0.4);
    pointer-events: none;
}

.signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.signup-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--muted);
    font-size: 0.9rem;
}

.signup-contact i {
    color: var(--brand-bright);
    font-size: 1.1rem;
}

.signup-contact a {
    color: var(--brand-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-card {
    padding: 32px;
    border: 1px solid var(--border-strong);
    border-radius: 24px;
    background: rgba(13, 10, 21, 0.86);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field label {
    color: #e9e2f2;
    font-size: 0.83rem;
    font-weight: 700;
}

.optional {
    color: var(--muted-2);
    font-weight: 500;
}

.field input,
.field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-input);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.94rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
    color: #8b8199;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(224, 64, 251, 0.65);
    box-shadow: 0 0 0 3px rgba(176, 43, 214, 0.18);
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #b9aec8 50%),
        linear-gradient(135deg, #b9aec8 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 21px,
        calc(100% - 15px) 21px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.hint {
    margin: 0;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted-2);
    font-size: 1.05rem;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle:hover {
    color: var(--brand-bright);
    background: rgba(255, 255, 255, 0.06);
}

.password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(176, 43, 214, 0.25);
}

.form-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
    cursor: pointer;
}

.consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--brand);
}

.consent a {
    color: var(--brand-bright);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-status {
    min-height: 1.3em;
    margin: 14px 0 0;
    font-size: 0.83rem;
    line-height: 1.45;
}

.form-status.is-error {
    color: #fca5a5;
}

.form-status.is-success {
    color: #86efac;
}

.form-success {
    text-align: center;
    padding: 22px 10px;
}

.form-success i {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border: 1px solid rgba(124, 247, 176, 0.3);
    border-radius: 50%;
    background: rgba(124, 247, 176, 0.1);
    color: #7cf7b0;
    font-size: 1.7rem;
}

.form-success h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.form-success p {
    margin: 0 auto 22px;
    max-width: 38ch;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Footer ---------- */

.footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--border);
    background: rgba(4, 3, 7, 0.6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
}

.footer-brand img {
    height: 26px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 40ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-title {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 0.78rem;
}

/* ---------- Reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .hero-grid,
    .split,
    .signup-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero {
        min-height: auto;
        padding-top: 64px;
    }

    .hero-visual {
        max-width: 640px;
        width: 100%;
    }

    .split-reverse .ai-visual {
        order: 0;
    }

    .ai-visual {
        max-width: 640px;
        height: clamp(340px, 56vw, 480px);
    }

    .plan-selector {
        grid-template-columns: 1fr;
    }

    .pricing-calculator {
        grid-template-columns: 1fr;
    }

    .developer-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 32px;
    }

    .steps li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 380px;
    }

    .bento-ai,
    .bento > .bento-card:not(.bento-large):not(.bento-ai) {
        grid-column: span 1;
    }

    .bento > .bento-card:last-child {
        grid-column: span 2;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 36px;
    }

    .nav-toggle {
        display: grid;
    }

    .nav-login {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 110;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
        padding: 12px 24px 24px;
        background: #07060b;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-item {
        width: 100%;
    }

    .nav-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
    }

    .mega-menu {
        position: static;
        display: none;
        width: 100%;
        padding: 10px 0 16px;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-item.is-open .mega-menu {
        display: block;
        transform: none;
    }

    .mega-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .mega-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .mobile-login {
        display: block;
    }
}

@media (max-width: 820px) {
    .nav-inner {
        justify-content: space-between;
    }

    .proof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .proof-grid span {
        justify-content: flex-start;
        padding: 10px 0;
        border-right: 0;
    }

    .proof-grid span:nth-child(odd) {
        border-right: 1px solid var(--border);
        padding-right: 16px;
    }

    .proof-grid span:nth-child(even) {
        padding-left: 16px;
    }

    .compare-after {
        margin: -14px 0 0 18px;
    }

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding: 72px 0;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 9.5vw, 2.9rem);
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .hero-image-wrap {
        height: 420px;
    }

    .hero-card {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .compare-card {
        padding: 22px;
    }

    .compare-before,
    .compare-after {
        transform: none;
        margin: 0;
    }

    .compare-after {
        margin-top: 12px;
    }

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

    .bento-large,
    .bento-ai,
    .bento > .bento-card:not(.bento-large):not(.bento-ai) {
        grid-column: span 1;
    }

    .bento-large {
        min-height: 360px;
    }

    .bento-large-content {
        padding: 24px;
    }

    .steps {
        grid-template-columns: 1fr;
        row-gap: 0;
    }

    .steps li,
    .steps li + li,
    .steps li:nth-child(3) {
        padding: 22px 0 0;
        border-left: 0;
    }

    .pricing-calculator {
        padding: 20px;
    }

    .calculator-head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .calculator-price {
        font-size: 2.2rem;
    }

    .form-card {
        padding: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
