/* ==========================================================================
   IACORE AUTOMATION — Design tokens
   ========================================================================== */
:root {
    /* Color */
    --bg: #07100C;
    --bg-elevated: #0C1712;
    --surface: #131F19;
    --surface-2: #182720;
    --border: rgba(255, 255, 255, 0.10);
    --border-strong: rgba(255, 255, 255, 0.22);
    --white: #F7FAF7;
    --muted: #A9B8AE;
    --muted-2: #7C8C82;
    --green: #2FEA7A;
    --green-dim: #17B85C;
    --green-glow: rgba(47, 234, 122, 0.45);
    --blue: #4A8CFF;
    --blue-dim: #2E6BFF;
    --blue-glow: rgba(74, 140, 255, 0.4);

    /* Type */
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout */
    --container-w: 1180px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input {
    font-family: inherit;
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

/* Background texture */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
}

/* Ambient color glow — the "aurora" layer that gives the dark theme life */
.ambient-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
    background:
        radial-gradient(560px 420px at 12% 8%, rgba(47, 234, 122, 0.20), transparent 60%),
        radial-gradient(620px 480px at 88% 28%, rgba(74, 140, 255, 0.16), transparent 60%),
        radial-gradient(680px 520px at 20% 68%, rgba(74, 140, 255, 0.12), transparent 60%),
        radial-gradient(560px 460px at 82% 92%, rgba(47, 234, 122, 0.16), transparent 60%);
}

main,
header,
footer {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

h3 {
    font-size: 1.15rem;
}

p {
    margin: 0;
    color: var(--muted);
}

.text-green {
    background: linear-gradient(100deg, var(--green) 15%, #6FE6FF 55%, var(--blue) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
}

.eyebrow.center {
    justify-content: center;
}

.section-title {
    margin-bottom: 14px;
}

.section-title.center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 720px;
}

.section-sub {
    max-width: 620px;
}

.section-sub.center {
    margin: 0 auto 48px;
    text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

.btn-primary {
    background: var(--green);
    color: #04120A;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--green-glow);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--white);
}

.btn-ghost:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 15px 28px;
    font-size: 1rem;
}

.btn-nav {
    padding: 10px 18px;
    font-size: 0.88rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(7, 16, 12, 0.72);
    border-bottom: 1px solid var(--border);
}

.header-accent-line {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--green) 30%, var(--blue) 70%, transparent);
    opacity: 0.7;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    min-width: 0;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-accent {
    color: var(--green);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-nav a {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.2s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--white);
}

.nav-cta-mobile {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: 80px 0 90px;
    overflow: hidden;
    position: relative;
}

.hero-banner {
    position: relative;
    width: 100%;
    height: clamp(200px, 30vw, 420px);
    overflow: hidden;
    margin-bottom: 56px;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    filter: saturate(1.05);
}

.hero-banner::before {
    /* soft vignette so the image edges melt into the page rather than
     reading as a pasted rectangle */
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 100% at 50% 50%, transparent 55%, var(--bg) 100%);
    pointer-events: none;
}

.hero-banner::after {
    /* bottom fade so the banner blends into the hero content below */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.hero-sub {
    margin: 22px 0 32px;
    font-size: 1.05rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted-2);
    display: flex;
    align-items: center;
    gap: 7px;
}

.trust-item i {
    color: var(--green);
}

/* Signature pipeline visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.pipeline-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    filter: blur(10px);
    z-index: 0;
    top: 10%;
}

.pipeline-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, var(--surface), var(--bg-elevated));
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.pipeline-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
}

.pipeline-label i {
    color: var(--green);
}

.pipeline-sector {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(46, 107, 255, 0.1);
    border: 1px solid rgba(46, 107, 255, 0.3);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
    transition: opacity 0.3s ease;
}

.pipeline-stage {
    min-height: 58px;
    display: flex;
    align-items: center;
}

.pipeline-arrow {
    color: var(--muted-2);
    font-size: 0.9rem;
    padding: 2px 0 2px 14px;
}

.chat-bubble {
    background: #1E2A22;
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 2px;
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--white);
    width: 100%;
    min-height: 46px;
    overflow-wrap: anywhere;
}

.cursor {
    color: var(--green);
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.json-block {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    margin: 0;
    white-space: pre;
    min-height: 90px;
    max-width: 100%;
    overflow: hidden;
}

.json-block .key {
    color: var(--blue);
}

.json-block .str {
    color: var(--green);
}

.db-row {
    width: 100%;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--green);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.db-row.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    position: relative;
    background:
        radial-gradient(1200px 500px at 15% 0%, rgba(47, 234, 122, 0.055), transparent 60%),
        radial-gradient(1200px 500px at 85% 100%, rgba(74, 140, 255, 0.05), transparent 60%),
        var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Showcase banner (Agentes IA en acción) — full-bleed image between sections,
   blended into the page rather than framed like a card */
.showcase-section {
    padding: 72px 0 96px;
    position: relative;
}

.showcase-banner {
    position: relative;
    width: 100%;
    margin-top: 32px;
    overflow: hidden;
    background: var(--bg);
}

.showcase-banner-img {
    width: 100%;
    height: clamp(240px, 34vw, 540px);
    object-fit: cover;
    object-position: center 42%;
    display: block;
}

.showcase-banner::before,
.showcase-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 70px;
    pointer-events: none;
    z-index: 1;
}

.showcase-banner::before {
    top: 0;
    background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
}

.showcase-banner::after {
    bottom: 0;
    background: linear-gradient(0deg, var(--bg) 0%, transparent 100%);
}

@media (max-width: 720px) {
    .showcase-banner-img {
        height: auto;
        aspect-ratio: 1720 / 914;
        object-fit: contain;
    }

    .showcase-banner--results .showcase-banner-img {
        aspect-ratio: 1672 / 941;
    }

    .showcase-banner::before,
    .showcase-banner::after {
        height: 36px;
    }
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Problem cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 26px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(47, 234, 122, 0.15);
}

.card-icon {
    font-size: 1.6rem;
    color: var(--green);
    margin-bottom: 18px;
    display: block;
}

.card h3 {
    margin-bottom: 10px;
}

/* Service cards */
.service-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 1.5rem;
    color: var(--blue);
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem;
}

/* Process */
.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 20px;
}

.process-track::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 5%;
    right: 5%;
    height: 1px;
    background: var(--border-strong);
    z-index: 0;
}

.process-step {
    position: relative;
    z-index: 1;
    padding: 0 18px;
    text-align: left;
}

.process-num {
    font-family: var(--font-mono);
    color: var(--green);
    background: var(--bg);
    border: 1px solid var(--green-dim);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.process-step h3 {
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.9rem;
}

/* Cases */
.case-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px;
}

.case-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.case-tag i {
    color: var(--blue);
}

.case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.case-card p {
    margin-bottom: 20px;
}

.case-list li {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--white);
    padding: 6px 0;
}

.case-list i {
    color: var(--green);
    margin-top: 3px;
}

/* Case proof — real screenshot of the panel, framed like a browser window
   so it reads as tangible evidence, not decorative photography */
.case-proof {
    max-width: 960px;
    margin: 0 auto 56px;
}

.case-proof-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    background: var(--surface);
}

.case-proof-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.case-proof-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.case-proof-title i {
    color: var(--green);
    flex-shrink: 0;
}

.case-proof-img {
    width: 100%;
    display: block;
}

.case-proof-caption {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Diagnostic panel */
.diagnostic-panel {
    max-width: 640px;
    margin: 0 auto;
}

.diagnostic-window {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}

.diagnostic-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red {
    background: #FF5F57;
}

.dot-yellow {
    background: #FEBC2E;
}

.dot-green {
    background: #28C840;
}

.diagnostic-title {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.diagnostic-title i {
    color: var(--green);
    flex-shrink: 0;
}

.diagnostic-counter {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted-2);
    flex-shrink: 0;
    white-space: nowrap;
}

.diagnostic-messages {
    padding: 22px;
    height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg {
    display: flex;
    gap: 10px;
    max-width: 90%;
}

.msg-bot {
    align-self: flex-start;
}

.msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    font-size: 1.1rem;
    color: var(--green);
    margin-top: 4px;
    flex-shrink: 0;
}

.msg-user .msg-avatar {
    color: var(--blue);
}

.msg-bubble {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 15px;
    font-size: 0.9rem;
    color: var(--white);
    overflow-wrap: anywhere;
}

.msg-user .msg-bubble {
    background: rgba(46, 107, 255, 0.1);
    border-color: rgba(46, 107, 255, 0.3);
}

.msg-typing {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.msg-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted-2);
    animation: typingDot 1.2s infinite ease-in-out;
}

.msg-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.msg-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingDot {

    0%,
    60%,
    100% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }
}

.diagnostic-input {
    display: flex;
    gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.diagnostic-input input {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--white);
    font-size: 0.9rem;
}

.diagnostic-input input:focus {
    outline: none;
    border-color: var(--green);
}

.diagnostic-input button {
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    flex-shrink: 0;
}

.diagnostic-limit-cta {
    display: none;
    padding: 22px;
    text-align: center;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.diagnostic-limit-cta.show {
    display: block;
}

.diagnostic-limit-cta p {
    margin-bottom: 14px;
    color: var(--white);
    font-weight: 500;
}

/* Pricing */
.launch-banner {
    max-width: 780px;
    margin: 0 auto 48px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--white);
}

.launch-banner i {
    color: var(--green);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.pricing {
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 34px 28px;
    position: relative;
}

.price-card-featured {
    border-color: transparent;
    background:
        linear-gradient(180deg, rgba(47, 234, 122, 0.10), var(--surface) 55%) padding-box,
        linear-gradient(135deg, var(--green), var(--blue)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 25px 60px rgba(47, 234, 122, 0.12);
}

.price-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--green);
    color: #04120A;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.price-tag {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--white);
    margin: 14px 0 4px;
}

.price-tag span {
    font-size: 0.9rem;
    color: var(--muted);
    font-family: var(--font-body);
}

.price-note {
    font-size: 0.82rem;
    margin-bottom: 22px;
}

.price-list li {
    display: flex;
    gap: 9px;
    font-size: 0.87rem;
    color: var(--white);
    padding: 7px 0;
    border-top: 1px solid var(--border);
}

.price-list li:first-child {
    border-top: none;
}

.price-list i {
    color: var(--green);
}

/* FAQ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    padding: 22px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: var(--font-display);
    font-size: 1rem;
    text-align: left;
}

.faq-icon {
    color: var(--green);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
}

.faq-answer p {
    padding: 0 4px 22px;
    font-size: 0.92rem;
    max-width: 640px;
}

.faq-item.open .faq-answer {
    max-height: 220px;
}

/* CTA final */
.cta-final {
    position: relative;
    text-align: center;
    background: radial-gradient(900px 420px at 50% 30%, rgba(47, 234, 122, 0.10), transparent 65%);
}

.cta-icon {
    font-size: 2.6rem;
    color: var(--green);
    margin-bottom: 20px;
}

.cta-final h2 {
    max-width: 640px;
    margin: 0 auto 14px;
}

.cta-final p {
    max-width: 480px;
    margin: 0 auto 40px;
}

.calendly-inline-widget {
    max-width: 100%;
}

.calendly-fallback {
    margin-top: 16px;
    font-size: 0.85rem;
}

.calendly-fallback a {
    color: var(--green);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand .brand-logo {
    width: 30px;
    height: 30px;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 6px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--green);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--muted-2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ---- Tablet: tighten spacing a step before the big mobile breakpoint ---- */
@media (max-width: 1040px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 84px 0;
    }

    .showcase-section {
        padding: 60px 0 76px;
    }

    .case-proof {
        margin-bottom: 44px;
    }

    .pricing .price-card {
        padding: 30px 24px;
    }
}

@media (max-width: 960px) {
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 8px 24px 18px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.95rem;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .nav-cta-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        padding: 12px 18px !important;
        background: var(--green);
        color: #04120A;
        border-radius: 999px;
        font-weight: 600;
        justify-content: center;
    }

    .nav-toggle {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 20px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .process-track {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 0;
    }

    .process-track::before {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .section {
        padding: 64px 0;
    }

    .hero {
        padding: 40px 0 56px;
    }

    .hero-banner {
        height: 220px;
        margin-bottom: 36px;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-trust {
        flex-direction: column;
        gap: 12px;
    }

    .case-card,
    .price-card {
        padding: 26px 22px;
    }

    .case-proof-title {
        font-size: 0.72rem;
    }

    .diagnostic-messages {
        height: 300px;
        padding: 16px;
    }

    .diagnostic-input {
        padding: 12px 14px;
    }
}

/* ---- Very small phones: prevent long button labels from forcing
   horizontal scroll, and trim decorative chrome that has no room ---- */
@media (max-width: 420px) {
    .btn {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .hero-actions .btn,
    .cta-final .btn,
    .diagnostic-limit-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .case-proof-bar .dot,
    .diagnostic-header .dot {
        display: none;
    }

    .case-proof-title,
    .diagnostic-title {
        margin-left: 0;
    }

    .price-badge {
        right: 16px;
    }

    h1 {
        letter-spacing: -0.005em;
    }
}

/* ==========================================================================
   WhatsApp — botón flotante + variante de botón
   ========================================================================== */

.btn-whatsapp {
    background: #25D366;
    color: #04120A;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #04120A;
    padding: 14px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.35);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), padding 0.25s var(--ease);
    animation: whatsappPulse 2.6s ease-in-out infinite;
}

.whatsapp-float i {
    font-size: 1.5rem;
    line-height: 1;
}

.whatsapp-float-text {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s var(--ease);
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover .whatsapp-float-text {
    max-width: 140px;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

@media (max-width: 560px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        padding: 13px;
    }

    .whatsapp-float-text {
        display: none;
    }
}