/*
 * ============================================================
 *  NEXTO AGENCY — Main Base Styles
 *  Reset, typography, layout, nav, footer
 *  Extracted from diseno-web.html (reference implementation)
 *
 *  NOTES:
 *  - Variant token sets for other pages are in design-tokens.css
 *  - Animation keyframes live in animations.css
 *  - Utility/helper classes live in utilities.css
 *  - Each HTML page still contains its OWN :root override
 *    and section-specific inline styles; this file is the
 *    canonical reference for WP migration.
 * ============================================================
 */


/* ── RESET ── */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "DM Sans", sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(78, 71, 255, 0.07), transparent 26%),
        radial-gradient(circle at 86% 12%, rgba(141, 135, 255, 0.08), transparent 30%),
        linear-gradient(180deg, #FCFDFF 0%, #F8FAFF 42%, #F3F6FF 100%);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Ambient background blobs */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.42;
}

body::before {
    width: 26vw;
    height: 26vw;
    top: 10vh;
    right: -8vw;
    background: rgba(141, 135, 255, 0.12);
}

body::after {
    width: 22vw;
    height: 22vw;
    left: -7vw;
    bottom: 12vh;
    background: rgba(78, 71, 255, 0.07);
}

::selection {
    background: var(--accent);
    color: var(--white);
}

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

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

/* Lenis smooth scroll overrides */
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }


/* ── TYPOGRAPHY ── */

h1,
h2,
h3,
h4,
h5,
h6,
.section-kicker,
.metric-pill,
.status-chip,
.apple-button,
.nav-logo-text,
.nav-links a,
.nav-cta,
.faq-question-text {
    font-family: "Raleway", sans-serif;
    padding-top: 19px;
    padding-bottom: 21px;
}

.section-title {
    margin-top: 24px;
    font-size: clamp(34px, 4.2vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.055em;
    font-weight: 900;
    color: var(--ink);
}

.section-title em,
.hero-title em,
.closing-title em {
    font-style: normal;
    background: linear-gradient(135deg, #5A55FF 0%, #9A95FF 52%, #C8C5FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-copy,
.hero-subcopy,
.closing-text {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.74;
    color: var(--muted);
}


/* ── LAYOUT ── */

.page-shell {
    position: relative;
    z-index: 1;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

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

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: max-content;
    max-width: 100%;
    justify-self: start;
    align-self: start;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(214, 221, 237, 0.86);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 34px rgba(78, 71, 255, 0.08);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #4D4A78;
    transform-style: preserve-3d;
    will-change: transform, box-shadow, border-color;
    transition:
        transform 0.6s var(--ease),
        box-shadow 0.6s var(--ease),
        border-color 0.45s var(--ease),
        background 0.45s var(--ease),
        color 0.45s var(--ease);
}

.section-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    box-shadow: 0 0 0 5px rgba(78, 71, 255, 0.08);
}

.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(214, 221, 237, 0.88);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 14px 34px rgba(78, 71, 255, 0.06);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4D4A78;
    isolation: isolate;
    overflow: hidden;
    position: relative;
    cursor: default;
    transform-style: preserve-3d;
    will-change: transform, box-shadow, border-color;
    transition:
        transform 0.6s var(--ease),
        box-shadow 0.6s var(--ease),
        border-color 0.45s var(--ease),
        background 0.45s var(--ease);
}

.metric-pill::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    box-shadow: 0 0 0 4px rgba(141, 135, 255, 0.12);
}

.section-kicker::after,
.metric-pill::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
        radial-gradient(140px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(119, 111, 255, 0.18), transparent 58%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.08));
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    pointer-events: none;
    z-index: -1;
}

.section-kicker:hover,
.metric-pill:hover {
    border-color: rgba(110, 101, 255, 0.42);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 245, 255, 0.94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 -1px 0 rgba(110, 101, 255, 0.14),
        0 18px 34px rgba(94, 87, 255, 0.14),
        0 30px 80px rgba(94, 87, 255, 0.12),
        0 0 0 1px rgba(140, 133, 255, 0.14);
    color: #433F78;
}

.section-kicker:hover::before,
.metric-pill:hover::before {
    box-shadow:
        0 0 0 6px rgba(94, 87, 255, 0.1),
        0 0 22px rgba(94, 87, 255, 0.4);
}

.section-kicker:hover::after,
.metric-pill:hover::after {
    opacity: 1;
}

.section-header {
    max-width: 980px;
    margin-bottom: 64px;
}

.section-header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-header--center .section-kicker {
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
}


/* ── APPLE BUTTON / CTA ── */

.apple-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 18px 28px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition:
        transform 0.55s var(--ease),
        box-shadow 0.55s var(--ease),
        border-color 0.45s var(--ease),
        background 0.45s var(--ease);
}

.apple-button::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 60%);
    pointer-events: none;
}

.apple-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.85s var(--ease);
    pointer-events: none;
}

.apple-button:hover::after {
    left: 120%;
}

.apple-button span {
    position: relative;
    z-index: 1;
}

.apple-button:hover {
    transform: translateY(-3px);
}

.apple-button--primary {
    color: var(--white);
    background: linear-gradient(135deg, #6660FF 0%, #5953F5 100%);
    border: 1px solid rgba(78, 71, 255, 0.44);
    box-shadow: 0 24px 50px rgba(78, 71, 255, 0.18);
    padding-top: 16px;;;;
    padding-bottom: 16px;;;;;
}

.apple-button--secondary {
    color: var(--ink);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 244, 255, 0.92));
    border: 1px solid rgba(214, 221, 237, 0.92);
    box-shadow: var(--shadow-soft);
}

/* Hero CTA special — rotating border */
.hero-actions .apple-button {
    padding: 22px 44px;
    font-size: 13px;
    letter-spacing: 0.1em;
    border: none;
    outline: none;
    cursor: pointer;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.hero-actions .apple-button::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from 0deg, #6C63FF, #A78BFA, #6C63FF, #818CF8, #6C63FF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: btn-rotate-border 3s linear infinite;
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s var(--ease);
}

.hero-actions .apple-button:hover::before {
    opacity: 1;
}

.hero-actions .apple-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease);
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

.hero-actions .apple-button:hover::after {
    left: 150%;
}

@keyframes btn-rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-actions .apple-button--primary {
    color: #fff;
    background: linear-gradient(160deg, #6C63FF 0%, #5248E8 50%, #4A3FE0 100%);
    border-radius: 999px;
    box-shadow:
        0 6px 24px rgba(78, 71, 255, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-actions .apple-button--primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 12px 40px rgba(78, 71, 255, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.hero-actions .apple-button--primary:active {
    transform: translateY(-2px) scale(0.98);
}

.hero-actions .apple-button--secondary {
    color: var(--ink);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.94));
    border-radius: 999px;
    border: 1px solid rgba(214, 221, 237, 0.6);
    box-shadow:
        0 4px 16px rgba(37, 36, 50, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.hero-actions .apple-button--secondary::before {
    background: conic-gradient(from 0deg, #A78BFA, #C4B5FD, #A78BFA, #818CF8, #A78BFA);
}

.hero-actions .apple-button--secondary::after {
    background: linear-gradient(90deg, transparent, rgba(78, 71, 255, 0.08), transparent);
}

.hero-actions .apple-button--secondary:hover {
    transform: translateY(-4px);
    border-color: rgba(110, 101, 255, 0.3);
    box-shadow:
        0 10px 32px rgba(37, 36, 50, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.hero-actions .apple-button--secondary:active {
    transform: translateY(-2px) scale(0.98);
}


/* ── NAVIGATION ── */

nav {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1360px, calc(100vw - 28px));
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 1000;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    box-shadow: 0 18px 55px rgba(43, 45, 85, 0.08);
    transition:
        transform 0.6s var(--ease),
        background 0.45s var(--ease),
        box-shadow 0.45s var(--ease),
        padding 0.45s var(--ease);
}

nav.scrolled {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 22px 70px rgba(43, 45, 85, 0.14);
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 800;
    background: linear-gradient(135deg, #252432 0%, #383455 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 30px rgba(37, 36, 50, 0.18);
    transition: transform 0.5s var(--ease), border-radius 0.5s var(--ease);
}

.nav-logo:hover .nav-logo-icon {
    transform: translateY(-2px) rotate(-5deg);
    border-radius: 16px;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.nav-logo-text span {
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(214, 221, 237, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.nav-links a {
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    transition:
        color 0.35s var(--ease),
        background 0.35s var(--ease),
        transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ink);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 255, 0.88));
    box-shadow: 0 10px 24px rgba(43, 45, 85, 0.06);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 999px;
    padding: 16px 28px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, #6660FF 0%, #5953F5 100%);
    border: 1px solid rgba(78, 71, 255, 0.44);
    box-shadow: 0 24px 50px rgba(78, 71, 255, 0.18);
    transition:
        transform 0.55s var(--ease),
        box-shadow 0.55s var(--ease);
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 60%);
    pointer-events: none;
}

.nav-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.85s var(--ease);
    pointer-events: none;
}

.nav-cta:hover::after {
    left: 120%;
}

.nav-cta span {
    position: relative;
    z-index: 1;
}

.nav-cta:hover {
    transform: translateY(-3px);
}


/* ── FOOTER ── */

.footer-gradient {
    background: linear-gradient(to bottom, rgba(245, 248, 255, 0.2), rgba(238, 244, 255, 0.92));
    padding: 80px 72px 48px;
}

.footer-card {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.5fr 0.5fr;
    gap: 48px;
    align-items: start;
    padding-top: 40px;
    border-top: 1px solid rgba(214, 221, 237, 0.82);
}

.footer-brand p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin: 16px 0 20px;
    max-width: 360px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: var(--ink-soft);
    font-weight: 600;
    transition: color 0.3s;
}

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

.footer-members strong {
    display: block;
    font-size: 14px;
    color: var(--ink);
    margin-top: 8px;
}


/* ── MOBILE CONTAINER OVERRIDE ── */

@media (max-width: 820px) {
    :root {
        --container: min(100vw - 24px, 1320px);
    }
}
