:root {
    --p1: #0d2a7a;
    --p2: #1251aa;
    --p3: #1565c0;
    --sky: #1976d2;
    --cyan: #2196f3;
    --accent: #f97316;
    --accent2: #fb923c;
    --navy: #060f1e;
    --slate: #0d1f3c;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    background: #fff;
    color: var(--navy);
    overflow-x: hidden;
    max-width: 100vw;
}

/* ─── TOPBAR ─── */
.topbar {
    background: #060e2d;
    padding: 0.45rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    position: relative;
    z-index: 1001;
}

.topbar-left {
    display: flex; align-items: center; gap: 1rem;
}

.topbar-promo {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--accent); color: #fff;
    font-size: .68rem; font-weight: 800; letter-spacing: .4px;
    padding: .22rem .75rem; border-radius: 50px;
    text-transform: uppercase; white-space: nowrap;
    animation: pulse-promo 2.5s ease-in-out infinite;
}
.topbar-promo i { font-size: .65rem; }

@keyframes pulse-promo {
    0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.5); }
    50%       { box-shadow: 0 0 0 6px rgba(249,115,22,0); }
}

.topbar-socials {
    display: flex; align-items: center; gap: .55rem;
}
.topbar-social {
    width: 24px; height: 24px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.55); font-size: .75rem;
    text-decoration: none; transition: all .2s;
    background: rgba(255,255,255,.06);
}
.topbar-social:hover { color: #fff; background: rgba(255,255,255,.14); text-decoration: none; }
.topbar-social.wa:hover  { background: #25d366; color: #fff; }
.topbar-social.fb:hover  { background: #1877f2; color: #fff; }
.topbar-social.ig:hover  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }

.topbar-right {
    display: flex; align-items: center; gap: 1.1rem;
}

.topbar-item {
    display: flex; align-items: center; gap: 0.38rem;
    color: rgba(255,255,255,.88);
    text-decoration: none;
    transition: color .2s;
    font-weight: 600; white-space: nowrap; font-size: .8rem;
}
.topbar-item:hover { color: #fff; text-decoration: none; }
.topbar-item i { color: #60a5fa; font-size: .75rem; flex-shrink: 0; }

.topbar-div { width:1px; height:14px; background:rgba(255,255,255,.1); }

/* ─── NAV ─── */
nav {
    position: fixed; top: 30px; left: 0; right: 0; z-index: 1000;
    height: 80px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2.5rem;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.13);
    box-shadow: none;
    gap: 1rem;
    transition: background .3s, box-shadow .3s, border-color .3s, top .15s;
}
nav.nav-stuck { top: 0; }
nav.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(37,99,235,.08);
    box-shadow: 0 2px 20px rgba(37,99,235,.07);
}

.nav-logo {
    text-decoration: none;
    display: flex; align-items: center;
    flex-shrink: 0;
}
.nav-logo-bg {
    display: flex; align-items: center; justify-content: center;
    background: rgba(234, 88, 12, 0.75);
    border-radius: 10px;
    padding: 5px 10px;
    transition: background .3s;
}
nav.scrolled .nav-logo-bg {
    background: transparent;
}
.nav-logo-img {
    height: 38px; width: auto;
    transition: opacity .35s ease;
}
.nav-logo { position: relative; display: flex; align-items: center; }
.nav-logo-white { opacity: 1; }
.nav-logo-dark { position: absolute; left: 0; top: 50%; transform: translateY(-50%); opacity: 0; }
nav.scrolled .nav-logo-white { opacity: 0; }
nav.scrolled .nav-logo-dark { opacity: 1; }

/* Nav links */
.nav-links {
    display: flex; align-items: center; gap: .15rem;
    flex: 1; justify-content: center;
}

.nav-link {
    color: rgba(255,255,255,.92); font-size: 1.05rem; font-weight: 600;
    text-decoration: none; padding: .55rem 1.1rem;
    border-radius: 8px;
    transition: all .2s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: .4rem;
}
.nav-link i { font-size: .85rem; opacity: .75; transition: opacity .2s; }
.nav-link:hover i, .nav-link.active i { opacity: 1; }
.nav-link:hover {
    color: #fff; background: rgba(255,255,255,.15);
    text-decoration: none;
}
.nav-link.active { color: #fff; }
nav.scrolled .nav-link { color: #374151; }
nav.scrolled .nav-link:hover { color: var(--p2); background: rgba(37,99,235,.07); }
nav.scrolled .nav-link.active { color: var(--p2); }

/* Nav actions */
.nav-actions {
    display: flex; align-items: center; gap: .75rem;
    flex-shrink: 0;
}

.nav-cart {
    position: relative; display: flex; align-items: center;
    justify-content: center; width: 40px; height: 40px;
    border-radius: 10px; color: rgba(255,255,255,.9);
    text-decoration: none; font-size: 1rem;
    transition: all .2s;
    background: rgba(255,255,255,.12);
}
.nav-cart:hover { background: rgba(255,255,255,.22); color: #fff; text-decoration: none; }
nav.scrolled .nav-cart { color: #374151; background: rgba(0,0,0,.04); }
nav.scrolled .nav-cart:hover { background: rgba(37,99,235,.09); color: var(--p2); }

.cart-badge {
    position: absolute; top: 4px; right: 4px;
    background: var(--p2); color: #fff;
    font-size: .58rem; font-weight: 800;
    width: 16px; height: 16px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    line-height: 1;
}

.nav-btn {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff; padding: .55rem 1.5rem;
    border-radius: 50px; font-weight: 700; font-size: .84rem;
    text-decoration: none; display: flex; align-items: center; gap: .4rem;
    transition: all .2s; white-space: nowrap;
    box-shadow: 0 4px 16px rgba(234,88,12,.45);
}
.nav-btn:hover {
    background: linear-gradient(135deg, #c2410c, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(234,88,12,.55);
    color: #fff; text-decoration: none;
}

.nav-btn-icon {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.95);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all .2s;
    border: 1px solid rgba(255,255,255,.2);
}
.nav-btn-icon:hover {
    background: rgba(255,255,255,.25);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}
nav.scrolled .nav-btn-icon {
    background: rgba(37,99,235,.08);
    color: var(--p2);
    border-color: rgba(37,99,235,.15);
}
nav.scrolled .nav-btn-icon:hover {
    background: rgba(37,99,235,.15);
    color: var(--p1);
}

/* Hamburger toggle */
.nav-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: .4rem; border-radius: 8px;
}
.nav-toggle span {
    display: block; width: 22px; height: 2px;
    background: rgba(255,255,255,.9); border-radius: 2px;
    transition: all .25s;
}
nav.scrolled .nav-toggle span { background: var(--navy); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex; align-items: flex-start;
    margin-top: 0;
    padding: calc(2.5rem + 116px) 2.5rem 4rem;
    background: linear-gradient(135deg, #060e2d 0%, #0d2a7a 35%, #1251aa 68%, #1565c0 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 55% at 0% 100%,  rgba(6,14,45,.7)     0%, transparent 55%),
        radial-gradient(ellipse 50% 55% at 100% 0%,  rgba(21,101,192,.4)  0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 55% 105%, rgba(18,81,170,.3)   0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 28px 28px;
}


.hero-inner {
    position: relative; z-index: 1;
    max-width: 1150px; margin: 0 auto; width: 100%;
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 3.5rem;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(6,182,212,.15);
    border: 1px solid rgba(6,182,212,.3);
    color: var(--cyan); padding: .35rem 1rem;
    border-radius: 50px; font-size: .75rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero-tag i { font-size: .65rem; }

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 900; line-height: 1.1; letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
}
.hero h1 .white { color: #fff; }
.hero h1 .grad {
    background: linear-gradient(90deg, var(--sky), var(--cyan));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero h1 .orange { color: var(--accent); }

.hero-desc {
    color: rgba(255,255,255,.65); font-size: 1.05rem;
    line-height: 1.75; margin-bottom: .75rem;
}
.hero-price {
    color: rgba(255,255,255,.85); font-size: .95rem;
    margin-bottom: 1.5rem;
}
.hero-price strong { color: var(--accent); font-size: 1.1rem; }

.hero-checks { list-style: none; margin-bottom: 2.25rem; }
.hero-checks li {
    display: flex; align-items: center; gap: .55rem;
    color: rgba(255,255,255,.8); font-size: .9rem; padding: .28rem 0;
}
.hero-checks li i { color: var(--cyan); font-size: .8rem; flex-shrink: 0; }

.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn-cta-main {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; padding: .9rem 2.25rem; border-radius: 50px;
    font-weight: 800; font-size: .97rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    box-shadow: 0 6px 20px rgba(249,115,22,.45);
    transition: all .2s;
}
.btn-cta-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(249,115,22,.55);
    color: #fff; text-decoration: none;
}

.btn-ghost {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff; padding: .9rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: .92rem; text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
    transition: all .2s; backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.45);
    color: #fff; text-decoration: none; transform: translateY(-2px);
}

/* ─── HERO RIGHT ─── */
.hero-visual {
    position: relative; display: flex;
    align-items: center; justify-content: center;
}
.hero-card {
    position: relative; border-radius: 24px; overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
}
.hero-carousel {
    position: relative; width: 100%; overflow: hidden; border-radius: 24px;
    aspect-ratio: 700 / 498;
}
.hero-carousel-track {
    display: flex;
    transition: transform .6s ease-in-out;
    width: 100%; height: 100%;
}
.hero-slide {
    width: 100%; flex-shrink: 0;
    border-radius: 24px;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.hero-slide img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.hero-slide--api {
    background: #edf2f8;
}
.hero-slide--api img {
    object-fit: contain;
}
.hero-carousel-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; justify-content: center; gap: .5rem;
    z-index: 3;
}
.hero-carousel-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none;
    cursor: pointer; transition: all .25s; padding: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.hero-carousel-dot.active {
    background: #fff; width: 24px; border-radius: 5px;
}
.hero-interfaz-img {
    width: 100%; height: auto; display: block; border-radius: 24px;
}
.hero-card::before {
    content: ''; position: absolute; inset: -2px;
    border-radius: 26px; z-index: -1;
    background: linear-gradient(135deg, rgba(255,165,0,.35), rgba(37,99,235,.35));
    filter: blur(18px);
}
.hero-badge-logo {
    position: absolute; top: -18px; left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    border-radius: 50px; padding: 6px 18px;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    white-space: nowrap; z-index: 5;
}
.hero-badge-logo img { height: 28px; width: auto; }

.hero-float {
    position: absolute;
    background: rgba(6,14,45,0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px; padding: .6rem 1rem;
    display: flex; align-items: center; gap: .55rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    z-index: 4;
}
.hero-float-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; flex-shrink: 0;
}
.hero-float-icon.green  { background: rgba(34,197,94,.25); color: #4ade80; }
.hero-float-icon.orange { background: rgba(251,146,60,.25); color: #fb923c; }
.hero-float-icon.blue   { background: rgba(96,165,250,.25); color: #60a5fa; }
.hero-float-text strong { display: block; font-size: .78rem; font-weight: 700; color: #fff; }
.hero-float-text span   { font-size: .68rem; color: rgba(255,255,255,.6); }

.hero-float.f1 { bottom: 28px; left: -30px; }
.hero-float.f2 { top: 60px;    right: -30px; }
.hero-float.f3 { bottom: 90px; right: -25px; }

.card-top {
    display: flex; align-items: center; gap: .75rem;
    padding-bottom: 1.25rem; margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.card-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, var(--p2), var(--sky));
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1rem; color: #fff;
}
.card-title { color: #fff; font-weight: 800; font-size: 1rem; }
.card-sub { color: rgba(255,255,255,.45); font-size: .75rem; }

.card-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .82rem;
}
.card-row:last-child { border-bottom: none; padding-bottom: 0; }
.card-lbl { color: rgba(255,255,255,.5); }
.card-val { color: #fff; font-weight: 600; }
.badge-ok {
    background: rgba(34,197,94,.18); color: #4ade80;
    padding: .18rem .65rem; border-radius: 50px;
    font-size: .7rem; font-weight: 700; letter-spacing: .3px;
}
.badge-live {
    background: rgba(14,165,233,.18); color: var(--sky);
    padding: .18rem .65rem; border-radius: 50px;
    font-size: .7rem; font-weight: 700;
}

/* ─── FEATURES ─── */
.features {
    padding: 3rem 2.5rem;
    background: #f8faff;
    position: relative;
}

.section-pill {
    display: inline-block; color: var(--p2); font-weight: 700;
    font-size: .75rem; letter-spacing: 2px; text-transform: uppercase;
    background: rgba(37,99,235,.08); padding: .32rem .9rem;
    border-radius: 50px; margin-bottom: .85rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 900; letter-spacing: -1px; margin-bottom: .9rem;
    color: var(--navy);
}
.section-sub { color: #64748b; font-size: 1rem; max-width: 520px; line-height: 1.7; }

.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .section-sub { margin: 0 auto; }

.grid-6 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(285px,1fr));
    gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.fcard {
    background: #fff; border-radius: 16px; padding: 1.85rem;
    border: 1px solid #e8efff;
    transition: all .25s; position: relative; overflow: hidden;
}
.fcard::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,.03), rgba(6,182,212,.03));
    opacity: 0; transition: opacity .25s;
}
.fcard:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(37,99,235,.1); border-color: #c7d9ff; }
.fcard:hover::before { opacity: 1; }

.fcard-icon {
    width: 50px; height: 50px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(37,99,235,.1), rgba(14,165,233,.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--p2); margin-bottom: 1.1rem;
    transition: all .25s;
}
.fcard:hover .fcard-icon {
    background: linear-gradient(135deg, var(--p2), var(--sky));
    color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.3);
}
.fcard h3 { font-size: 1rem; font-weight: 800; margin-bottom: .45rem; color: var(--navy); }
.fcard p { color: #64748b; font-size: .87rem; line-height: 1.65; }

/* ─── STATS ─── */
.stats {
    padding: 5rem 2.5rem;
    background: linear-gradient(135deg, #060e2d 0%, #0d2a7a 40%, #1251aa 75%, #1565c0 100%);
    position: relative; overflow: hidden;
}
.stats-top-wave {
    position: absolute; top: 0; left: 0; right: 0;
    line-height: 0; pointer-events: none; z-index: 1;
}
.stats-top-wave svg { display: block; width: 100%; height: 40px; }
.stats::before {
    content: ''; position: absolute;
    width: 420px; height: 420px;
    background: #00c8f0;
    border-radius: 50% 50% 50% 30% / 50% 50% 30% 50%;
    top: -120px; right: -80px;
    opacity: .18; filter: blur(2px);
    z-index: 0;
}
.stats::after {
    content: ''; position: absolute;
    width: 300px; height: 300px;
    background: #fff;
    border-radius: 50% 30% 50% 50% / 30% 50% 50% 50%;
    bottom: -100px; left: -60px;
    opacity: .08; filter: blur(1px);
    z-index: 0;
}
.stats-blob-extra {
    position: absolute;
    width: 220px; height: 220px;
    background: #00c8f0;
    border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%;
    top: 40%; left: -40px;
    opacity: .1; filter: blur(3px);
    z-index: 0; transform: translateY(-50%);
}
.stats-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.stats-label {
    text-align: center; margin-bottom: 2.5rem;
}
.stats-label p {
    font-size: .75rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: rgba(255,255,255,.5);
    display: flex; align-items: center; justify-content: center; gap: .6rem;
}
.stats-label p::before, .stats-label p::after {
    content: ''; width: 30px; height: 1px; background: rgba(255,255,255,.25);
}
.stats-label h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 900;
    color: #fff; margin-top: .5rem;
}
.feat-cards {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem;
}
.feat-card {
    background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px; padding: 2.5rem 2rem;
    text-align: center; backdrop-filter: blur(8px);
    transition: transform .25s, box-shadow .25s;
}
.feat-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
.feat-card-icon {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 1.5rem;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
}
.feat-card p { color: rgba(255,255,255,.8); font-size: .95rem; line-height: 1.7; }

/* ─── PRECIOS ─── */
.precios {
    padding: 6.5rem 2.5rem;
    background: #fff;
}

/* ─── PLAN SECTION ANIMATIONS ─── */
@keyframes pricingHeadIn {
    from { opacity: 0; transform: translateY(-30px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);     filter: blur(0); }
}
@keyframes pricingTabsIn {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes planCardIn {
    from { opacity: 0; transform: translateY(60px) scale(0.88) rotateX(6deg); }
    to   { opacity: 1; transform: translateY(0)    scale(1)    rotateX(0deg); }
}
@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

#precios .section-head  { opacity: 0; }
.plan-card              { opacity: 0; }

#precios.in-view .section-head {
    animation: pricingHeadIn .7s cubic-bezier(.25,.46,.45,.94) .05s forwards;
}
.plan-card.visible {
    animation: planCardIn .8s cubic-bezier(.22,.68,0,1.1) forwards;
}
.plans-grid .plan-card.visible:nth-child(1) { animation-delay: .3s; }
.plans-grid .plan-card.visible:nth-child(2) { animation-delay: .5s; }
.plans-grid .plan-card.visible:nth-child(3) { animation-delay: .7s; }
.plans-grid .plan-card.visible:nth-child(4) { animation-delay: .9s; }

.tab-panel.active {
    animation: tabFadeIn .45s ease forwards;
}

/* ─── ANIMACIONES STATS ─── */
@keyframes statsLabelIn {
    from { opacity: 0; transform: translateY(-18px); letter-spacing: 6px; }
    to   { opacity: 1; transform: translateY(0);     letter-spacing: 2px; }
}
@keyframes statsTitleIn {
    from { opacity: 0; transform: translateX(-60px) skewX(-4deg); filter: blur(6px); }
    to   { opacity: 1; transform: translateX(0)     skewX(0deg);  filter: blur(0); }
}
@keyframes featCardIn {
    from { opacity: 0; transform: translateY(70px) scale(0.85) rotateX(8deg); }
    to   { opacity: 1; transform: translateY(0)    scale(1)    rotateX(0deg); }
}

.stats .stats-label p  { opacity: 0; }
.stats .stats-label h2 { opacity: 0; }
.feat-card             { opacity: 0; }

.stats.in-view .stats-label p {
    animation: statsLabelIn .6s cubic-bezier(.25,.46,.45,.94) .1s forwards;
}
.stats.in-view .stats-label h2 {
    animation: statsTitleIn .8s cubic-bezier(.25,.46,.45,.94) .3s forwards;
}
.feat-card.visible {
    animation: featCardIn .75s cubic-bezier(.22,.68,0,1.1) forwards;
}
.feat-card.visible:nth-child(1) { animation-delay: .5s; }
.feat-card.visible:nth-child(2) { animation-delay: .68s; }
.feat-card.visible:nth-child(3) { animation-delay: .86s; }

/* ─── PLAN TABS ─── */
.plan-tabs {
    display: flex; justify-content: center; gap: .35rem;
    margin: 0 auto 3rem;
    background: rgba(37,99,235,.07);
    border-radius: 50px; padding: .4rem;
    width: fit-content;
}
.plan-tab {
    padding: .65rem 2.4rem; border-radius: 50px;
    border: none; background: transparent;
    color: #6b7280; font-weight: 700; font-size: .95rem;
    cursor: pointer; transition: all .25s; font-family: inherit;
}
.plan-tab.active {
    background: linear-gradient(135deg, #1251aa, #1565c0);
    color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,.35);
}
.tab-panel { display: block; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; max-width: 1050px; margin: 0 auto;
    align-items: stretch;
}
.pricing-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem; max-width: 1250px; margin: 0 auto;
    align-items: stretch;
}
.plan-docs {
    font-size: 2rem; font-weight: 900; color: var(--p2);
    letter-spacing: -1px; line-height: 1; margin-bottom: .2rem;
}
.plan-card.featured .plan-docs { color: #7dd3fc; }

.plan-card {
    border-radius: 20px; padding: 2.25rem 2rem;
    border: 2px solid #e8efff;
    transition: all .25s; position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    background: #fff;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(37,99,235,.12); border-color: #a5c1ff; }

.plan-card.featured {
    background: linear-gradient(135deg, #060e2d 0%, #0d2a7a 50%, #1251aa 100%);
    border-color: transparent;
    box-shadow: 0 20px 50px rgba(6,14,45,.5);
}
.plan-card.featured:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(6,14,45,.65); }

.plan-badge {
    position: absolute; top: 1.25rem; right: 1.25rem;
    background: var(--accent); color: #fff;
    font-size: .65rem; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase; padding: .22rem .65rem;
    border-radius: 50px;
}

.plan-name {
    font-size: .8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--p2);
    margin-bottom: .6rem;
}
.plan-card.featured .plan-name { color: rgba(255,255,255,.6); }

.plan-price {
    font-size: 2.4rem; font-weight: 900; letter-spacing: -2px;
    color: var(--navy); margin-bottom: .2rem; line-height: 1;
}
.plan-card.featured .plan-price { color: #fff; }
.plan-price small { font-size: 1.1rem; letter-spacing: 0; font-weight: 700; }

.plan-period {
    font-size: .8rem; color: #94a3b8; margin-bottom: 1.5rem;
}
.plan-card.featured .plan-period { color: rgba(255,255,255,.5); }

.plan-divider {
    height: 1px; background: #e8efff; margin-bottom: 1.5rem;
}
.plan-card.featured .plan-divider { background: rgba(255,255,255,.15); }

.plan-features {
    list-style: none; flex: 1; margin-bottom: 2rem;
}
.plan-features li {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .85rem; color: #475569; padding: .38rem 0;
}
.plan-card.featured .plan-features li { color: rgba(255,255,255,.8); }
.plan-features li i { color: var(--cyan); margin-top: .12rem; flex-shrink: 0; font-size: .8rem; }
.plan-card.featured .plan-features li i { color: #7dd3fc; }

.plan-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .85rem 1.5rem; border-radius: 50px;
    font-weight: 700; font-size: .9rem; text-decoration: none;
    transition: all .2s;
    background: rgba(37,99,235,.08); color: var(--p2);
    border: 2px solid rgba(37,99,235,.15);
}
.plan-btn:hover { background: var(--p2); color: #fff; border-color: var(--p2); text-decoration: none; }
.plan-card.featured .plan-btn {
    background: #fff; color: var(--p1); border-color: #fff;
}
.plan-card.featured .plan-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── FUNCIONALIDADES ─── */
.funciones-section {
    padding: 6rem 2.5rem;
    background: #f8faff;
}
.funcion-row {
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; gap: 4rem;
    max-width: 1100px; margin: 0 auto 5rem;
}
.funcion-row:last-child { margin-bottom: 0; }
.funcion-row.reverse { direction: rtl; }
.funcion-row.reverse > * { direction: ltr; }

.funcion-icon-wrap {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, #1251aa, #1565c0);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff; margin-bottom: 1.2rem;
    box-shadow: 0 8px 20px rgba(18,81,170,.3);
}
.funcion-label {
    font-size: .72rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--p2);
    display: flex; align-items: center; gap: .5rem;
    margin-bottom: .75rem;
}
.funcion-label::before {
    content: ''; width: 18px; height: 2px;
    background: var(--cyan); border-radius: 2px;
}
.funcion-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900; color: var(--navy);
    line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.5px;
}
.funcion-desc {
    font-size: .97rem; color: #475569; line-height: 1.8;
    margin-bottom: 1.5rem;
}
.funcion-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, #1251aa, #1565c0);
    color: #fff; font-weight: 700; font-size: .9rem;
    padding: .75rem 1.75rem; border-radius: 50px;
    text-decoration: none; transition: all .25s;
    box-shadow: 0 6px 18px rgba(18,81,170,.3);
}
.funcion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(18,81,170,.4);
    color: #fff;
}
.funcion-visual {
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(18,81,170,.18);
    border: 1px solid rgba(18,81,170,.08);
    background: #fff;
    position: relative;
}
.funcion-visual img { width: 100%; display: block; }
.funcion-visual-icon {
    border-radius: 20px;
    background: linear-gradient(135deg, #060e2d, #1251aa);
    display: flex; align-items: center; justify-content: center;
    min-height: 260px; position: relative; overflow: hidden;
}
.funcion-visual-icon::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px;
}
.funcion-visual-icon i {
    font-size: 6rem; color: rgba(255,255,255,.15); position: relative; z-index: 1;
}
.funcion-visual-icon .funcion-vis-badge {
    position: absolute; bottom: 1.5rem; left: 1.5rem;
    background: rgba(255,255,255,.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 12px; padding: .75rem 1.25rem;
    color: #fff; font-size: .85rem; font-weight: 700; z-index: 2;
}

/* ─── ANIMACIONES FUNCIONALIDADES ─── */
.funcion-row .funcion-text {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity .75s cubic-bezier(.25,.46,.45,.94),
                transform .75s cubic-bezier(.25,.46,.45,.94);
}
.funcion-row .funcion-visual {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity .75s cubic-bezier(.25,.46,.45,.94) .18s,
                transform .75s cubic-bezier(.25,.46,.45,.94) .18s;
}
.funcion-row.reverse .funcion-text { transform: translateX(70px); }
.funcion-row.reverse .funcion-visual { transform: translateX(-70px); }
.funcion-row.funcion-in .funcion-text,
.funcion-row.funcion-in .funcion-visual {
    opacity: 1;
    transform: translateX(0);
}

/* ─── PLANES GRID ─── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px; margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}
@media (max-width: 960px) { .plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans-grid { grid-template-columns: 1fr; } }

.plans-grid .plan-card { margin: 0; height: 100%; }

/* ─── DEMO CREDENTIALS ─── */
.demo-credentials {
    border: 1px solid #e2e8f0; border-radius: 14px;
    overflow: hidden; font-size: .92rem;
}
.demo-credentials-head {
    background: #f1f5f9; padding: .75rem 1.25rem;
    font-weight: 700; color: #475569; font-size: .85rem;
    border-bottom: 1px solid #e2e8f0;
}
.demo-credentials-row {
    display: flex; align-items: center;
    padding: .75rem 1.25rem; border-bottom: 1px solid #f1f5f9;
    gap: 1.5rem;
}
.demo-credentials-row:last-child { border-bottom: none; }
.demo-cred-label {
    min-width: 90px; color: #94a3b8; font-weight: 600; font-size: .85rem;
}
.demo-cred-value { color: var(--navy); font-weight: 600; }
.demo-cred-link {
    color: var(--cyan); font-weight: 600; text-decoration: none;
    word-break: break-all;
}
.demo-cred-link:hover { text-decoration: underline; }

/* ─── TESTIMONIOS ─── */
.testimonios-section {
    padding: 6.5rem 0 5rem;
    background: linear-gradient(135deg, #060e2d 0%, #0d2a7a 40%, #1251aa 75%, #1565c0 100%);
    position: relative; overflow: hidden;
}
.testimonios-section::before {
    content: ''; position: absolute;
    width: 380px; height: 380px; border-radius: 50%;
    background: rgba(6,182,212,.08);
    top: -100px; left: -80px;
}
.testimonios-section::after {
    content: ''; position: absolute;
    width: 220px; height: 220px; border-radius: 50%;
    background: rgba(255,255,255,.04);
    bottom: 40px; left: 20px;
}
.testimonios-header {
    max-width: 1100px; margin: 0 auto 3rem;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: 1.5rem; position: relative; z-index: 1;
}
.testimonios-header .testi-label {
    font-size: .72rem; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--cyan);
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin-bottom: .4rem;
}
.testimonios-header .testi-label::before { content: '•'; font-size: 1rem; }
.testimonios-header h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 900; color: #fff; line-height: 1.2; margin: 0;
}
.testi-arrows { display: flex; gap: .75rem; }
.testi-arrow {
    width: 48px; height: 48px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .95rem; transition: all .25s;
}
.testi-arrow:hover { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }
.testi-arrow.active { background: rgba(255,255,255,.9); color: var(--p2); border-color: #fff; }
.testi-carousel {
    max-width: 100%; margin: 0 5rem;
    position: relative; z-index: 1;
    overflow: hidden;
    padding: 1rem 0 1.5rem;
    border-radius: 16px;
}
@keyframes testiScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.testi-track {
    display: flex; gap: 1.5rem; width: max-content;
    animation: testiScroll 18s linear infinite;
    padding: 0 1.5rem;
}
.testi-card {
    flex: 0 0 380px;
    background: #fff; border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    text-align: center; position: relative;
    transition: transform .3s, box-shadow .3s;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.testi-card-deco {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 5px; border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, #1251aa, #06b6d4);
}
.testi-logo-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem; font-size: 1.6rem; border: 3px solid #e8efff;
}
.testi-quote {
    font-size: .92rem; color: #475569; line-height: 1.75;
    margin-bottom: 1.25rem; font-style: italic;
}
.testi-name { font-weight: 800; color: var(--navy); font-size: .95rem; }
.testi-company { font-size: .8rem; color: #94a3b8; margin-top: .2rem; }
.testi-dots {
    display: flex; justify-content: center; gap: .5rem; margin-top: 2rem;
    position: relative; z-index: 1;
}
.testi-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.3); cursor: pointer; transition: all .25s;
}
.testi-dot.active { background: #fff; width: 24px; border-radius: 4px; }

/* ─── FOOTER ─── */
footer {
    background: #03071a;
    padding: 0;
    font-size: .88rem;
    color: rgba(255,255,255,.55);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute; top: -120px; left: -180px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(circle, rgba(18,81,170,.28) 0%, transparent 65%);
    pointer-events: none;
}
footer::after {
    content: '';
    position: absolute; bottom: 60px; right: -140px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(0,200,240,.12) 0%, transparent 65%);
    pointer-events: none;
}
.footer-cta-strip {
    position: relative; z-index: 1;
    background: linear-gradient(90deg, rgba(18,81,170,.45) 0%, rgba(0,144,196,.35) 100%);
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding: 2.5rem 3.5rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.footer-cta-strip-text h3 {
    font-size: 1.25rem; font-weight: 900; color: #fff;
    letter-spacing: -.4px; margin-bottom: .3rem;
}
.footer-cta-strip-text p {
    font-size: .85rem; color: rgba(255,255,255,.55); margin: 0;
}
.footer-cta-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; padding: .8rem 2rem; border-radius: 50px;
    font-weight: 800; font-size: .9rem; text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 22px rgba(249,115,22,.4); transition: all .2s;
}
.footer-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,.55); color: #fff; text-decoration: none; }

.footer-top {
    position: relative; z-index: 1;
    max-width: 1200px; margin: 0 auto;
    padding: 5rem 2.5rem 4rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 4rem;
}
.footer-brand .footer-logo {
    display: flex; align-items: center;
    margin-bottom: 1.4rem;
}
.footer-brand .footer-logo img {
    height: 52px;
    object-fit: contain;
}
.footer-brand p {
    font-size: .84rem; line-height: 1.85;
    color: rgba(255,255,255,.4); max-width: 270px;
    margin-bottom: 2rem;
}
.footer-socials { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .25rem; }
.footer-social {
    width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 1rem;
    text-decoration: none; transition: all .22s;
}
.footer-social:hover {
    background: linear-gradient(135deg, var(--p2), var(--sky));
    border-color: transparent; color: #fff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 20px rgba(14,165,233,.35);
    text-decoration: none;
}
.footer-col h4 {
    position: relative;
    font-size: .72rem; font-weight: 800;
    color: #fff; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 1.4rem;
    padding-bottom: .7rem;
}
.footer-col h4::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--sky), var(--p2));
    border-radius: 2px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
    color: rgba(255,255,255,.45); text-decoration: none;
    font-size: .84rem; transition: all .2s;
    display: inline-flex; align-items: center; gap: 0;
}
.footer-col ul li a::before {
    content: '→';
    opacity: 0; transform: translateX(-8px);
    transition: all .2s; margin-right: 0; font-size: .75rem;
    color: var(--sky);
}
.footer-col ul li a:hover {
    color: var(--sky); gap: .4rem; text-decoration: none;
}
.footer-col ul li a:hover::before { opacity: 1; transform: translateX(0); }

.footer-contact-item {
    display: flex; align-items: flex-start; gap: .85rem;
    margin-bottom: .75rem;
    padding: .7rem .9rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 12px;
    transition: background .2s, border-color .2s;
}
.footer-contact-item:hover {
    background: rgba(14,165,233,.08);
    border-color: rgba(14,165,233,.2);
}
.footer-contact-icon {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(18,81,170,.6), rgba(14,165,233,.5));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: .8rem;
}
.footer-contact-item span {
    font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.55;
}
.footer-contact-item strong {
    display: block; font-size: .78rem; font-weight: 700;
    color: rgba(255,255,255,.75); margin-bottom: .1rem;
}

.footer-divider {
    position: relative; z-index: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,165,233,.4), rgba(18,81,170,.5), rgba(14,165,233,.4), transparent);
}
.footer-bottom {
    position: relative; z-index: 1;
    padding: 1.5rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1200px; margin: 0 auto;
    flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.25); }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a {
    font-size: .75rem; color: rgba(255,255,255,.3);
    text-decoration: none; transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--sky); }
.footer-badges { display: flex; align-items: center; gap: .65rem; }
.footer-badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .68rem; padding: .28rem .75rem; border-radius: 20px;
    background: rgba(14,165,233,.08); color: rgba(255,255,255,.45);
    border: 1px solid rgba(14,165,233,.2);
}
.footer-badge i { color: var(--sky); }

/* ─── WHATSAPP / FLOATING SOCIALS ─── */
.social-floats {
    position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
    display: flex; flex-direction: column; align-items: center; gap: .65rem;
}
.whatsapp-float, .social-float {
    width: 54px; height: 54px; border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none; transition: all .2s;
}
.whatsapp-float {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37,211,102,.45);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(37,211,102,.55); color: #fff; text-decoration: none; }
.social-float.fb {
    background: #1877f2;
    box-shadow: 0 6px 20px rgba(24,119,242,.4);
    font-size: 1.3rem;
}
.social-float.fb:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(24,119,242,.55); color: #fff; text-decoration: none; }
.social-float.ig {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 6px 20px rgba(220,39,67,.35);
    font-size: 1.3rem;
}
.social-float.ig:hover { transform: scale(1.1); box-shadow: 0 10px 28px rgba(220,39,67,.5); color: #fff; text-decoration: none; }

/* ─── BOTTOM WAVES ─── */
.hero, .features, .stats, .blog-section { position: relative; }
.hero          { padding-bottom: 200px; }
.features      { padding-bottom: calc(5rem + 110px); }
.stats         { padding-bottom: calc(4rem + 140px); }
.blog-section  { padding-bottom: calc(5rem + 260px); }

.bottom-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    overflow: hidden; line-height: 0;
    z-index: 2; pointer-events: none;
}
.bottom-wave svg { display: block; width: 100%; height: 260px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1280px) {
    nav { padding: 0 1.5rem; gap: .5rem; }
    .nav-links { gap: 0; }
    .nav-link { font-size: .88rem; padding: .45rem .7rem; }
    .nav-link i { display: none; }
    .nav-btn { font-size: .78rem; padding: .48rem 1.1rem; }
    .nav-btn-icon { width: 38px; height: 38px; font-size: 1rem; }
}
@media (max-width: 1080px) {
    nav { padding: 0 1rem; }
    .nav-link { font-size: .8rem; padding: .4rem .5rem; }
    .nav-btn { font-size: .74rem; padding: .42rem .9rem; }
    .nav-btn-icon { width: 36px; height: 36px; font-size: .95rem; }
    .nav-logo-img { height: 32px; }
    .nav-cart { width: 36px; height: 36px; font-size: .9rem; }
    .nav-actions { gap: .5rem; }
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
    .footer-brand > p { max-width: 340px; }
}

@media (max-width: 900px) {
    .topbar-left { display: none; }
    .topbar-right { width: 100%; justify-content: center; gap: .75rem; flex-wrap: wrap; }
    .testi-card { flex: 0 0 calc(100vw - 6rem); }
    .testimonios-header { flex-direction: column; align-items: center; text-align: center; padding: 0 1.5rem; }
    .testi-arrows { margin-top: .5rem; }
}

/* ══════════════════════════════════════════════
   PÁGINA API
   ══════════════════════════════════════════════ */

/* Hero API */
/* Botón volver */
.api-back-btn {
    position: fixed;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    padding: .55rem 1.2rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s;
}
.api-back-btn:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
    text-decoration: none;
    transform: translateX(-3px);
}

.api-hero { min-height: auto; padding: 5rem 2rem 180px; margin-top: 0; }
.api-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.api-hero h1 .orange { color: var(--accent); }
.api-hero .hero-sub { color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.75; margin-bottom: .5rem; }
.api-hero-checks {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.api-hero-checks li {
    color: #fff;
    font-size: .95rem;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.api-hero-checks li i {
    color: var(--accent);
    margin-top: .2rem;
    flex-shrink: 0;
}
.api-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.api-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: .45rem 1.2rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}
.api-btn-ghost {
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff;
}
.api-btn-ghost:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.45);
    color: #fff;
}

/* Bloque de código hero */
.api-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.api-hero-img-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
    max-width: 480px;
    width: 100%;
}
.api-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}
.api-code-block {
    background: #0d1117;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    border: 1px solid rgba(255,255,255,.08);
    font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
}
.api-code-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.api-code-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.api-code-dot.red { background: #ff5f57; }
.api-code-dot.yellow { background: #febc2e; }
.api-code-dot.green { background: #28c840; }
.api-code-lang {
    margin-left: auto;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    font-weight: 600;
}
.api-code-body {
    padding: 1.25rem;
    margin: 0;
    overflow-x: auto;
    font-size: .82rem;
    line-height: 1.6;
    color: #c9d1d9;
}
.api-code-body code {
    font-family: inherit;
    color: inherit;
}
.api-code-response {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 1rem;
    background: #161b22;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .78rem;
}
.api-response-status {
    color: #28c840;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.api-response-time {
    color: rgba(255,255,255,.35);
}

/* Secciones genéricas API */
.section-white {
    padding: 5rem 2rem;
    background: #fff;
}
.section-dark {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 50%, var(--p1) 100%);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Dual grid: Por Qué Elegir + Oferta */
.api-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}
.api-dual-grid--single {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin: 0 auto;
}
.api-why-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.api-why-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 1rem;
}
.api-why-card p {
    font-size: .95rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}
.api-offer-card {
    background: linear-gradient(145deg, #eef4ff 0%, #dbeafe 50%, #eff6ff 100%);
    border: 2px solid var(--p2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.api-offer-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.sparkle {
    position: absolute;
    font-size: 1.2rem;
    animation: api-sparkle 3s ease-in-out infinite;
    opacity: .6;
}
.sparkle.s1 { top: 8%; left: 10%; animation-delay: 0s; }
.sparkle.s2 { top: 15%; right: 12%; animation-delay: .8s; }
.sparkle.s3 { bottom: 20%; left: 8%; animation-delay: 1.5s; }
.sparkle.s4 { bottom: 10%; right: 10%; animation-delay: .4s; }
@keyframes api-sparkle {
    0%, 100% { opacity: .3; transform: scale(.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}
.api-offer-emoji {
    font-size: 2.5rem;
    margin-bottom: .4rem;
    animation: api-bounce 2s ease-in-out infinite;
}
@keyframes api-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.api-offer-ribbon {
    background: linear-gradient(135deg, var(--accent), #ef4444);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: .35rem 1.25rem;
    border-radius: 50px;
    margin-bottom: .75rem;
    animation: api-pulse 2s ease-in-out infinite;
}
@keyframes api-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(239,68,68,.2); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(239,68,68,.45); }
}
.api-offer-card h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--p1);
    margin: 0 0 .5rem;
}
.api-offer-urgency {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    font-size: .8rem;
    font-weight: 700;
    padding: .4rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    animation: api-shake 4s ease-in-out infinite;
}
@keyframes api-shake {
    0%, 90%, 100% { transform: translateX(0); }
    92% { transform: translateX(-3px); }
    94% { transform: translateX(3px); }
    96% { transform: translateX(-2px); }
    98% { transform: translateX(2px); }
}
.api-offer-guarantee {
    font-size: .78rem;
    color: #64748b;
    margin: 1rem 0 0;
}
.api-offer-sub {
    font-size: .9rem;
    color: #64748b;
    margin: 0 0 1.5rem;
}
.api-countdown {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.api-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.api-countdown-sep {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--p2);
    margin-bottom: .75rem;
}
.api-countdown-num {
    font-size: 2rem;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
}
.api-countdown-label {
    font-size: .75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: .25rem;
}
.api-offer-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, var(--p2), var(--p1));
    color: #fff;
    padding: .85rem 2rem;
    border-radius: 50px;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s;
    box-shadow: 0 6px 20px rgba(18,81,170,.35);
}
.api-offer-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(18,81,170,.45);
    color: #fff;
    text-decoration: none;
}
.api-offer-btn--disabled {
    background: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    opacity: .7;
}
.api-offer-btn--disabled:hover {
    transform: none;
    box-shadow: none;
}
.api-offer-card--inactive {
    opacity: .6;
    filter: grayscale(.4);
}
.api-offer-card--inactive .api-offer-sparkles,
.api-offer-card--inactive .api-offer-urgency {
    display: none;
}

/* Bloque Funciones dentro de Por Qué Elegir */
.api-funciones-block {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.api-funciones-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}
.api-funciones-pill i { font-size: .4rem; }
.api-funciones-block h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 1rem;
}
.api-funciones-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.api-funciones-list li {
    font-size: .9rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.api-funciones-list li i {
    color: #22c55e;
    font-size: .8rem;
    flex-shrink: 0;
}

/* Sección Optimiza / Beneficios */
.api-optimiza-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #0a1628 0%, #0d2a7a 40%, #1565c0 70%, #1976d2 100%);
    position: relative;
    overflow: hidden;
}
.api-optimiza-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(249,115,22,.12) 0%, transparent 70%);
    pointer-events: none;
}
.api-optimiza-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(33,150,243,.15) 0%, transparent 70%);
    pointer-events: none;
}
.api-optimiza-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 900;
    color: var(--accent);
    margin: 0 0 .75rem;
    position: relative;
}
.api-optimiza-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin: 0 0 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.api-optimiza-sub strong { color: #fff; }
.api-beneficios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    text-align: left;
    position: relative;
}
.api-beneficio-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: all .3s;
}
.api-beneficio-card:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,.12);
    box-shadow: 0 10px 28px rgba(0,0,0,.2);
    border-color: rgba(255,255,255,.25);
}
.api-beneficio-emoji {
    font-size: 1.5rem;
    margin-bottom: .25rem;
}
.api-beneficio-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .5rem;
    display: inline;
}
.api-beneficio-card p {
    font-size: .88rem;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
    margin: .5rem 0 0;
}
.api-beneficio-card p strong { color: #fff; }

/* Grid de características */
.api-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
}
.api-feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all .3s;
    opacity: 0;
    transform: translateY(20px);
}
.api-feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.api-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    border-color: var(--accent);
}
.api-feature-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
}
.api-feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 .5rem;
}
.api-feature-card p {
    font-size: .9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Grid de endpoints */
.api-endpoints-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}
.api-endpoint-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    transition: all .3s;
    opacity: 0;
    transform: translateY(15px);
}
.api-endpoint-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.api-endpoint-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    transform: translateY(-2px);
}
.api-endpoint-method {
    font-size: .7rem;
    font-weight: 800;
    padding: .35rem .7rem;
    border-radius: 6px;
    letter-spacing: .5px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.api-endpoint-method.post {
    background: rgba(249,115,22,.15);
    color: var(--accent);
}
.api-endpoint-method.get {
    background: rgba(34,197,94,.15);
    color: #22c55e;
}
.api-endpoint-info h4 {
    font-size: .9rem;
    color: #fff;
    margin: 0 0 .2rem;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-weight: 600;
}
.api-endpoint-info p {
    font-size: .82rem;
    color: rgba(255,255,255,.5);
    margin: 0;
    line-height: 1.4;
}

/* Pasos de integración */
.api-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.api-step {
    text-align: center;
    max-width: 220px;
    padding: 1.5rem 1rem;
    opacity: 0;
    transform: translateY(20px);
}
.api-step.visible {
    opacity: 1;
    transform: translateY(0);
}
.api-step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(249,115,22,.35);
}
.api-step h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 .5rem;
}
.api-step p {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.api-step-connector {
    display: flex;
    align-items: center;
    padding-top: 2rem;
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* Pricing API */
.api-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-top: 3rem;
    align-items: start;
}
.api-pricing-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: all .3s;
    opacity: 0;
    transform: translateY(20px);
}
.api-pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.api-pricing-card.featured {
    border-color: var(--accent);
    background: rgba(249,115,22,.08);
    transform: scale(1.04);
    box-shadow: 0 16px 48px rgba(249,115,22,.2);
}
.api-pricing-card.featured.visible {
    transform: scale(1.04);
}
.api-pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    padding: .3rem 1.2rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.api-pricing-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .25rem;
}
.api-pricing-desc {
    font-size: .85rem;
    color: rgba(255,255,255,.5);
    margin: 0 0 1.25rem;
}
.api-pricing-price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: .3rem;
}
.api-price-amount {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
}
.api-price-period {
    font-size: .9rem;
    color: rgba(255,255,255,.4);
}
.api-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.api-pricing-features li {
    padding: .45rem 0;
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: .6rem;
}
.api-pricing-features li i {
    color: var(--accent);
    font-size: .75rem;
}
.api-pricing-btn {
    display: block;
    text-align: center;
    padding: .85rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    transition: all .25s;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(255,255,255,.2);
    color: #fff;
}
.api-pricing-btn:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.4);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}
.api-pricing-btn.featured {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(249,115,22,.4);
}
.api-pricing-btn.featured:hover {
    box-shadow: 0 10px 28px rgba(249,115,22,.55);
    transform: translateY(-3px);
}

/* CTA final */
.api-cta-section {
    padding: 4rem 2rem;
}

@media (max-width: 860px) {
    .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
    .hero { min-height: auto; }
    .hero-visual { transform: scale(.88); transform-origin: center center; }
    .hero-badge-logo { top: -12px; padding: 5px 14px; }
    .hero-badge-logo img { height: 22px; }
    .hero-float { transform: scale(.85); }
}

/* ── Tablet 768px ── */
@media (max-width: 768px) {
    .topbar { display: none; }

    .hero { margin-top: 0; padding-top: calc(3rem + 64px); }
    .hero-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .hero-visual { transform: none; }
    .hero-card { border-radius: 18px; }
    .hero-interfaz-img { border-radius: 18px; }
    .hero-badge-logo { top: -14px; padding: 5px 12px; }
    .hero-badge-logo img { height: 20px; }
    .hero-float { transform: scale(.75); }
    .hero-float.f1 { bottom: -10px; left: 5px; }
    .hero-float.f2 { top: 30px; right: -10px; }
    .hero-float.f3 { bottom: 55px; right: -8px; }

    nav {
        position: fixed; top: 0; left: 0; right: 0;
        height: auto; min-height: 64px;
        flex-wrap: nowrap; align-items: center;
        padding: 0 1.25rem; gap: 0;
    }
    .nav-logo   { order: 1; flex: 1; }
    .nav-actions { order: 2; }
    .nav-toggle { order: 3; display: flex; margin-left: .6rem; }

    .nav-links {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: none; flex-direction: column; align-items: flex-start;
        gap: 0;
        background: rgba(6,14,45,0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 0 0 14px 14px;
        padding: .5rem .5rem .75rem;
        box-shadow: 0 12px 32px rgba(0,0,0,.25);
    }
    nav.scrolled .nav-links { background: rgba(255,255,255,.98); box-shadow: 0 12px 32px rgba(0,0,0,.08); }
    .nav-links.open { display: flex; }
    .nav-link { width: 100%; padding: .7rem .75rem; border-radius: 8px; font-size: .95rem; }
    .nav-link i { display: inline-flex; }
    .nav-btn { font-size: .8rem; padding: .5rem 1.1rem; }
    .nav-btn-icon { width: 36px; height: 36px; font-size: .95rem; }

    .hero { padding: 5.5rem 1.5rem 180px; }
    .hero h1 { font-size: clamp(2rem, 6vw, 3rem); }

    .funcion-row { grid-template-columns: 1fr; gap: 2rem; }
    .funcion-row.reverse { direction: ltr; }

    .features { padding: 4rem 1.5rem calc(4rem + 110px); }
    .funciones-section { padding: 4rem 1.5rem; }
    .precios { padding: 4rem 1.5rem; }
    .stats { padding: 3.5rem 1.5rem calc(3.5rem + 140px); }
    .section-head { margin-bottom: 2.5rem; }

    .feat-cards { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .testi-carousel { margin: 0 1.5rem; }
    .plans-grid { padding: 1.5rem .5rem 2rem; }
    .footer-top { grid-template-columns: 1fr 1fr 1.4fr; padding: 3rem 1.5rem 2.5rem; gap: 1.25rem 1.5rem; }
    .footer-brand { grid-column: 1 / -1; grid-template-columns: 1fr; margin-bottom: .5rem; text-align: center; }
    .footer-brand .footer-logo { justify-content: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; max-width: 480px; }
    .footer-socials { justify-content: center; }
    .footer-col h4 { font-size: .85rem; }
    .footer-col ul li a { font-size: .82rem; }
    .footer-contact-item { flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: .6rem .5rem; }
    .footer-contact-item > div { text-align: center; }
    .footer-contact-icon { width: 32px; height: 32px; font-size: .75rem; }
    .footer-contact-item strong { font-size: .78rem; }
    .footer-contact-item span,
    .footer-contact-item a { font-size: .75rem; }
    .footer-bottom { padding: 1.25rem 1.5rem; flex-wrap: wrap; gap: .5rem; }
    .footer-cta-strip { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }

    /* API page 768px */
    .api-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
    .api-hero { padding-top: calc(3rem + 64px); }
    .api-hero-visual { max-width: 500px; margin: 0 auto; }
    .api-dual-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .api-features-grid { grid-template-columns: repeat(2, 1fr); }
    .api-endpoints-grid { grid-template-columns: 1fr; }
    .api-steps { gap: .5rem; }
    .api-step { max-width: 180px; }
    .api-step-connector { font-size: .9rem; }
    .api-pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .api-pricing-card.featured { transform: scale(1.02); }
    .api-pricing-card.featured.visible { transform: scale(1.02); }
    .section-white, .section-dark { padding: 4rem 1.5rem; }
}

/* ── Mobile 480px ── */
@media (max-width: 480px) {
    .topbar { display: none; }

    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { transform: none; margin: 1rem auto 0; max-width: 280px; width: 100%; overflow: visible; }
    .hero-card { border-radius: 16px; width: 100%; }
    .hero-interfaz-img { border-radius: 16px; }
    .hero-badge-logo { top: -12px; padding: 4px 10px; }
    .hero-badge-logo img { height: 18px; }
    .hero-float { transform: scale(.65); }
    .hero-float.f1 { bottom: -15px; left: -10px; }
    .hero-float.f2 { top: 20px; right: -15px; }
    .hero-float.f3 { bottom: 40px; right: -10px; }
    .hero-checks { text-align: left; }
    .hero-btns { align-items: center; }

    nav { padding: 0 1rem; min-height: 56px; }
    .nav-logo-img { height: 28px; }
    .nav-cart { width: 32px; height: 32px; font-size: .8rem; }
    .nav-btn { font-size: .7rem; padding: .4rem .9rem; }
    .nav-btn-icon { width: 32px; height: 32px; font-size: .85rem; }
    .nav-actions { gap: .4rem; }

    .hero { margin-top: 0; padding: calc(2rem + 56px) 1rem 160px; min-height: auto; }
    .hero .bottom-wave svg { height: 140px; }
    .hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -1px; }
    .hero-desc { font-size: .88rem; }
    .hero-price { font-size: .88rem; }
    .hero-checks li { font-size: .83rem; }
    .hero-btns { flex-direction: column; align-items: stretch; gap: .75rem; }
    .btn-cta-main { justify-content: center; padding: .85rem 1.25rem; font-size: .9rem; }

    .features { padding: 3rem 1rem calc(3rem + 110px); }
    .funciones-section { padding: 3rem 1rem; }
    .precios { padding: 3rem 1rem; }
    .stats { padding: 3rem 1rem calc(3rem + 140px); }
    .section-head { margin-bottom: 2rem; }
    .section-title { font-size: 1.65rem; letter-spacing: -.5px; }
    .section-sub { font-size: .88rem; }

    .grid-6 { grid-template-columns: 1fr; }
    .fcard { padding: 1.5rem; }

    .feat-cards { grid-template-columns: 1fr; }
    .feat-card { padding: 1.75rem 1.5rem; }

    .funcion-row { gap: 1.5rem; margin-bottom: 3rem; }
    .funcion-title { font-size: 1.35rem; }
    .funcion-desc { font-size: .88rem; }
    .funcion-visual-icon { min-height: 180px; }
    .funcion-row .funcion-text,
    .funcion-row .funcion-visual,
    .funcion-row.reverse .funcion-text,
    .funcion-row.reverse .funcion-visual { transform: translateY(30px); }
    .funcion-row.funcion-in .funcion-text,
    .funcion-row.funcion-in .funcion-visual { transform: translateY(0); }

    .plans-grid { grid-template-columns: 1fr; padding: 1rem .25rem 1.5rem; gap: 1rem; }
    .plan-card { padding: 1.75rem 1.5rem; }

    .testi-carousel { margin: 0 .25rem; }
    .testi-card { flex: 0 0 calc(100vw - 3rem); padding: 2rem 1.25rem; }

    .demo-credentials-row { flex-direction: column; gap: .2rem; padding: .65rem 1rem; }
    .demo-cred-label { min-width: auto; }
    .demo-cred-link { font-size: .78rem; word-break: break-all; }

    .footer-top { grid-template-columns: 1fr; padding: 2.5rem 1rem 2rem; gap: 1.75rem; text-align: center; }
    .footer-brand { text-align: center; }
    .footer-brand .footer-logo { justify-content: center; }
    .footer-socials { justify-content: center; }
    .footer-col h4 { text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-col ul { align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: .5rem; }
    .footer-brand p { max-width: 100%; }
    .footer-contact-item { gap: .65rem; }

    .social-floats { right: .75rem; bottom: .75rem; gap: .5rem; }
    .social-float, .whatsapp-float { width: 42px; height: 42px; font-size: 1rem; }

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

    /* API page 480px */
    .api-hero { padding: calc(2rem + 56px) 1rem 120px; }
    .api-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .api-badge { font-size: .78rem; }
    .api-dual-grid { grid-template-columns: 1fr; }
    .api-countdown-num { font-size: 1.5rem; }
    .api-offer-card, .api-why-card { padding: 2rem 1.25rem; }
    .api-beneficios-grid { grid-template-columns: 1fr; }
    .api-hero-visual { max-width: 100%; }
    .api-code-body { font-size: .72rem; padding: .75rem; }
    .api-features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .api-feature-card { padding: 1.5rem 1.25rem; }
    .api-endpoints-grid { grid-template-columns: 1fr; }
    .api-steps { flex-direction: column; align-items: center; }
    .api-step-connector { transform: rotate(90deg); padding: 0; }
    .api-step { max-width: 280px; }
    .api-pricing-grid { grid-template-columns: 1fr; }
    .api-pricing-card.featured { transform: none; }
    .api-pricing-card.featured.visible { transform: none; }
    .section-white, .section-dark { padding: 3rem 1rem; }
    .api-cta-section { padding: 3rem 1rem; }
}
