/* ==========================================================================
   Amazonia Tech — Design system
   Tecnología desde la Amazonía ecuatoriana
   ========================================================================== */

:root {
    /* Brand palette */
    --navy: #071326;
    --navy-2: #0C1D36;
    --green: #00A878;
    --teal: #00C2B8;
    --blue: #168BFF;
    --lime: #B9E51D;
    --bg: #F5F8FC;
    --white: #FFFFFF;
    --ink: #0C172A;
    --muted: #5C687A;

    --line: #E3E9F3;
    --line-dark: rgba(255, 255, 255, .12);
    --card: #FFFFFF;

    --brand-gradient: linear-gradient(135deg, var(--green) 0%, var(--teal) 45%, var(--blue) 100%);
    --brand-gradient-soft: linear-gradient(135deg, rgba(0, 168, 120, .12) 0%, rgba(0, 194, 184, .12) 45%, rgba(22, 139, 255, .12) 100%);

    /* Spacing scale */
    --space-1: .25rem;
    --space-2: .5rem;
    --space-3: .75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4.5rem;

    /* Radii */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Shadows (tinted to navy) */
    --shadow-sm: 0 6px 18px rgba(7, 19, 38, .07);
    --shadow: 0 18px 45px rgba(7, 19, 38, .10);
    --shadow-lg: 0 30px 70px rgba(7, 19, 38, .16);
    --shadow-dark: 0 20px 50px rgba(0, 0, 0, .35);

    /* Layout */
    --container: 1200px;
    --container-narrow: 760px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
    --dur-fast: .18s;
    --dur: .28s;
    --dur-slow: .6s;

    /* Z-index scale */
    --z-nav: 50;
    --z-dropdown: 60;
    --z-float: 70;
    --z-skiplink: 100;
}

/* ---- Reset ---- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

ul {
    margin: 0;
}

button {
    font: inherit;
}

h1, h2, h3, h4 {
    font-family: "Sora", "Inter", system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    text-wrap: balance;
}

.dark h1, .dark h2, .dark h3, .dark h4 {
    color: #fff;
}

p {
    text-wrap: pretty;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- Skip link ---- */
.skip-link {
    position: fixed;
    top: -60px;
    left: 12px;
    z-index: var(--z-skiplink);
    background: var(--navy);
    color: #fff;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    box-shadow: var(--shadow-dark);
    transition: top var(--dur-fast) var(--ease);
}

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

/* ---- Layout helpers ---- */
.wrap {
    max-width: var(--container);
    margin: auto;
    padding: 0 22px;
}

.section {
    padding: var(--space-8) 0;
}

.section.white {
    background: #fff;
}

.section.dark {
    background: var(--navy);
    color: #fff;
}

.section.tight {
    padding: var(--space-6) 0;
}

.section-head {
    max-width: var(--container-narrow);
    margin: 0 auto 2.4rem;
    text-align: center;
}

.section-head.left {
    text-align: left;
    margin-left: 0;
}

.kicker {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
}

.dark .kicker {
    color: #8fd8ff;
}

.section h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    line-height: 1.12;
    letter-spacing: -.03em;
    margin: .6rem 0;
}

.section p {
    color: var(--muted);
    line-height: 1.7;
}

.dark p {
    color: rgba(255, 255, 255, .74);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #324158;
}

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

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-gradient);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(7, 19, 38, .82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

body.is-scrolled .nav {
    background: rgba(6, 14, 26, .96);
    box-shadow: 0 12px 30px rgba(4, 10, 18, .28);
    border-bottom-color: rgba(255, 255, 255, .1);
}

body.nav-open {
    overflow: hidden;
}

.nav-inner {
    max-width: var(--container);
    margin: auto;
    padding: 6px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    flex: 0 0 auto;
}

.brand img {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .24);
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: currentColor;
    transition: transform var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
}

.menu {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: .96rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .88);
}

.menu > a,
.nav-link {
    opacity: .92;
    position: relative;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    letter-spacing: -.01em;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--dur-fast) ease, opacity var(--dur-fast) ease, background-color var(--dur-fast) ease;
}

.menu > a:hover,
.nav-link:hover {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.menu a.is-active {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.nav-link.is-active {
    opacity: 1;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.menu a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--brand-gradient);
}

.nav-caret {
    width: 9px;
    height: 9px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--dur-fast) ease;
    margin-top: -3px;
}

.nav-item.is-open .nav-caret {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.nav-item {
    position: relative;
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: rgba(9, 22, 42, .98);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow-dark);
    display: grid;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    z-index: var(--z-dropdown);
}

.nav-item.is-open .submenu,
.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
}

.submenu a:hover,
.submenu a:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.submenu .submenu-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #8fe3d6;
}

.submenu .submenu-icon svg {
    width: 16px;
    height: 16px;
}

.menu .nav-cta {
    opacity: 1;
    background: #fff;
    color: var(--navy);
    margin-left: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 24px rgba(255, 255, 255, .12);
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.menu .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(255, 255, 255, .18);
}

.menu .nav-cta::after {
    display: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: var(--radius-pill);
    font-weight: 750;
    font-size: .98rem;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 14px 30px rgba(0, 168, 120, .18);
    border: none;
    cursor: pointer;
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease, filter var(--dur-fast) ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 168, 120, .24);
}

.btn:active {
    transform: translateY(0) scale(.98);
}

.btn.alt {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.btn.alt:hover {
    background: #fbfdff;
    border-color: #d4dcea;
    box-shadow: var(--shadow-sm);
}

.dark .btn.alt {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.dark .btn.alt:hover {
    background: rgba(255, 255, 255, .1);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.actions.center {
    justify-content: center;
}

.complementary {
    margin-top: 22px;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dark .complementary {
    color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    background: var(--bg);
    padding: 64px 0 76px;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto auto;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(22, 139, 255, .14), transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto auto -30% -10%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 168, 120, .12), transparent 65%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.06;
    letter-spacing: -.03em;
    margin: 18px 0 16px;
}

.lead {
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    line-height: 1.65;
    color: var(--muted);
    max-width: 56ch;
}

/* ---- Hero visual composition ---- */
.hero-visual {
    position: relative;
    min-height: 420px;
}

.hero-blob {
    position: absolute;
    border-radius: 62% 38% 55% 45% / 48% 55% 45% 52%;
    filter: blur(2px);
    opacity: .5;
}

.hero-blob.a {
    width: 260px;
    height: 260px;
    top: -8%;
    right: -6%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    opacity: .28;
}

.hero-blob.b {
    width: 220px;
    height: 220px;
    bottom: -6%;
    left: -8%;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    opacity: .2;
}

.hero-rivers {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    overflow: visible;
}

.hero-rivers path {
    fill: none;
    stroke-width: 1.4;
}

.hero-rivers .r1 {
    stroke: url(#riverGradient);
    opacity: .55;
}

.hero-rivers .r2 {
    stroke: url(#riverGradient);
    opacity: .3;
}

.hero-rivers circle {
    fill: var(--white);
    stroke: var(--teal);
    stroke-width: 1.4;
}

.node-pulse {
    animation: nodePulse 3.4s ease-in-out infinite;
    transform-origin: center;
}

.node-pulse.d1 { animation-delay: .2s; }
.node-pulse.d2 { animation-delay: .9s; }
.node-pulse.d3 { animation-delay: 1.6s; }
.node-pulse.d4 { animation-delay: .5s; }

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: .7; }
}

.hero-panel {
    position: relative;
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-dots {
    display: flex;
    gap: 7px;
}

.panel-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .3);
}

.panel-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

.panel-body {
    display: grid;
    gap: 14px;
}

.panel-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-nav span {
    font-size: .74rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .78);
}

.panel-nav span.active {
    background: rgba(0, 194, 184, .18);
    border-color: rgba(0, 194, 184, .4);
    color: #9ff0e6;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 13px;
}

.stat strong {
    font-size: 1.2rem;
    display: block;
    font-family: "Sora", sans-serif;
}

.stat small {
    color: rgba(255, 255, 255, .6);
    font-size: .74rem;
}

.panel-chart {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 6px;
    height: 88px;
}

.panel-chart span {
    display: block;
    border-radius: 6px 6px 2px 2px;
    background: var(--brand-gradient);
    opacity: .85;
}

.panel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .76rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .82);
}

.panel-badge .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(185, 229, 29, .18);
}

.panel-badge.security .status-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(0, 168, 120, .2); }
.panel-badge.assist .status-dot { background: var(--teal); box-shadow: 0 0 0 3px rgba(0, 194, 184, .2); }
.panel-badge.support .status-dot { background: var(--blue); box-shadow: 0 0 0 3px rgba(22, 139, 255, .2); }

/* ==========================================================================
   Solutions cards
   ========================================================================== */

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

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

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.dark .card {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
    color: #fff;
}

.dark .card:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .16);
}

.card h3 {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.card p {
    margin: 0;
}

.solution-card {
    padding: 30px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-top: 3px solid transparent;
}

.solution-card.theme-zonasegura { border-top-color: var(--green); }
.solution-card.theme-accesa { border-top-color: var(--teal); }
.solution-card.theme-accesos { border-top-color: var(--blue); }

.solution-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    color: #fff;
}

.solution-card.theme-zonasegura .solution-icon { background: linear-gradient(135deg, var(--green), var(--navy-2)); }
.solution-card.theme-accesa .solution-icon { background: linear-gradient(135deg, var(--teal), var(--blue)); }
.solution-card.theme-accesos .solution-icon { background: linear-gradient(135deg, var(--blue), var(--teal)); }

.solution-icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.solution-card h3 {
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.solution-card .lead-sm {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 18px;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: grid;
    gap: 10px;
}

.benefit-list li {
    position: relative;
    padding-left: 24px;
    font-size: .92rem;
    color: #33415a;
    font-weight: 600;
}

.benefit-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .4em;
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: var(--brand-gradient);
}

.benefit-list li::after {
    content: "";
    position: absolute;
    left: 3.5px;
    top: .62em;
    width: 7px;
    height: 3.5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.solution-card .btn {
    width: 100%;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.tag {
    font-size: .78rem;
    font-weight: 750;
    color: #243047;
    background: #f1f5f9;
    border: 1px solid #e7edf5;
    border-radius: var(--radius-pill);
    padding: 6px 11px;
}

.dark .tag {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ==========================================================================
   Identity section — "Tecnología desde la Amazonía"
   ========================================================================== */

.section.identity {
    position: relative;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
    overflow: hidden;
}

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

.identity-concepts {
    display: grid;
    gap: 16px;
    margin-top: 26px;
}

.identity-concepts.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
}

.identity-concept {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
}

.identity-concept .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #9ff0e6;
}

.identity-concept .icon-box svg {
    width: 20px;
    height: 20px;
}

.identity-concept strong {
    display: block;
    color: #fff;
    margin-bottom: 3px;
    font-family: "Sora", sans-serif;
}

.identity-concept span {
    color: rgba(255, 255, 255, .68);
    font-size: .92rem;
    line-height: 1.5;
}

.node-map {
    position: relative;
    aspect-ratio: 340 / 377;
    max-width: 340px;
    margin: 0 auto;
}

.node-map svg {
    width: 100%;
    height: 100%;
}

.node-map-caption {
    text-align: center;
    margin-top: 14px;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(255, 255, 255, .45);
}

/* ==========================================================================
   Services grid
   ========================================================================== */

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

.service {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d8e2f0;
}

.service.featured {
    background: var(--navy);
    border-color: var(--navy);
    grid-column: span 2;
}

.service-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--brand-gradient-soft);
    color: var(--green);
    margin-bottom: 14px;
}

.service.featured .service-icon {
    background: rgba(255, 255, 255, .08);
    color: #9ff0e6;
}

.service-icon svg {
    width: 22px;
    height: 22px;
}

.service b {
    display: block;
    margin-bottom: 8px;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
}

.service.featured b,
.service.featured p {
    color: #fff;
}

.service.featured p {
    color: rgba(255, 255, 255, .72);
}

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

/* ==========================================================================
   Process timeline
   ========================================================================== */

.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    counter-reset: step;
    position: relative;
}

.process::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--blue));
    opacity: .3;
}

.process-step {
    position: relative;
    padding: 0 18px;
    text-align: left;
}

.process-step .step-num {
    counter-increment: step;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--brand-gradient);
    box-shadow: 0 10px 22px rgba(0, 168, 120, .28);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.process-step .step-num::before {
    content: counter(step, decimal-leading-zero);
}

.process-step h3 {
    font-size: 1.06rem;
    margin: 0 0 8px;
}

.process-step p {
    margin: 0;
    font-size: .92rem;
}

/* ==========================================================================
   Trust / benefits section
   ========================================================================== */

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

.trust-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.trust-item .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-gradient-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.trust-item .icon-box svg {
    width: 20px;
    height: 20px;
}

.trust-item strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Sora", sans-serif;
}

.trust-item span {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.5;
}

.trust-note {
    margin-top: 28px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: #f4f8ff;
    border: 1px dashed #c7d6ef;
    color: #33415a;
    font-size: .88rem;
    line-height: 1.6;
}

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta {
    padding: 76px 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0a2a4d 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 194, 184, .18), transparent 65%);
    pointer-events: none;
}

.cta .wrap {
    position: relative;
}

.cta h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3.8vw, 2.9rem);
    letter-spacing: -.03em;
    line-height: 1.08;
    margin: 0 auto 14px;
    max-width: 720px;
}

.cta p {
    color: rgba(255, 255, 255, .74);
    max-width: 640px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    margin-top: auto;
    background: #050b14;
    color: rgba(255, 255, 255, .62);
    padding: 56px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand img {
    height: 30px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: .9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
    max-width: 32ch;
}

.footer h4 {
    color: #fff;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 14px;
    font-family: "Sora", sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer-links a {
    font-size: .9rem;
    color: rgba(255, 255, 255, .62);
    transition: color var(--dur-fast) ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 22px;
    font-size: .82rem;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ==========================================================================
   WhatsApp float
   ========================================================================== */

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .28);
    z-index: var(--z-float);
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}

.whatsapp-float::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background: var(--navy);
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) ease;
    box-shadow: var(--shadow);
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.whatsapp-icon {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
    .whatsapp-float {
        animation: floatSoft 4.5s ease-in-out infinite;
    }
}

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ==========================================================================
   Product pages (Zona Segura / Accesa / Accesos)
   ========================================================================== */

.product-hero {
    padding: 60px 0 68px;
    background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.product-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -.03em;
    margin: 16px 0;
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1fr .92fr;
    gap: 44px;
    align-items: center;
}

.product-panel {
    background: linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.theme-zonasegura .product-panel { box-shadow: 0 30px 70px rgba(0, 168, 120, .16); }
.theme-accesa .product-panel { box-shadow: 0 30px 70px rgba(0, 194, 184, .16); }
.theme-accesos .product-panel { box-shadow: 0 30px 70px rgba(22, 139, 255, .16); }

.product-panel::before {
    content: "";
    position: absolute;
    inset: -30% -20% auto auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(30px);
}

.theme-zonasegura .product-panel::before { background: rgba(0, 168, 120, .3); }
.theme-accesa .product-panel::before { background: rgba(0, 194, 184, .3); }
.theme-accesos .product-panel::before { background: rgba(22, 139, 255, .3); }

.product-panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}

.product-panel-icon svg {
    width: 26px;
    height: 26px;
}

.product-panel h2,
.hero-panel h2 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 1.3rem;
}

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

.problem-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
}

.problem-item .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff1f1;
    color: #e0526a;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.problem-item .icon-box svg {
    width: 18px;
    height: 18px;
}

.problem-item p {
    margin: 0;
    font-size: .92rem;
    color: #33415a;
    font-weight: 600;
    line-height: 1.5;
}

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

.feature {
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    gap: 14px;
}

.feature .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand-gradient-soft);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--teal);
}

.feature .icon-box svg {
    width: 19px;
    height: 19px;
}

.feature strong {
    display: block;
    margin-bottom: 6px;
    font-family: "Sora", sans-serif;
    font-size: .98rem;
}

.feature p {
    margin: 0;
    font-size: .88rem;
}

.price-note {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 18px 22px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 750;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

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

.faq-item summary::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--muted);
    transition: transform var(--dur-fast) ease;
    flex: 0 0 auto;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin: 12px 0 0;
    font-size: .92rem;
}

/* ==========================================================================
   Access grid
   ========================================================================== */

.access-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.access-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    align-items: center;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.access-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.access-card .logo-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--line);
    padding: 8px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.access-card .logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.access-card h3 {
    margin: 0 0 5px;
    font-size: 1.05rem;
}

.access-card p {
    font-size: .88rem;
    margin: 0 0 12px;
    color: var(--muted);
}

.mini-btn {
    display: inline-flex;
    padding: 9px 14px;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    font-weight: 750;
    font-size: .84rem;
    transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.mini-btn:hover {
    background: var(--navy-2);
    transform: translateY(-1px);
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
    align-items: stretch;
}

.pricing-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 18px;
    position: relative;
}

.pricing-card.featured {
    border-color: rgba(0, 194, 184, .3);
    box-shadow: 0 26px 55px rgba(0, 194, 184, .16);
}

.pricing-top p {
    margin: 10px 0 0;
}

.price-value {
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    font-weight: 800;
    font-family: "Sora", sans-serif;
    letter-spacing: -.03em;
    line-height: 1;
}

.price-value span {
    font-size: .95rem;
    font-weight: 700;
    color: var(--muted);
    margin-left: 6px;
}

.price-note-line {
    font-weight: 700;
    color: #324158;
    font-size: .9rem;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.price-list li {
    position: relative;
    padding-left: 20px;
    font-size: .92rem;
}

.price-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: var(--brand-gradient);
}

.price-list.compact {
    text-align: left;
}

/* ==========================================================================
   Reveal animations
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .reveal-ready .reveal,
    .reveal-ready .reveal-left,
    .reveal-ready .reveal-right,
    .reveal-ready .reveal-scale {
        opacity: 0;
        transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
        will-change: opacity, transform;
    }

    .reveal-ready .reveal { transform: translateY(22px); }
    .reveal-ready .reveal-left { transform: translateX(-24px); }
    .reveal-ready .reveal-right { transform: translateX(24px); }
    .reveal-ready .reveal-scale { transform: scale(.96); }

    .reveal-ready .is-visible {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (max-width: 1200px) {
    .wrap {
        padding: 0 20px;
    }

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

    .footer-grid .footer-col.contact {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .nav-inner {
        position: relative;
        min-height: 64px;
        padding: 8px 18px;
        gap: 14px;
        flex-wrap: wrap;
    }

    .brand img {
        height: 32px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .menu.nav-menu {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: var(--radius);
        background: rgba(7, 19, 38, .98);
        box-shadow: 0 18px 38px rgba(4, 10, 18, .3);
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
    }

    .nav.is-mobile-open .menu.nav-menu,
    .menu.nav-menu.is-open {
        display: flex;
    }

    .menu.nav-menu > a,
    .menu.nav-menu .nav-link {
        width: 100%;
        padding: 12px 14px;
        border-radius: 14px;
        justify-content: space-between;
    }

    .menu.nav-menu a.is-active::after {
        left: 14px;
        right: 14px;
        bottom: 6px;
    }

    .nav-item {
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, .03);
        margin-top: 2px;
        padding: 6px;
        transition: none;
    }

    .nav-item.is-open .submenu {
        display: grid;
    }

    .menu.nav-menu .nav-cta {
        margin-left: 0;
        margin-top: 6px;
        text-align: center;
        justify-content: center;
    }

    .hero-grid,
    .product-hero-grid,
    .identity-grid,
    .split,
    .cards.two {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 320px;
        order: -1;
    }

    .cards,
    .services-grid,
    .access-grid,
    .problem-grid,
    .feature-grid,
    .trust-grid,
    .identity-concepts.cols-3 {
        grid-template-columns: 1fr;
    }

    .service.featured {
        grid-column: span 1;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .process {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .process::before {
        display: none;
    }

    .hero {
        padding-top: 44px;
    }

    .section {
        padding: 50px 0;
    }

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

    .footer-grid .footer-col.contact {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .wrap {
        padding: 0 16px;
    }

    .hero h1, .product-hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.4rem);
    }

    .section-head {
        margin-bottom: 1.8rem;
    }

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

    .actions .btn {
        width: 100%;
    }

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

    .footer-grid .footer-col.contact {
        grid-column: span 1;
    }

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

    .whatsapp-float {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }

    .whatsapp-float::after {
        display: none;
    }

    .product-card .btn {
        min-height: 48px;
    }
}

@media (max-width: 380px) {
    .nav-inner {
        padding: 8px 14px;
    }

    .brand img {
        height: 28px;
    }

    .hero, .product-hero {
        padding-top: 34px;
    }

    .section {
        padding: 42px 0;
    }

    .btn {
        padding: 12px 16px;
        font-size: .92rem;
    }

    .panel-chart {
        height: 70px;
    }
}
