/* === Pricing === */
.pricing {
    display: flex;
    flex-direction: column;
    gap: 42px;
}

.pricing__head {
    max-width: 780px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    padding: 6px 18px 6px 16px;
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .5);
    font-size: .8rem;
}

.billing-toggle__switch {
    width: 52px;
    height: 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: linear-gradient(135deg, #0e1426, #121a30);
    position: relative;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: .35s cubic-bezier(.33, .8, .4, 1);
}

.billing-toggle__switch:focus-visible {
    box-shadow: 0 0 0 4px rgba(108, 124, 255, .35);
}

.billing-toggle__knob {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C7CFF, #56E39F);
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6);
    transition: .35s cubic-bezier(.33, .8, .4, 1);
}

.pricing[data-billing="annual"] .billing-toggle__knob {
    transform: translateX(22px);
}

.billing-toggle__save {
    color: var(--accent);
    font-weight: 600;
}

.pricing__head {
    display: block;
}

.pricing__head-main {
    max-width: 780px;
}

.pricing__mode-toggle {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 8px 14px 9px;
    font: 500 .63rem Inter, sans-serif;
    letter-spacing: .7px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    gap: .5rem;
    transition: .25s;
    position: relative;
    margin-top: -4px;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .45);
}

.pricing__grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

@media (max-width:1000px) {
    .pricing__grid {
        grid-template-columns: 1fr;
    }
}

/* Plan card (moved back after patch fix) */
.plan {
    position: relative;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 26px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 14px 36px -10px rgba(0, 0, 0, .55);
    overflow: hidden;
}

.plan:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px 260px at 120% -10%, rgba(108, 124, 255, .25), transparent 70%), radial-gradient(320px 200px at -10% 120%, rgba(86, 227, 159, .20), transparent 70%);
    opacity: .55;
    pointer-events: none;
}

.plan__badge {
    position: absolute;
    top: 12px;
    right: -20px;
    /* se oculta la cola pero se ve el texto */
    background: linear-gradient(135deg, #6C7CFF, #56E39F);
    color: #fff;
    font: 600 .6rem Inter, sans-serif;
    letter-spacing: .85px;
    text-transform: uppercase;
    padding: 6px 46px 6px 18px;
    transform: rotate(36deg);
    box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    pointer-events: none;
}

.plan__badge-text {
    display: inline-block;
    transform: translateX(25px);
}

.plan--featured {
    border-color: rgba(255, 255, 255, .16);
    /* overflow vuelve a ocultar parte de la badge para efecto recortado */
    overflow: hidden;
}

.plan--custom {
    background: linear-gradient(135deg, #121a30, #0f1526);
}

.plan__header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan__title {
    font: 600 1.1rem Poppins, Inter, sans-serif;
    margin: 0;
    letter-spacing: .5px;
}

.plan__tagline {
    margin: 0;
    color: var(--muted);
    font-size: .8rem;
}

.plan__price {
    margin: 0;
    font: 700 2rem Poppins, Inter, sans-serif;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan__price-value {
    background: linear-gradient(90deg, #8EA2FF, #56E39F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.plan__price-period {
    font: 600 .75rem Inter, sans-serif;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted);
}

.plan__features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .82rem;
    color: #d2d8e6;
}

.plan__features li {
    position: relative;
    padding-left: 20px;
}

.plan__features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C7CFF, #56E39F);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}

.plan__features .feat {
    display: inline-block;
}

/* (Quitado ajuste que ocultaba bullet en modo cliente para li.dual) */

.plan__features .feat+.feat {
    margin-left: 6px;
}

/* Por defecto SOLO técnico visible */
.feat--plain {
    display: none !important;
    color: #b9c2d4;
    font-weight: 500;
}

/* En modo cliente invertimos SOLO spans de características (botones CTA no se ven afectados) */
.pricing[data-mode="client"] .feat--tech {
    display: none !important;
}

.pricing[data-mode="client"] .feat--plain {
    display: inline-block !important;
}

.pricing__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.pricing__mode-toggle {
    align-self: flex-start;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 8px 14px 9px;
    font: 500 .63rem Inter, sans-serif;
    letter-spacing: .7px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    gap: .5rem;
    transition: .25s;
    position: relative;
}

.pricing__mode-toggle:before {
    content: '🔁';
    font-size: .85rem;
}

.pricing__mode-toggle[aria-pressed="true"] {
    background: var(--primary);
    border-color: var(--primary-600);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.pricing__mode-toggle[aria-pressed="true"]:before {
    content: '👤';
}

.pricing__mode-toggle:hover {
    background: rgba(255, 255, 255, .12);
}

.pricing__mode-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width:1000px) {
    .pricing__mode-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
}

.plan__cta {
    margin-top: auto;
}

.plan .btn {
    width: 100%;
    justify-content: center;
}

.plan {
    transition: transform .55s cubic-bezier(.33, .8, .4, 1), border-color .4s;
}

.plan:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, .20);
}

.plan--featured:hover {
    border-color: rgba(255, 255, 255, .28);
}

/* Animación de cambio mensual/anual */
.plan__price-value {
    transition: .5s cubic-bezier(.55, .2, .3, 1);
}

.pricing[data-billing="annual"] .plan__price-value {
    filter: drop-shadow(0 0 6px rgba(86, 227, 159, .35));
}

.pricing__note {
    font-size: .7rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #7f8aa2;
    margin: 6px 0 0;
}

/* Moved styles from root to assets/css */

/* Base theme */
:root {
    --bg: #0b0f19;
    /* fondo oscuro elegante */
    --panel: #0f1526;
    /* panel cards/nav */
    --elev: #121a30;
    /* elevación suave */
    --text: #e6e9f2;
    /* texto principal */
    --muted: #aab0c0;
    /* texto secundario */
    --primary: #6C7CFF;
    /* acento principal */
    --primary-600: #5a69ff;
    --primary-700: #4a59e6;
    --accent: #56E39F;
    /* acento secundario */
    --danger: #ff6b6b;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background:
        radial-gradient(1200px 800px at 80% -10%, rgba(108, 124, 255, .20), transparent 60%),
        radial-gradient(800px 600px at -10% 20%, rgba(86, 227, 159, .12), transparent 55%),
        var(--bg);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
    /* evita scroll horizontal accidental y shrink-to-fit en móvil */
}

/* Hard clamp to viewport width to evitar pequeño gap derecho en algunos navegadores tras zoom */
html {
    width: 100%;
    overflow-x: hidden;
}

body,
.site-root {
    max-width: 100%;
    position: relative;
}

/* Utilidad opcional para permitir overflow controlado */
.allow-overflow {
    max-width: unset !important;
}

/* Bloquea paneo horizontal (browsers compatibles) manteniendo scroll vertical */
body {
    touch-action: pan-y;
    overscroll-behavior-x: none;
}

.mini-steps {
    counter-reset: step;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    list-style: none;
    padding: 0;
    margin: .25rem 0 1.25rem;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .3px;
    color: var(--color-text-light);
}

.mini-steps li {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: .4rem .65rem .45rem;
    border-radius: 2rem;
    line-height: 1.1;
    white-space: nowrap;
}

.mini-steps li span {
    font-weight: 600;
    color: var(--color-accent);
}

/* Scroll anchor offset (compensa header sticky) */
section[id],
header[id] {
    scroll-margin-top: 78px;
}

@media (max-width:760px) {

    section[id],
    header[id] {
        scroll-margin-top: 84px;
    }
}

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

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

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* A11y utility */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form__hp {
    position: relative;
}

/* Layout helpers */
/* Container: reemplazamos width:min(100% - 2rem, max) que en algunos navegadores podía producir rounding overflow */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1rem;
}

.section {
    padding: 88px 0;
}

.section--alt {
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02));
}

.section--cta {
    background: linear-gradient(135deg, rgba(108, 124, 255, .15), rgba(86, 227, 159, .10));
    border-top: 1px solid rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* Override body radial blobs behind the about section to keep it plano oscuro */
#about.section {
    background: #0b0f19;
    /* solid base without blue/green radials */
}

.section__title {
    font: 700 2rem Poppins, Inter, sans-serif;
    margin: 0 0 8px;
}

.section__subtitle {
    color: var(--muted);
    margin: 0 0 28px;
}

.lead {
    /* antes tenía un tono distinto; se normaliza para evitar salto de color */
    color: inherit;
}

.lead-em {
    font-weight: 600;
    background: linear-gradient(90deg, #8EA2FF, #56E39F);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 15, 25, .6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.logo {
    font: 700 22px Poppins, Inter, sans-serif;
    letter-spacing: .5px;
}

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

.nav__list {
    display: flex;
    gap: 18px;
}

.nav__link {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--muted);
}

.nav__link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.nav__cta {
    margin-left: 6px;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
}

.nav__toggle--enhanced {
    position: relative;
    width: 36px;
    height: 30px;
    justify-content: center;
    align-items: center;
}

.nav__toggle--enhanced .nav__bar {
    transition: .35s cubic-bezier(.33, .8, .4, 1);
    width: 26px;
}

.nav.open~.nav__toggle--enhanced .nav__bar {
    background: #dfe3f1;
}

.nav__toggle--enhanced .nav__bar:nth-child(1) {
    transform-origin: left center;
}

.nav__toggle--enhanced .nav__bar:nth-child(3) {
    transform-origin: left center;
}

.nav.open~.nav__toggle--enhanced .nav__bar:nth-child(2) {
    opacity: 0;
    transform: translateX(6px);
}

.nav.open~.nav__toggle--enhanced .nav__bar:nth-child(1) {
    transform: rotate(42deg) translate(3px, -1px);
}

.nav.open~.nav__toggle--enhanced .nav__bar:nth-child(3) {
    transform: rotate(-42deg) translate(3px, 1px);
}

.nav__bar {
    width: 24px;
    height: 2px;
    background: #dfe3f1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .16);
    transition: .2s ease;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(108, 124, 255, .25);
}

.btn--primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}

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

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

/* Hero */
.hero {
    padding: 120px 0 80px;
    position: relative;
}

.hero--cover {
    background:
        linear-gradient(180deg, rgba(11, 15, 25, 0.70), rgba(11, 15, 25, 0.80)),
        url('../img/cover-placeholder.svg') center/cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 42px;
    align-items: center;
}

.hero__title {
    font: 700 clamp(28px, 4.2vw, 52px) Poppins, Inter, sans-serif;
    line-height: 1.1;
    margin: 0 0 12px;
}

.grad {
    background: linear-gradient(90deg, #8EA2FF, #56E39F);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    color: var(--muted);
    max-width: 60ch;
    margin-bottom: 22px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.hero__badges {
    display: flex;
    gap: 12px;
    color: #c8cee0;
    flex-wrap: wrap;
}

.hero__badges li {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, .04);
}

.hero__preview {
    position: relative;
    min-height: 340px;
}

.device {
    position: absolute;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45));
}

.device--laptop {
    right: -6%;
    left: -2%;
    bottom: -6%;
}

.device--phone {
    right: -8%;
    bottom: -16%;
    transform: rotate(-6deg);
}

.device img {
    width: 100%;
    height: auto;
    max-width: 540px;
}

.device__screen {
    position: absolute;
    inset: auto 0 8% 0;
    margin: auto;
    max-width: 72%;
    height: 52%;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .00)),
        radial-gradient(600px 280px at 10% -20%, rgba(108, 124, 255, .35), transparent 60%),
        radial-gradient(300px 200px at 120% 120%, rgba(86, 227, 159, .25), transparent 50%),
        #0f1426;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    overflow: hidden;
}

.device__screen:before,
.device__screen:after {
    content: "";
    display: block;
}

.device__screen:before {
    height: 34%;
    background: linear-gradient(135deg, rgba(108, 124, 255, .22), rgba(86, 227, 159, .18));
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.device__screen:after {
    height: calc(100% - 34%);
    background:
        linear-gradient(transparent 0, transparent 18%, rgba(255, 255, 255, .06) 18%, rgba(255, 255, 255, .06) 19%, transparent 19%),
        linear-gradient(transparent 0, transparent 36%, rgba(255, 255, 255, .05) 36%, rgba(255, 255, 255, .05) 37%, transparent 37%),
        linear-gradient(transparent 0, transparent 56%, rgba(255, 255, 255, .04) 56%, rgba(255, 255, 255, .04) 57%, transparent 57%),
        linear-gradient(transparent 0, transparent 76%, rgba(255, 255, 255, .03) 76%, rgba(255, 255, 255, .03) 77%, transparent 77%),
        linear-gradient(180deg, #0e1426, #0b0f19);
}

.device__screen--laptop {
    left: 14%;
    right: 14%;
    top: 18%;
}

.device__screen--phone {
    left: 26%;
    right: 26%;
    top: 28%;
    height: 56%;
    max-width: 48%;
    border-radius: 14px;
}

/* Utility: allow using real screenshots later */
.device__screen[data-img] {
    background-size: cover;
    background-position: center;
    border: none;
}

/* Grid / cards */
.grid {
    display: grid;
    gap: 22px;
}

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

.card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s;
}

.card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .14);
}

.card__icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.card__title {
    font-weight: 700;
    margin: 6px 0;
}

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

/* Portfolio */
.project {
    display: block;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s ease, border-color .2s;
    cursor: pointer;
}

.project:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .14);
}

.project:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.project__thumb {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    aspect-ratio: 16/9;
    overflow: hidden;
    background:
        radial-gradient(400px 200px at -10% -20%, rgba(108, 124, 255, .35), transparent 50%),
        radial-gradient(300px 160px at 120% 120%, rgba(86, 227, 159, .28), transparent 40%),
        linear-gradient(135deg, #0e1426, #0b0f19);
}

.project__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project__body {
    padding: 14px;
}

.project__title {
    margin: 0;
}

.project__meta {
    color: var(--muted);
    margin: .2rem 0 0;
}

/* About */
.about__grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 32px;
    align-items: center;
}

.avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background:
        radial-gradient(150px 100px at 20% 10%, rgba(108, 124, 255, .35), transparent 50%),
        radial-gradient(140px 120px at 80% 90%, rgba(86, 227, 159, .3), transparent 40%),
        linear-gradient(135deg, #0e1426, #0b0f19);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow);
}

/* About photo */
.about__photo {
    margin: 0;
    position: relative;
    display: inline-block;
    border-radius: 24px;
    overflow: hidden;
    background: #0f1526;
    /* neutral panel color (sin degradados llamativos) */
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .55);
    max-width: 340px;
}

/* Variante opcional (no aplicada) para eliminar totalmente cualquier fondo si se desea:
.about__photo--transparent { background: none; border: none; box-shadow: none; }
*/

.about__photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 1/1;
    filter: saturate(1.08) contrast(1.05);
}

@media (max-width: 1000px) {
    .about__photo {
        max-width: 260px;
    }
}

@media (max-width: 760px) {
    .about__photo {
        max-width: 220px;
        margin-bottom: 18px;
    }
}

.list {
    color: #ced3e3;
}

.kpis {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.kpi {
    background: var(--elev);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 12px 16px;
    text-align: center;
}

.kpi__num {
    display: block;
    font: 700 22px Poppins, Inter, sans-serif;
}

.kpi__label {
    color: var(--muted);
    font-size: .9rem;
}

/* About enhancements */
.about__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px;
    padding: 0;
    list-style: none;
}

.highlight {
    background: linear-gradient(135deg, rgba(108, 124, 255, .18), rgba(86, 227, 159, .14));
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 600;
    color: #dfe3f4;
}

/* Nueva lista simple en About (sin chips) */
.about__points {
    list-style: none;
    margin: 14px 0 24px;
    padding: 0;
    display: grid;
    gap: 6px;
    max-width: 50ch;
}

.about__points li {
    position: relative;
    padding-left: 18px;
    font-size: .8rem;
    color: #c9cfdd;
    line-height: 1.35;
}

.about__points li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C7CFF, #56E39F);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .4);
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.value-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 16px 16px 14px;
    position: relative;
    overflow: hidden;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.value-card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(220px 140px at 20% 0%, rgba(108, 124, 255, .22), transparent 60%),
        radial-gradient(200px 120px at 110% 110%, rgba(86, 227, 159, .18), transparent 65%);
    opacity: .9;
    pointer-events: none;
}

.value-card__icon {
    font-size: 22px;
}

.value-card__title {
    font-size: .9rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: .5px;
}

.value-card__text {
    font-size: .8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.35;
}

.timeline {
    position: relative;
    margin: 20px 0 34px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 255, 255, .08);
    display: grid;
    gap: 14px;
    list-style: none;
    counter-reset: step;
    padding-inline-start: 12px;
}

.timeline--clean {
    border-left: 0;
    padding-left: 0;
    padding-inline-start: 0;
}

.timeline--clean .step__dot {
    left: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .08), 0 4px 10px -2px rgba(0, 0, 0, .5);
}

.timeline--clean .step {
    padding-left: 28px;
}

.timeline--clean .step__body {
    padding-left: 0;
}

.step {
    position: relative;
    display: flex;
    gap: 12px;
}

.step__dot {
    position: absolute;
    left: -13px;
    top: 6px;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .08), 0 4px 10px -2px rgba(0, 0, 0, .5);
}

.step__body {
    padding-left: 10px;
}

.step__title {
    margin: 0 0 2px;
    font-size: .82rem;
    letter-spacing: .5px;
    font-weight: 600;
    text-transform: uppercase;
}

.step__text {
    margin: 0;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.35;
}

.kpis--expanded {
    flex-wrap: wrap;
    display: flex;
    padding: 0;
    list-style: none;
}

.kpis--expanded .kpi {
    flex: 1 1 120px;
}

@media (max-width: 760px) {
    .values {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        margin-top: 10px;
    }
}

/* Contact */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.form {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form__field span {
    color: #cdd3e6;
    font-weight: 500;
}

.form input,
.form textarea {
    background: #0c1224;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.form input:focus,
.form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 124, 255, .18);
}

.form__message {
    margin-top: 10px;
    color: #b8f3d6;
}

.form__counter {
    display: block;
    margin-top: 4px;
    font-size: .7rem;
    letter-spacing: .5px;
    color: var(--muted);
    text-align: right;
}

.form__counter.warning {
    color: #ffdf91;
}

.form__counter.danger {
    color: var(--danger);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: rgba(11, 15, 25, .6);
    backdrop-filter: blur(8px);
}

/* Footer layout */
.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 0 40px;
}

.footer__brand {
    flex: 1 1 200px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__logo {
    font: 600 1.05rem Poppins, Inter, sans-serif;
    margin: 0;
    letter-spacing: .6px;
}

.footer__claim {
    margin: 0;
    font-size: .72rem;
    line-height: 1.4;
    color: var(--muted);
}

.footer__copy {
    margin: 4px 0 0;
    font-size: .65rem;
    color: #6f788a;
    letter-spacing: .5px;
}

.footer__col {
    flex: 1 1 140px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__title {
    margin: 0 0 4px;
    font: 600 .72rem Inter, sans-serif;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: #8b94a8;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer__list a,
.footer__list button {
    font-size: .74rem;
    color: #cfd5e9;
    text-align: left;
    background: none;
    border: 0;
    padding: 4px 0;
    border-radius: 6px;
    line-height: 1.3;
    cursor: pointer;
}

.footer__list a:hover,
.footer__list button:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.footer__mini {
    margin: 0 0 10px;
    font-size: .7rem;
    line-height: 1.4;
    color: var(--muted);
}

.footer__cta-btn {
    font-size: .72rem;
    padding: 10px 16px;
}

.footer__cta-col {
    flex: 1 1 180px;
}

@media (max-width:720px) {
    .footer__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 28px;
        padding: 22px 0 24px;
        align-items: start;
    }

    .footer__brand {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin: 0 0 6px;
    }

    .footer__logo {
        font-size: 1rem;
    }

    .footer__claim {
        display: block;
        font-size: .7rem;
        line-height: 1.4;
        max-width: 44ch;
    }

    .footer__copy {
        font-size: .58rem;
        margin: 2px 0 0;
        letter-spacing: .45px;
    }

    .footer__site {
        order: 1;
    }

    .footer__legal {
        order: 2;
    }

    .footer__col {
        padding: 0;
        min-width: 0;
    }

    .footer__title {
        font-size: .62rem;
        letter-spacing: .7px;
        margin: 0 0 3px;
    }

    .footer__list {
        gap: 2px;
    }

    .footer__list a,
    .footer__list button {
        padding: 2px 0;
        font-size: .62rem;
        line-height: 1.3;
    }
}

@media (max-width:480px) {
    .footer__inner {
        gap: 10px 20px;
        padding: 18px 0 20px;
    }

    .footer__logo {
        font-size: .92rem;
    }

    .footer__claim {
        font-size: .66rem;
    }

    .footer__list a,
    .footer__list button {
        font-size: .6rem;
    }

    .footer__copy {
        font-size: .52rem;
    }
}

/* Lightbox */
.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 40px);
    backdrop-filter: blur(6px);
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
}

.lightbox__figure {
    position: relative;
    max-width: min(1100px, 92vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(18, 22, 32, .9);
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 18px 18px 22px;
    border-radius: 14px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .6);
}

.lightbox__img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 4px 16px -4px rgba(0, 0, 0, .5);
}

.lightbox__caption {
    font-size: .7rem;
    line-height: 1.35;
    letter-spacing: .3px;
    color: #b9c2d4;
    margin: 0;
}

.lightbox__close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    border: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    line-height: 1;
    font-size: 1.4rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s;
}

.lightbox__close:hover {
    background: rgba(0, 0, 0, .7);
}

.seo-proof__zoom {
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    display: block;
    line-height: 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.seo-proof__zoom:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.seo-proof__zoom img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .4s ease;
}

.seo-proof__zoom:hover img {
    transform: scale(1.02);
}

/* Floating CTA (mobile) */
.floating-cta {
    position: fixed;
    bottom: 18px;
    right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
    color: #fff;
    font: 600 14px/1 Inter, sans-serif;
    padding: 14px 18px;
    border-radius: 999px;
    box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08);
    text-decoration: none;
    z-index: 120;
    transition: .25s cubic-bezier(.4, .2, .2, 1);
}

.floating-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px -6px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .12);
}

.floating-cta:active {
    transform: translateY(0);
}

@media (min-width: 861px) {
    .floating-cta {
        display: none;
    }
}

/* Microinteracciones KPIs */
.kpi {
    position: relative;
    overflow: hidden;
}

.kpi:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(240px 160px at 20% 0%, rgba(108, 124, 255, .18), transparent 70%);
    opacity: 0;
    transition: .45s ease;
}

.kpi:hover:before {
    opacity: 1;
}

.kpi {
    transition: transform .35s cubic-bezier(.33, .8, .45, 1), border-color .3s ease;
}

.kpi:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .14);
}

/* Fade-in on scroll */
[data-fade] {
    opacity: 0;
    transform: translateY(26px);
    will-change: transform, opacity;
    transition: .8s cubic-bezier(.33, .8, .4, 1);
}

[data-fade].is-visible {
    opacity: 1;
    transform: none;
}

.footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 100%;
}

.footer__links a {
    color: #cfd5e9;
    font-size: .78rem;
    padding: 4px 6px;
    line-height: 1.2;
}

.footer__links a:hover {
    color: #fff;
}

/* (Eliminada barra inferior móvil) */

/* Cookie Preferences link */
.link--cookie {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    padding: 4px 8px;
    border-radius: 8px;
}

.link--cookie:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.link--policy {
    background: none;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    padding: 4px 8px;
    border-radius: 8px;
}

.link--policy:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.link--legal {
    background: none;
    border: 0;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 8px;
}

.link--legal:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.cookie-opt--disabled {
    opacity: .45;
    cursor: not-allowed;
}

.cookie-link {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--primary-600);
}

[data-fade].is-visible {
    opacity: 1;
    transform: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    background: rgba(11, 15, 25, .88);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    z-index: 140;
    animation: slideUp .6s cubic-bezier(.33, .8, .4, 1);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 26px 1.5rem 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.cookie-banner__text {
    flex: 1 1 420px;
    min-width: 300px;
}

.cookie-banner__title {
    margin: 0 0 4px;
    font: 600 1.1rem Inter, sans-serif;
}

.cookie-banner__desc {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .9rem;
}

.cookie-banner__details summary {
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 6px;
}

.cookie-banner__details {
    font-size: .75rem;
    color: var(--muted);
}

.cookie-list {
    margin: 0 0 10px 18px;
    padding: 0;
    list-style: disc;
}

.cookie-list li {
    margin-bottom: 6px;
}

.cookie-form {
    margin-top: 8px;
}

.cookie-opt {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #d0d5e5;
}

.cookie-opt input {
    accent-color: var(--primary);
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cookie-btn {
    font-size: .85rem;
}

@media (max-width: 680px) {
    .cookie-banner__inner {
        flex-direction: column;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__actions .btn {
        flex: 1;
        justify-content: center;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1000px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

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

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

    /* Tablet: center devices and avoid absolute overflow */
    .hero__preview {
        min-height: auto;
        display: flex;
        gap: 12px;
        align-items: center;
        justify-content: center;
        padding-top: 6px;
        position: relative;
    }

    .device {
        position: relative;
    }

    .device--laptop {
        right: auto;
        left: auto;
        bottom: auto;
        max-width: 72%;
    }

    .device--phone {
        right: auto;
        bottom: auto;
        transform: none;
        max-width: 28%;
        margin-left: -8px;
    }

    .device img {
        max-width: 100%;
    }
}

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

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

    .nav__toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: var(--header-h, 60px);
        left: 0;
        right: 0;
        background: rgba(11, 15, 25, .94);
        backdrop-filter: blur(14px);
        border-top: 1px solid rgba(255, 255, 255, .06);
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding: 20px clamp(16px, 5vw, 28px) 28px;
        flex-direction: column;
        gap: 14px;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: .28s cubic-bezier(.33, .8, .4, 1);
        max-height: calc(100dvh - var(--header-h, 60px));
        overflow-y: auto;
    }

    .nav.open {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    body.menu-open {
        overflow: hidden;
    }

    .nav__list {
        flex-direction: column;
        gap: 4px;
    }

    .nav__link {
        display: block;
        width: 100%;
        font-size: .95rem;
        padding: 12px 14px;
        background: rgba(255, 255, 255, .02);
    }

    .nav__link:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    .nav__link:hover {
        background: rgba(255, 255, 255, .06);
    }

    .nav__cta {
        width: 100%;
        margin-top: 8px;
    }

    .nav__list {
        flex-direction: column;
    }

    .nav__cta {
        width: 100%;
        justify-content: center;
    }

    /* Hide device mockups on small screens to avoid overflow/misalignment */
    .hero__preview {
        display: none;
    }

    .hero {
        padding: 96px 0 56px;
    }

    /* Ajustar títulos grandes para pantallas muy pequeñas */
    .section__title {
        font-size: 1.6rem;
    }

    .plan__price {
        font-size: 1.6rem;
    }
}

/* === Before / After Comparison (Hero) === */
.compare {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16/10;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    overflow: hidden;
    background: #0e1422;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5);
    user-select: none;
}

.compare__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare__after-wrapper {
    position: absolute;
    inset: 0;
    width: 50%;
    overflow: hidden;
    will-change: width;
}

.compare.dragging .compare__after-wrapper {
    transition: none !important;
}

.compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: 0;
    padding: 0;
    cursor: ew-resize;
    outline: none;
    touch-action: none;
}

.compare__handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, #6C7CFF, #56E39F);
    transform: translateX(-50%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}

.compare__handle-knob {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6C7CFF, #56E39F);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .5);
    border: 2px solid #121a30;
}

.compare__handle:focus-visible .compare__handle-knob {
    box-shadow: 0 0 0 4px rgba(108, 124, 255, .35);
}

.compare__label {
    position: absolute;
    top: 10px;
    font: 600 12px/1 Inter, sans-serif;
    letter-spacing: .6px;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .45);
    padding: 6px 10px 5px;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .08);
}

.compare__label--before {
    left: 12px;
}

.compare__label--after {
    right: 12px;
}

@media (max-width: 1000px) {
    .compare {
        margin-top: 30px;
    }
}

@media (max-width: 760px) {
    .compare {
        aspect-ratio: 16/11;
    }
}

/* === SEO Proof Section === */
.seo-proof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: start;
}

.seo-proof__figure {
    margin: 0;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
}

.seo-proof__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.seo-proof__caption {
    font-size: .75rem;
    color: var(--muted);
    margin-top: 6px;
    text-align: center;
}

.seo-proof__content p {
    max-width: 60ch;
}

@media (max-width: 1000px) {
    .seo-proof {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .seo-proof__figure {
        padding: 8px;
    }
}