:root {
    --bg: #0b1220;
    --bg-2: #0f172a;
    --card: linear-gradient(160deg, rgba(11, 16, 27, 0.96), rgba(12, 22, 38, 0.78));
    --card-2: linear-gradient(145deg, rgba(37, 99, 235, 0.18), rgba(12, 22, 38, 0));
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #2563eb;
    --accent: #22c55e;
    --border: rgba(255, 255, 255, 0.12);

    --radius: 18px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
        sans-serif;
    background: #070b13;
    color: var(--text);
    line-height: 1.55;
}

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

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

section[id] {
    scroll-margin-top: 120px;
}

/* Header / Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(7, 11, 19, 0.55);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    position: relative;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

.brand__logo {
    width: clamp(160px, 24vw, 240px);
    height: 44px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    object-position: left center;
    box-shadow: none;
    border: none;
}

.nav__menu {
    margin-left: auto;
    display: flex;
    gap: 18px;
    list-style: none;
    padding: 0;
}

.nav__menu a {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
}

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

.nav__cta {
    margin-left: 6px;
}

.nav__toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--text);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav__toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.nav__toggle span {
    display: block;
    height: 2px;
    width: 24px;
    background: var(--text);
    border-radius: 999px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.08s ease, filter 0.2s ease, background 0.2s ease,
        border 0.2s ease;
}

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

.btn--primary {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 1),
            rgba(37, 99, 235, 0.75));
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.22);
}

.btn--primary:hover {
    filter: brightness(1.08);
}

.btn--ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn--soft {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
}

.btn--soft:hover {
    background: rgba(255, 255, 255, 0.09);
}

.badge {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

/* Hero */
.hero {
    position: relative;
    padding: 64px 0 36px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(1200px 700px at 15% 5%,
            rgba(37, 99, 235, 0.28),
            transparent 55%),
        radial-gradient(900px 500px at 85% 10%,
            rgba(34, 197, 94, 0.14),
            transparent 60%),
        linear-gradient(180deg, var(--bg), #070b13 80%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 38px;
    align-items: center;
}

.hero h1 {
    margin: 14px 0 10px;
    font-size: clamp(34px, 4.2vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.7px;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    max-width: 60ch;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin: 20px 0 14px;
    flex-wrap: wrap;
}

.hero__trust {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-size: 13px;
}

.trust__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.hero__visual {
    position: relative;
    min-height: 320px;
}

.glass-card {
    position: relative;
    border-radius: var(--radius);
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.glass-card__top {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.chip {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.glass-card__body {
    padding: 18px 16px 22px;
}

.line {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    margin: 12px 0;
}

.w-80 {
    width: 80%;
}

.w-70 {
    width: 70%;
}

.w-60 {
    width: 60%;
}

.w-50 {
    width: 50%;
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(0px);
    opacity: 0.85;
}

.orb--a {
    width: 180px;
    height: 180px;
    left: -40px;
    top: 40px;
    background: rgba(37, 99, 235, 0.3);
    box-shadow: 0 0 0 70px rgba(37, 99, 235, 0.06);
}

.orb--b {
    width: 140px;
    height: 140px;
    right: -30px;
    bottom: -30px;
    background: rgba(34, 197, 94, 0.22);
    box-shadow: 0 0 0 60px rgba(34, 197, 94, 0.05);
}

/* Sections */
.section {
    padding: 54px 0;
}

.section--alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
    margin-bottom: 22px;
}

.section__head h2 {
    margin: 0 0 8px;
    font-size: 26px;
    letter-spacing: -0.3px;
}

.section__head p {
    margin: 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 16px;
}

.cards-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.split {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.card {
    position: relative;
    background: radial-gradient(circle at 20% 0%,
            rgba(37, 99, 235, 0.35),
            transparent 45%),
        radial-gradient(circle at 80% 0%,
            rgba(34, 197, 94, 0.18),
            transparent 55%),
        var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 30px 75px rgba(5, 8, 15, 0.55);
    overflow: hidden;
}

.card--dark {
    background: radial-gradient(circle at 18% 10%,
            rgba(80, 140, 255, 0.55),
            transparent 50%),
        radial-gradient(circle at 85% 0%,
            rgba(34, 197, 94, 0.3),
            transparent 55%),
        linear-gradient(165deg,
            rgba(21, 39, 90, 0.92),
            rgba(11, 18, 38, 0.85));
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 35px 85px rgba(16, 54, 121, 0.45);
}

.card--plain {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.price {
    margin: 12px 0 10px;
    font-size: 14px;
}

.list {
    margin: 0 0 16px;
    padding-left: 18px;
    color: var(--muted);
}

.list li {
    margin: 6px 0;
}

/* Reviews */
.review {
    position: relative;
    background: radial-gradient(circle at 15% 0%,
            rgba(37, 99, 235, 0.18),
            transparent 45%),
        var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 24px 65px rgba(5, 8, 15, 0.4);
    overflow: hidden;
}

.review__top {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.review__name {
    margin: 0;
    font-weight: 800;
}

.review__text {
    margin: 0;
    color: var(--muted);
}

.stars {
    color: rgba(255, 212, 59, 0.95);
    letter-spacing: 1px;
    font-size: 14px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: rgba(37, 99, 235, 0.22);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.avatar--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border);
    color: var(--muted);
}

.review--placeholder .btn {
    margin-top: 14px;
}

/* Tech */
.tech {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg,
            rgba(17, 33, 66, 0.92),
            rgba(5, 10, 20, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 40px 90px rgba(3, 6, 15, 0.65);
    overflow: hidden;
}

.tech::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%,
            rgba(34, 197, 94, 0.25),
            transparent 55%),
        radial-gradient(circle at 80% 0%,
            rgba(37, 99, 235, 0.3),
            transparent 65%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

.pill {
    position: relative;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
    box-shadow: 0 12px 30px rgba(4, 7, 16, 0.5);
    z-index: 1;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        border 0.18s ease;
}

.pill:nth-child(3n + 1) {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.65),
            rgba(14, 116, 144, 0.35));
    border-color: rgba(59, 130, 246, 0.45);
}

.pill:nth-child(3n + 2) {
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.6),
            rgba(56, 189, 248, 0.3));
    border-color: rgba(192, 132, 252, 0.4);
}

.pill:nth-child(3n + 3) {
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.5),
            rgba(59, 130, 246, 0.25));
    border-color: rgba(74, 222, 128, 0.4);
}

.pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(3, 8, 19, 0.65);
}

/* Form */
.form {
    position: relative;
    background: radial-gradient(circle at 20% 0%,
            rgba(37, 99, 235, 0.2),
            transparent 45%),
        var(--card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 24px 65px rgba(5, 8, 15, 0.4);
    overflow: hidden;
}

.form label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text);
}

input,
select,
textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 12px 12px;
    background: rgba(7, 11, 19, 0.35);
    color: var(--text);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(148, 163, 184, 0.8);
}

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

.contact__info p {
    margin: 10px 0;
}

/* Footer */
.footer {
    padding: 26px 0;
    border-top: 1px solid var(--border);
    background: rgba(7, 11, 19, 0.55);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}

.footer__brand {
    margin: 0 0 4px;
    font-weight: 900;
}

.footer__logo {
    width: clamp(140px, 20vw, 220px);
    height: 36px;
    display: block;
    object-fit: cover;
    object-position: left center;
}

.footer__social {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
}

.footer a {
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}

.footer__social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.footer__social a svg {
    width: 18px;
    height: 18px;
    display: block;
}

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

.footer__social a:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

/* Pricing upgrades */
.pricing {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing__top {
    margin-bottom: 10px;
}

.pricing--recommended {
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 18px 60px rgba(34, 197, 94, 0.1);
}

.pricing__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--text);
    font-weight: 800;
    font-size: 12px;
}

.pricing--dark {
    background: radial-gradient(circle at 15% 0%,
            rgba(82, 136, 255, 0.6),
            transparent 45%),
        radial-gradient(circle at 100% 10%,
            rgba(79, 209, 197, 0.3),
            transparent 55%),
        linear-gradient(175deg,
            rgba(23, 56, 126, 0.95),
            rgba(12, 18, 36, 0.85));
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 45px 100px rgba(14, 48, 119, 0.45);
}

.pricing .btn {
    margin-top: auto;
    align-self: center;
}

.addons {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.addons__title {
    margin: 0 0 14px;
    font-size: 18px;
    letter-spacing: -0.2px;
}

.addon {
    position: relative;
    padding: 18px;
    border-radius: calc(var(--radius) - 4px);
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.18),
            rgba(7, 12, 25, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 26px 65px rgba(5, 8, 17, 0.5);
    overflow: hidden;
}

.addon::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 0%,
            rgba(34, 197, 94, 0.15),
            transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.addon strong {
    display: block;
    font-size: 16px;
}

.addon .muted {
    color: rgba(229, 231, 235, 0.85);
}

/* Responsive */
@media (max-width: 980px) {
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero__visual {
        min-height: 260px;
    }

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

    .footer__social {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .cards-3 {
        grid-template-columns: 1fr;
    }

    .cards-4 {
        grid-template-columns: 1fr;
        /* FIX: 1 columna en mobile */
    }

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

    .nav__toggle {
        display: inline-flex;
    }

    .nav__menu {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
        margin: 0;
        margin-left: 0;
        background: rgba(7, 11, 19, 0.94);
        border: 1px solid var(--border);
        border-radius: calc(var(--radius) + 4px);
        box-shadow: 0 30px 70px rgba(5, 8, 17, 0.55);
        backdrop-filter: blur(14px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 20;
    }

    .nav__menu.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav__menu a {
        font-size: 15px;
        display: block;
        padding: 4px 0;
    }

    .nav__cta {
        display: none;
    }
}
