/* ============================================================
   Centro de Modificación de Conducta Infantil
   Director: Ps. Arturo Olaechea Tamayo — CPsP 22691
   Una marca de IFOTEC Perú
   Stylesheet
   ============================================================ */

/* ===== VARIABLES ===== */
:root {
    /* Colors — paleta teal + acento naranja cálido */
    --c-primary: #0E7C6B;
    --c-primary-dark: #0A5F52;
    --c-primary-light: #E8F5F2;
    --c-primary-muted: #B8DDD6;
    --c-accent: #E8913A;
    --c-accent-dark: #C77525;
    --c-accent-light: #FFF4E8;
    --c-bg: #FAFBF9;
    --c-bg-alt: #F2F5F0;
    --c-surface: #FFFFFF;
    --c-text: #1A2E2A;
    --c-text-secondary: #4A6560;
    --c-text-muted: #7A918C;
    --c-border: #D4DDD9;
    --c-border-strong: #B4C2BE;
    --c-whatsapp: #25D366;
    --c-whatsapp-dark: #1FAA52;
    --c-focus: #0E7C6B;

    /* Typography — Plus Jakarta Sans (single family, modern, clean) */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing scale (4/8pt base) */
    --space-xs: 0.5rem;   /* 8 */
    --space-sm: 1rem;     /* 16 */
    --space-md: 1.5rem;   /* 24 */
    --space-lg: 3rem;     /* 48 */
    --space-xl: 5rem;     /* 80 */
    --space-2xl: 8rem;    /* 128 */

    /* Layout */
    --max-w: 1200px;
    --header-h: 72px;

    /* Radii */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;

    /* Shadows — discretas, evidencia-based feel */
    --shadow-sm: 0 1px 3px rgba(14,124,107,0.06);
    --shadow-md: 0 4px 16px rgba(14,124,107,0.08);
    --shadow-lg: 0 8px 32px rgba(14,124,107,0.12);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.04);
    --shadow-elevated: 0 12px 40px rgba(14,124,107,0.16);

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --t-fast: 150ms;
    --t-base: 250ms;
    --t-slow: 400ms;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; }

/* ===== SKIP LINK (a11y) =====
   Visualmente oculto, solo aparece cuando un usuario navega con teclado
   y presiona Tab (lo activa el foco). Lectores de pantalla siempre lo leen. */
.skip-link {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}
.skip-link:focus {
    position: fixed;
    top: 12px; left: 12px; z-index: 9999;
    width: auto; height: auto;
    padding: 0.75rem 1.25rem; margin: 0;
    clip: auto; clip-path: none; overflow: visible;
    background: var(--c-primary); color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none; font-weight: 600;
    outline: 3px solid var(--c-accent); outline-offset: 2px;
    box-shadow: var(--shadow-lg);
}

/* ===== FOCUS RINGS ===== */
:focus-visible {
    outline: 3px solid var(--c-focus);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}
.btn:focus-visible { outline-offset: 4px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.022em; color: var(--c-text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.024em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -0.018em; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; line-height: 1.4; letter-spacing: -0.01em; color: var(--c-text); }
p { color: var(--c-text-secondary); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-text); font-weight: 600; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; position: relative; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-primary);
    margin-bottom: var(--space-sm);
}
.section-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--c-primary);
    border-radius: 2px;
}
.section-head { max-width: 720px; margin-bottom: var(--space-lg); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.centered .section-eyebrow { justify-content: center; }
.section-head.centered .section-eyebrow::before { display: none; }
.section-head p { margin-top: var(--space-xs); font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 0.85rem 1.8rem;
    min-height: 44px;
    font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn-accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(232,145,58,0.32); }

.btn-outline { background: transparent; color: var(--c-text); border-color: var(--c-border-strong); }
.btn-outline:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-light); }

.btn-whatsapp { background: var(--c-whatsapp); color: #fff; border-color: var(--c-whatsapp); }
.btn-whatsapp:hover { background: var(--c-whatsapp-dark); border-color: var(--c-whatsapp-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(37,211,102,0.32); }
.btn-whatsapp svg { fill: currentColor; }

.btn-ghost { background: transparent; color: var(--c-primary); border-color: transparent; padding: 0.6rem 1rem; }
.btn-ghost:hover { background: var(--c-primary-light); }

/* ===== HEADER ===== */
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(250,251,249,0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(212,221,217,0.5);
    transition: background var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out);
}
header.scrolled { background: rgba(250,251,249,0.96); border-bottom-color: rgba(212,221,217,0.85); }

nav {
    display: flex; justify-content: space-between; align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem var(--space-md);
    max-width: var(--max-w); margin: 0 auto;
    min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; max-width: 100%; }
.logo-mark {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--c-primary); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    letter-spacing: 0.02em;
    transition: transform var(--t-base) var(--ease-out);
}
.logo:hover .logo-mark { transform: rotate(-4deg) scale(1.05); }
.logo-label { min-width: 0; }
.logo-label .logo-name {
    display: block; font-weight: 600; color: var(--c-text);
    font-size: 0.95rem; line-height: 1.2;
}
.logo-label small {
    display: block; font-size: 0.7rem; color: var(--c-text-muted); font-weight: 500;
    margin-top: 2px; line-height: 1.3;
}

/* Brand name: full on desktop, short on smaller screens */
.logo-name-short { display: none; }
.logo-name-full { display: block; }

@media (max-width: 1100px) {
    .logo-name-full { display: none; }
    .logo-name-short { display: block; }
}

/* Director subtitle: hide CPsP suffix on narrower screens; on very small mobile, hide whole subtitle */
@media (max-width: 1100px) {
    .logo-cpp { display: none; }
}
@media (max-width: 480px) {
    .logo-director { display: none; }
}

/* Slightly tighter logo-name size on desktop so the full brand fits with the 8-link nav */
@media (min-width: 1101px) {
    .logo-label .logo-name { font-size: 0.88rem; letter-spacing: -0.005em; }
    .logo-label small { font-size: 0.68rem; }
}

.nav-links { display: flex; gap: 1.2rem; list-style: none; align-items: center; }
.nav-links a {
    font-size: 0.88rem; font-weight: 500; color: var(--c-text-secondary);
    text-decoration: none; padding: 6px 0;
    transition: color var(--t-fast) var(--ease-out);
    position: relative;
}
.nav-links a:not(.nav-cta):hover { color: var(--c-primary); }
.nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    height: 2px; width: 0; background: var(--c-primary);
    transition: width var(--t-base) var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    background: var(--c-accent); color: #fff !important;
    padding: 0.55rem 1.2rem; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.85rem;
    transition: all var(--t-base) var(--ease-out);
}
.nav-cta:hover { background: var(--c-accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,145,58,0.25); }

.mobile-toggle {
    display: none; padding: 8px;
    flex-direction: column; gap: 5px;
    border-radius: 8px;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--c-text); transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease-out); }
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    padding-top: calc(var(--header-h) + var(--space-lg));
    padding-bottom: var(--space-xl);
    background: linear-gradient(175deg, var(--c-bg) 0%, var(--c-primary-light) 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -30%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(14,124,107,0.07) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: -20%; left: -10%; width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(232,145,58,0.05) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}

.hero-grid {
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-lg); align-items: center;
    position: relative; z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--c-accent-light); color: var(--c-accent-dark);
    padding: 0.45rem 1rem; border-radius: var(--radius-full);
    font-size: 0.82rem; font-weight: 600; margin-bottom: var(--space-sm);
    border: 1px solid rgba(232,145,58,0.2);
}
.hero-badge svg { width: 14px; height: 14px; fill: var(--c-accent-dark); }
.hero-badge .pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-accent); position: relative;
}
.hero-badge .pulse-dot::after {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    background: var(--c-accent); opacity: 0.4;
    animation: pulse 1.8s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(0.8); opacity: 0.5; } 100% { transform: scale(2); opacity: 0; } }

.hero-wordmark {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600;
    font-size: 0.92rem; color: var(--c-primary);
    letter-spacing: -0.005em;
    margin-bottom: var(--space-sm);
}
.hero-wordmark::before {
    content: ''; width: 28px; height: 2px;
    background: currentColor; border-radius: 2px;
    flex-shrink: 0;
}

.hero h1 { margin-bottom: var(--space-sm); }

.hero-desc { font-size: 1.1rem; color: var(--c-text-secondary); max-width: 540px; margin-bottom: var(--space-md); line-height: 1.7; }
.hero-ctas { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-bottom: var(--space-lg); }

.hero-proof {
    display: flex; gap: var(--space-lg); padding-top: var(--space-md);
    border-top: 1px solid var(--c-border);
}
.proof-item { text-align: left; }
.proof-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--c-primary); line-height: 1; letter-spacing: -0.03em; }
.proof-label { font-size: 0.78rem; color: var(--c-text-muted); margin-top: 4px; }

/* Hero visual — single dashboard card with decorative glow */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-mock {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 8px;
}
.mock-glow {
    position: absolute;
    inset: -20px -30px;
    background:
        radial-gradient(circle at 25% 28%, rgba(14,124,107,0.28) 0%, transparent 55%),
        radial-gradient(circle at 78% 72%, rgba(232,145,58,0.18) 0%, transparent 55%);
    filter: blur(38px);
    z-index: 0;
    pointer-events: none;
    animation: glowDrift 12s ease-in-out infinite alternate;
}
@keyframes glowDrift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8px, -6px) scale(1.05); }
}

.dashboard-card {
    position: relative;
    z-index: 1;
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 50px rgba(14,124,107,0.18), 0 6px 18px rgba(0,0,0,0.06);
    border: 1px solid rgba(14,124,107,0.10);
    padding: var(--space-md);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(14,124,107,0.22), 0 8px 22px rgba(0,0,0,0.08);
}

/* Header (status + period) */
.dash-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px solid var(--c-border);
}
.dash-status {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--c-primary);
}
.dash-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--c-primary);
    position: relative; flex-shrink: 0;
}
.dash-pulse::after {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50%; background: var(--c-primary);
    opacity: 0.45;
    animation: dashPulse 1.8s var(--ease-out) infinite;
}
@keyframes dashPulse {
    0%   { transform: scale(0.7); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}
.dash-period {
    font-size: 0.68rem; font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* Plan progress row (Mes 2 de 3) */
.dash-plan {
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}
.dash-plan-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 8px;
}
.dash-plan-label {
    font-size: 0.8rem; font-weight: 600; color: var(--c-text);
}
.dash-plan-pct {
    font-size: 0.82rem; font-weight: 700; color: var(--c-primary);
    font-variant-numeric: tabular-nums;
}
.dash-plan-bar {
    height: 6px;
    background: var(--c-bg-alt);
    border-radius: 3px;
    overflow: hidden;
}
.dash-plan-bar-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
    border-radius: 3px;
    transition: width 1.4s var(--ease-out) 0.3s;
}
.dash-plan-bar-fill.in-view { width: var(--target, 0%); }

/* Mini bar chart */
.dash-chart-block { margin-bottom: 14px; }
.dash-chart-label {
    font-size: 0.7rem; color: var(--c-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}
.dash-chart {
    display: flex; align-items: flex-end; gap: 5px;
    height: 56px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--c-border);
}
.dash-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--c-primary-muted) 0%, var(--c-primary) 100%);
    border-radius: 3px 3px 0 0;
    height: 0;
    transition: height 0.95s var(--ease-out);
    transition-delay: var(--delay, 0s);
    min-height: 3px;
}
.dash-bar.in-view { height: var(--target, 0); }
.dash-bar-today {
    background: linear-gradient(180deg, var(--c-accent) 0%, var(--c-accent-dark) 100%);
}
.dash-trend {
    margin-top: 10px;
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--c-primary-dark);
}
.dash-trend svg {
    width: 14px; height: 14px;
    color: var(--c-primary);
    flex-shrink: 0;
}
.dash-trend-num { font-variant-numeric: tabular-nums; }

/* Task row */
.dash-task {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
}
.dash-task-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--c-accent-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dash-task-icon svg {
    width: 17px; height: 17px;
    stroke: var(--c-accent-dark); fill: none;
}
.dash-task-content { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.dash-task-content strong { font-size: 0.82rem; font-weight: 600; color: var(--c-text); }
.dash-task-content span { font-size: 0.7rem; color: var(--c-text-muted); margin-top: 2px; }

/* Caregivers row */
.dash-caregivers {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 10px;
}
.dash-cg-text { font-size: 0.78rem; color: var(--c-text-secondary); }
.dash-cg-text strong { color: var(--c-text); font-weight: 600; }
.dash-cg-avatars { display: flex; }
.cg-dot {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--c-surface);
    margin-left: -6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.cg-dot:first-child { margin-left: 0; }
.cg-dot-1 { background: linear-gradient(135deg, #14B8A6, #0E7C6B); }
.cg-dot-2 { background: linear-gradient(135deg, #FBB373, #E8913A); }
.cg-dot-3 { background: linear-gradient(135deg, #67C7B5, #0A5F52); }
.cg-dot-4 { background: linear-gradient(135deg, #F0C58A, #C77525); }

/* ===== CREDENTIALS STRIP ===== */
.credentials {
    background: var(--c-surface);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--c-border);
}
.credentials-grid {
    display: flex; flex-wrap: wrap; gap: var(--space-md);
    align-items: center; justify-content: center;
}
.credential-item {
    display: flex; align-items: center; gap: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem; color: var(--c-text-secondary);
}
.credential-item svg { width: 22px; height: 22px; stroke: var(--c-primary); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.credential-item strong { font-weight: 600; color: var(--c-text); }

/* ===== PROBLEMS ===== */
.problems { background: var(--c-bg); }
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.problem-card {
    padding: var(--space-md); border-radius: var(--radius);
    border: 1px solid var(--c-border); background: var(--c-surface);
    transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.problem-card:hover { border-color: var(--c-primary-muted); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.problem-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--c-primary-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-sm);
    transition: background var(--t-base) var(--ease-out);
}
.problem-card:hover .problem-icon { background: var(--c-primary-muted); }
.problem-icon svg { width: 24px; height: 24px; stroke: var(--c-primary); fill: none; stroke-width: 1.5; }
.problem-card h4 { margin-bottom: 6px; }
.problem-card p { font-size: 0.9rem; margin: 0; color: var(--c-text-muted); line-height: 1.55; }

/* ===== TESTIMONIALS (hidden until real ones with consent) ===== */
.testimonials { background: var(--c-surface); display: none; /* Activar cuando haya testimonios reales */ }
.testimonials.visible { display: block; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.testimonial-card {
    background: var(--c-bg); border-radius: var(--radius-lg);
    padding: var(--space-md); border: 1px solid var(--c-border);
    display: flex; flex-direction: column; gap: var(--space-sm);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    position: relative;
}
.testimonial-card::before {
    content: '"'; position: absolute; top: 6px; right: 20px;
    font-family: var(--font-display); font-size: 5rem; font-weight: 700;
    color: var(--c-primary); opacity: 0.12; line-height: 1; pointer-events: none;
}
.testimonial-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.testimonial-quote { font-size: 0.95rem; line-height: 1.65; color: var(--c-text-secondary); font-style: italic; flex: 1; }
.testimonial-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--c-border);
}
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary-light), var(--c-primary-muted));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; color: var(--c-primary);
    flex-shrink: 0;
}
.testimonial-author-info { font-size: 0.85rem; }
.testimonial-author-name { font-weight: 600; color: var(--c-text); }
.testimonial-author-meta { color: var(--c-text-muted); font-size: 0.78rem; }

/* ===== APPROACH (ABA + IA) ===== */
.approach { background: var(--c-bg-alt); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: stretch; }
.approach-block {
    background: var(--c-surface); border-radius: var(--radius-lg);
    padding: var(--space-lg); border: 1px solid var(--c-border);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.approach-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.approach-block.highlight {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff; border-color: transparent;
    position: relative; overflow: hidden;
}
.approach-block.highlight::after {
    content: ''; position: absolute; top: -60%; right: -30%; width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(232,145,58,0.25) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.approach-block.highlight h3, .approach-block.highlight h4, .approach-block.highlight p { color: #fff; }
.approach-block.highlight p { opacity: 0.92; }
.approach-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: var(--space-sm);
    transition: transform var(--t-base) var(--ease-out);
}
.approach-block:hover .approach-icon { transform: rotate(-6deg) scale(1.05); }
.approach-block:not(.highlight) .approach-icon { background: var(--c-primary-light); }
.approach-block.highlight .approach-icon { background: rgba(255,255,255,0.18); position: relative; z-index: 1; }
.approach-icon svg { width: 28px; height: 28px; stroke-width: 1.5; fill: none; }
.approach-block:not(.highlight) .approach-icon svg { stroke: var(--c-primary); }
.approach-block.highlight .approach-icon svg { stroke: #fff; }
.approach-block h3 { margin-bottom: var(--space-xs); position: relative; z-index: 1; }
.approach-block > p { position: relative; z-index: 1; }
.approach-features { list-style: none; margin-top: var(--space-sm); position: relative; z-index: 1; }
.approach-features li {
    padding: 0.5rem 0; font-size: 0.92rem;
    display: flex; align-items: flex-start; gap: 10px;
}
.approach-block:not(.highlight) .approach-features li { color: var(--c-text-secondary); }
.approach-features li::before { content: '✓'; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.approach-block:not(.highlight) .approach-features li::before { color: var(--c-primary); }
.approach-block.highlight .approach-features li::before { color: var(--c-accent); }

/* ===== CHAT DEMO (Telegram-style preview in approach section) ===== */
.chat-demo-wrapper {
    margin-top: var(--space-xl);
    text-align: center;
}
.chat-demo-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--c-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-md);
}
.chat-demo {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 var(--space-xs);
}
.chat-frame {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(14,124,107,0.18), 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--c-border);
    text-align: left;
}

.chat-header {
    background: var(--c-primary);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}
.chat-header-avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.92rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.chat-header-info { line-height: 1.2; min-width: 0; flex: 1; }
.chat-header-name { font-weight: 600; font-size: 0.92rem; color: #fff; }
.chat-header-status {
    font-size: 0.74rem; color: rgba(255,255,255,0.85);
    display: flex; align-items: center; gap: 6px;
    margin-top: 2px;
}
.chat-header-status .status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}

.chat-body {
    height: 460px;
    overflow-y: auto;
    background: #e8ded4;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(255,255,255,0.4) 0.8px, transparent 1px),
        radial-gradient(circle at 75% 70%, rgba(0,0,0,0.04) 0.8px, transparent 1px);
    background-size: 22px 22px, 18px 18px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 3px; }

/* Initial intro card */
.chat-intro {
    margin: auto;
    background: #fff;
    border-radius: var(--radius);
    padding: var(--space-md);
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 280px;
}
.chat-intro-icon {
    width: 48px; height: 48px;
    background: var(--c-primary-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.chat-intro-icon svg { width: 26px; height: 26px; stroke: var(--c-primary); }
.chat-intro p {
    font-size: 0.88rem;
    color: var(--c-text-secondary);
    line-height: 1.5;
    margin: 0;
}
.chat-btn {
    background: var(--c-primary);
    color: #fff;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    transition: background var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    min-height: 40px;
}
.chat-btn:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.chat-btn:active { transform: translateY(0); }
.chat-btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

/* Messages */
.chat-msg {
    max-width: 80%;
    padding: 7px 10px 5px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #1a2e2a;
    word-wrap: break-word;
    box-shadow: 0 1px 1px rgba(0,0,0,0.08);
    opacity: 0;
    transform: translateY(8px);
    animation: chatMsgIn 0.3s var(--ease-out) forwards;
}
@keyframes chatMsgIn {
    to { opacity: 1; transform: translateY(0); }
}
.chat-msg-out {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-right-radius: 3px;
}
.chat-msg-in {
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
}
.chat-msg-in-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--c-primary);
    margin-bottom: 2px;
}
.chat-msg-text { white-space: pre-wrap; }
.chat-msg-meta {
    display: flex; justify-content: flex-end; align-items: center; gap: 4px;
    margin-top: 2px;
    font-size: 0.64rem;
    color: rgba(0,0,0,0.42);
}
.chat-msg-check {
    color: #4ea0d8;
    flex-shrink: 0;
}

/* Typing indicator */
.chat-typing {
    max-width: 56px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    align-self: flex-start;
    border-bottom-left-radius: 3px;
    display: flex; align-items: center; gap: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.08);
    opacity: 0;
    animation: chatTypingIn 0.2s var(--ease-out) forwards;
}
.chat-typing.right {
    background: #dcf8c6;
    align-self: flex-end;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 3px;
}
@keyframes chatTypingIn { to { opacity: 1; } }
.typing-dot {
    width: 7px; height: 7px;
    background: rgba(0,0,0,0.35);
    border-radius: 50%;
    animation: chatDot 1.2s infinite var(--ease-in-out);
}
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes chatDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Summary card (final structured report) */
.chat-msg-summary {
    background: #f0faf8;
    border: 1px solid #b2dfdb;
    align-self: stretch;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #1a2e2a;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateY(8px);
    animation: chatMsgIn 0.45s var(--ease-out) forwards, chatSummaryGlow 1.8s var(--ease-out);
}
@keyframes chatSummaryGlow {
    0%   { box-shadow: 0 0 0 0 rgba(14,124,107,0); }
    35%  { box-shadow: 0 0 0 8px rgba(14,124,107,0.22); }
    100% { box-shadow: 0 0 0 0 rgba(14,124,107,0); }
}

/* Replay button (shown after the conversation finishes) */
.chat-replay {
    align-self: center;
    margin-top: 12px;
    opacity: 0;
    animation: chatMsgIn 0.3s var(--ease-out) 0.2s forwards;
}
.chat-replay-btn {
    background: rgba(255,255,255,0.92);
    color: var(--c-primary);
    border: 1px solid var(--c-primary-muted);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 36px;
}
.chat-replay-btn:hover { background: #fff; border-color: var(--c-primary); box-shadow: var(--shadow-sm); }
.chat-replay-btn:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
.chat-replay-btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 480px) {
    .chat-body { height: 420px; }
    .chat-frame { border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .chat-msg, .chat-msg-summary, .chat-typing, .chat-replay { animation: none !important; opacity: 1 !important; transform: none !important; box-shadow: 0 1px 1px rgba(0,0,0,0.08); }
    .typing-dot { animation: none; opacity: 0.6; }
}

/* ===== AI FEATURE DEEP-DIVE ===== */
.ai-feature {
    background: var(--c-surface);
    background-image:
        radial-gradient(circle at 15% 20%, rgba(14,124,107,0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(232,145,58,0.04) 0%, transparent 40%);
}
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); align-items: center; }
.ai-text h2 { margin-bottom: var(--space-sm); }
.ai-features-list { list-style: none; margin-top: var(--space-md); }
.ai-features-list li {
    display: flex; gap: 14px; padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--c-border);
}
.ai-features-list li:last-child { border-bottom: none; }
.ai-feature-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--c-primary-light); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.ai-feature-icon svg { width: 20px; height: 20px; stroke: var(--c-primary); fill: none; stroke-width: 1.7; }
.ai-feature-content h4 { margin-bottom: 4px; font-size: 1rem; }
.ai-feature-content p { font-size: 0.88rem; margin: 0; color: var(--c-text-muted); line-height: 1.55; }

/* AI workflow diagram */
.ai-flow {
    background: var(--c-bg-alt); border-radius: var(--radius-lg);
    padding: var(--space-lg); border: 1px solid var(--c-border);
}
.ai-flow-step {
    display: flex; gap: var(--space-sm); align-items: flex-start;
    padding-bottom: var(--space-md); position: relative;
}
.ai-flow-step:not(:last-child)::before {
    content: ''; position: absolute; left: 19px; top: 44px; bottom: -4px;
    width: 2px; background: var(--c-primary-muted);
}
.ai-flow-step:last-child { padding-bottom: 0; }
.ai-flow-num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
    border: 4px solid var(--c-bg-alt);
    position: relative; z-index: 1;
}
.ai-flow-content { padding-top: 4px; }
.ai-flow-content h5 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: var(--c-text); margin-bottom: 4px; }
.ai-flow-content p { font-size: 0.85rem; margin: 0; color: var(--c-text-muted); line-height: 1.55; }

/* ===== PROGRAM (3 months) ===== */
.program { background: var(--c-bg); }
.program-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); position: relative; }
.program-timeline::before {
    content: ''; position: absolute; top: 28px; left: 16%; right: 16%;
    height: 2px; background: var(--c-primary-muted);
}
.program-step { text-align: center; position: relative; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--c-primary); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--space-sm); position: relative; z-index: 1;
    border: 4px solid var(--c-bg);
    box-shadow: 0 4px 12px rgba(14,124,107,0.25);
    transition: transform var(--t-base) var(--ease-out);
}
.program-step:hover .step-num { transform: scale(1.08); }
.program-step h4 { margin-bottom: 6px; color: var(--c-primary); }
.program-step p { font-size: 0.9rem; color: var(--c-text-muted); max-width: 320px; margin: 0 auto; }
.program-deliverable {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: var(--space-sm); padding: 0.35rem 0.85rem;
    background: var(--c-primary-light); border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 600; color: var(--c-primary);
}
.program-deliverable::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c-primary); }

.program-note {
    max-width: 760px;
    margin: var(--space-lg) auto 0;
    text-align: center;
    font-size: 0.92rem;
    color: var(--c-text-muted);
    line-height: 1.7;
    padding: 0 var(--space-sm);
}

/* ===== PRICING ===== */
.pricing { background: var(--c-bg-alt); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.plan-card {
    background: var(--c-surface); border-radius: var(--radius-lg);
    padding: var(--space-lg); border: 2px solid var(--c-border);
    display: flex; flex-direction: column; position: relative;
    transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.plan-card:hover { border-color: var(--c-primary-muted); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
    border-color: var(--c-primary);
    box-shadow: 0 4px 24px rgba(14,124,107,0.12);
}
.plan-card.featured:hover { box-shadow: var(--shadow-elevated); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--c-accent); color: #fff; padding: 0.35rem 1rem;
    border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600;
    white-space: nowrap; letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(232,145,58,0.25);
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--c-text); margin-bottom: 4px; letter-spacing: -0.02em; }
.plan-for { font-size: 0.85rem; color: var(--c-text-muted); margin-bottom: var(--space-sm); min-height: 2.6em; }
.plan-price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--c-primary); line-height: 1; letter-spacing: -0.035em; }
.plan-price small { font-size: 0.9rem; font-weight: 400; color: var(--c-text-muted); }
.plan-period { font-size: 0.82rem; color: var(--c-text-muted); margin-bottom: var(--space-md); }
.plan-features { list-style: none; flex: 1; border-top: 1px solid var(--c-border); padding-top: var(--space-sm); }
.plan-features li {
    padding: 0.5rem 0; font-size: 0.88rem; color: var(--c-text-secondary);
    display: flex; align-items: flex-start; gap: 8px;
}
.plan-features li::before { content: '✓'; color: var(--c-primary); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-cta { margin-top: var(--space-md); }
.plan-cta .btn { width: 100%; }

.pricing-note {
    text-align: center; margin-top: var(--space-lg);
    padding: var(--space-md); background: var(--c-accent-light);
    border-radius: var(--radius); border: 1px solid rgba(232,145,58,0.18);
    max-width: 780px; margin-left: auto; margin-right: auto;
}
.pricing-note p { font-size: 0.88rem; color: var(--c-text-secondary); margin-bottom: 0.6rem; }
.pricing-note p:last-child { margin-bottom: 0; }
.pricing-note strong { color: var(--c-text); }

.post-program-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); margin-top: var(--space-md); }
.post-card {
    background: var(--c-surface); border-radius: var(--radius); padding: var(--space-md);
    border: 1px solid var(--c-border);
    transition: border-color var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}
.post-card:hover { border-color: var(--c-primary-muted); transform: translateY(-2px); }
.post-card h4 { margin-bottom: 6px; }
.post-card .post-price { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--c-primary); margin-bottom: 6px; letter-spacing: -0.02em; }
.post-card p { font-size: 0.85rem; margin: 0; color: var(--c-text-muted); }

/* ===== TEAM ===== */
.team { background: var(--c-surface); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.team-card {
    text-align: center; padding: var(--space-md);
    border-radius: var(--radius-lg); border: 1px solid var(--c-border);
    background: var(--c-bg);
    transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--c-primary-muted); box-shadow: var(--shadow-md); }

/* Photo placeholder — looks intentional, not broken */
.team-photo {
    width: 130px; height: 130px; border-radius: 50%;
    margin: 0 auto var(--space-sm);
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-primary-muted) 100%);
    display: flex; align-items: center; justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(14,124,107,0.12);
}
.team-photo::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(14,124,107,0.15) 0%, transparent 50%);
}
.team-photo span {
    position: relative; z-index: 1;
    font-family: var(--font-display); font-size: 2rem; font-weight: 700;
    color: var(--c-primary-dark);
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }

.team-card h4 { margin-bottom: 2px; }
.team-role {
    font-size: 0.8rem; font-weight: 600; color: var(--c-primary);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: var(--space-xs);
}
.team-card p { font-size: 0.88rem; margin: 0; color: var(--c-text-muted); line-height: 1.55; }

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,145,58,0.18) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.cta-section::after {
    content: ''; position: absolute; bottom: -40%; right: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2, .cta-section p { color: #fff; }
.cta-section p { opacity: 0.92; max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-section .btn-accent { margin-top: var(--space-md); }

/* ===== FAQ ===== */
.faq { background: var(--c-bg); }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--radius); margin-bottom: 12px;
    overflow: hidden;
    transition: border-color var(--t-base) var(--ease-out);
}
.faq-item[open] { border-color: var(--c-primary-muted); }
.faq-item summary {
    list-style: none;
    padding: var(--space-md);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm);
    font-weight: 600; font-size: 1rem; color: var(--c-text);
    user-select: none;
    transition: background var(--t-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--c-bg); }
.faq-item summary::after {
    content: ''; width: 12px; height: 12px; flex-shrink: 0;
    border-right: 2px solid var(--c-primary);
    border-bottom: 2px solid var(--c-primary);
    transform: rotate(45deg); margin-bottom: 4px;
    transition: transform var(--t-base) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-bottom: -4px; }
.faq-answer {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.95rem; color: var(--c-text-secondary); line-height: 1.7;
}
.faq-answer p { margin-bottom: 0.8rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--c-text); }

/* ===== POLICIES ===== */
.policies { background: var(--c-bg-alt); }
.policies-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); }
.policy-card {
    padding: var(--space-md); border-radius: var(--radius);
    background: var(--c-surface); border: 1px solid var(--c-border);
    transition: border-color var(--t-base) var(--ease-out);
}
.policy-card:hover { border-color: var(--c-primary-muted); }
.policy-card h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.policy-card h4 svg { width: 22px; height: 22px; stroke: var(--c-primary); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.policy-card p { font-size: 0.88rem; margin: 0; color: var(--c-text-muted); line-height: 1.6; }

/* ===== FOOTER ===== */
footer {
    background: var(--c-text); color: rgba(255,255,255,0.7);
    padding: var(--space-lg) 0 var(--space-md);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-brand p { font-size: 0.88rem; margin-top: var(--space-sm); }
.footer-brand .logo-mark { background: var(--c-primary); }
.footer-brand .logo-label .logo-name,
.footer-brand .logo-label .logo-name-full,
.footer-brand .logo-label .logo-name-short { color: #fff; }
.footer-brand .logo-label small { color: rgba(255,255,255,0.55); }
.footer-brand-line {
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}
.footer-brand-line strong { color: rgba(255,255,255,0.85); font-weight: 600; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-sm); }
footer ul { list-style: none; }
footer li { margin-bottom: 0.5rem; }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.88rem; transition: color var(--t-fast) var(--ease-out); }
footer a:hover { color: var(--c-primary-muted); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-md);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm);
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--c-whatsapp);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
    text-decoration: none;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.wa-float:focus-visible { outline-offset: 6px; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--t-base) var(--ease-out);
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal {
    background: var(--c-surface); border-radius: var(--radius-lg);
    max-width: 560px; width: 100%; padding: var(--space-lg);
    position: relative; max-height: 90vh; overflow-y: auto;
    animation: modalIn var(--t-base) var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.modal-close {
    position: absolute; top: 16px; right: 16px;
    background: var(--c-bg); border: 1px solid var(--c-border);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--c-text-muted);
    transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.modal-close:hover { background: var(--c-primary-light); color: var(--c-primary); }
.modal h3 { margin-bottom: var(--space-sm); }
.modal-steps { list-style: none; margin: var(--space-sm) 0 var(--space-md); }
.modal-steps li {
    padding: 0.7rem 0; font-size: 0.92rem; color: var(--c-text-secondary);
    display: flex; align-items: flex-start; gap: 12px;
    border-bottom: 1px solid var(--c-border);
}
.modal-steps li:last-child { border: none; }
.modal-step-num {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--c-primary-light); color: var(--c-primary);
    font-weight: 700; font-size: 0.82rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-note {
    background: var(--c-accent-light); padding: var(--space-sm);
    border-radius: var(--radius); font-size: 0.85rem; color: var(--c-text-secondary);
    margin-bottom: var(--space-md); border: 1px solid rgba(232,145,58,0.18);
}
.modal-note strong { color: var(--c-accent-dark); }
.modal .btn-whatsapp { width: 100%; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .ai-grid { grid-template-columns: 1fr; gap: var(--space-md); }
    .ai-flow { order: 2; }
}

@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-md); }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-ctas { justify-content: center; }
    .hero-proof { justify-content: center; }
    .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
    .approach-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
    .plan-for { min-height: auto; }
    .team-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: var(--space-md); }
    .program-timeline { grid-template-columns: 1fr; gap: var(--space-lg); }
    .program-timeline::before { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--c-surface); flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--c-border);
    }
    .nav-links.active { display: flex; }
    .nav-links a { padding: 10px 0; font-size: 1rem; }
    .mobile-toggle { display: flex; }
    section { padding: var(--space-lg) 0; }
    .credentials-grid { gap: var(--space-xs); }
    .credential-item { padding: 0.4rem 0.7rem; font-size: 0.78rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 var(--space-sm); }
    .hero-proof { flex-direction: column; gap: var(--space-sm); align-items: center; padding-top: var(--space-sm); }
    .hero-ctas { flex-direction: column; width: 100%; }
    .hero-ctas .btn { width: 100%; }
    .problems-grid { grid-template-columns: 1fr; }
    .hero { padding-top: calc(var(--header-h) + var(--space-md)); }
    .modal { padding: var(--space-md); }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero-badge .pulse-dot::after { animation: none; }
}

/* === Fix universal: prevenir overflow horizontal en mobile === */
html, body { overflow-x: hidden; max-width: 100%; position: relative; }
