/* ============================================================
   Entrenaly - Design System base (landing, auth, componentes)
   ============================================================ */

:root {
    --primary: #1753A1;
    --primary-dark: #1B2D50;
    --primary-light: #E8EEF6;
    --accent: #00C48C;
    --accent-dark: #00A876;

    --bg: #F7F8FB;
    --bg-card: #FFFFFF;
    --border: #E6E8EF;

    --text-primary: #14162B;
    --text-secondary: #5B5F76;
    --text-muted: #9296A8;

    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --success: #10B981;
    --success-bg: #ECFDF5;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(20, 22, 43, 0.06);
    --shadow-md: 0 8px 24px rgba(20, 22, 43, 0.08);
    --shadow-lg: 0 20px 45px rgba(20, 22, 43, 0.12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.02em; }

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

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
    font-family: inherit;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(23,83,161,.30); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(0,196,140,.30); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.card-pad { padding: 28px; }

/* ---------- Formularios ---------- */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.form-control, select.form-control, textarea.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }

/* ---------- Alertas ---------- */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-danger { background: var(--danger-bg); color: #B91C1C; border-color: #FCA5A5; }
.alert-warning { background: var(--warning-bg); color: #92400E; border-color: #FCD34D; }
.alert-success { background: var(--success-bg); color: #065F46; border-color: #6EE7B7; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #B45309; }
.badge-danger { background: var(--danger-bg); color: #B91C1C; }
.badge-muted { background: #F1F2F6; color: var(--text-secondary); }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* ---------- Utilidades ---------- */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.mt-0 { margin-top: 0; }

/* ============================================================
   Landing page
   ============================================================ */
.nav-landing {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247,248,251,.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-landing .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text-primary); }
.brand-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: #1B2D50;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--text-secondary); font-weight: 500; font-size: 14.5px; }
.nav-links a:not(.btn):hover { color: var(--text-primary); }
.nav-link-login { display: none; }
.nav-links-call { display: none; }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: flex; align-items: center; gap: 4px;
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; color: var(--text-secondary); font-weight: 500; font-size: 14.5px;
    cursor: pointer;
}
.nav-dropdown-toggle:hover { color: var(--text-primary); }
.nav-caret { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
    display: none;
    position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
    grid-template-columns: repeat(3, 1fr); gap: 4px 8px;
    width: 760px; padding: 20px 10px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 60;
}
.nav-dropdown.open .nav-dropdown-panel { display: grid; }
.nav-dd-col { display: flex; flex-direction: column; gap: 4px; padding: 0 10px; }
.nav-dd-col + .nav-dd-col { border-left: 1px solid var(--border); }
.nav-dd-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    color: var(--text-muted); padding: 4px 12px 10px;
}
.nav-dropdown-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text-primary) !important; font-weight: 600; font-size: 14px;
}
.nav-dropdown-item:hover { background: var(--primary-light); }
.ndi-text { display: flex; flex-direction: column; gap: 3px; }
.ndi-title { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.nav-dropdown-item:hover .ndi-title { color: var(--primary); }
.ndi-sub { font-weight: 400; font-size: 12px; line-height: 1.4; color: var(--text-muted); }

.nav-dropdown-panel.nav-mega-panel {
    grid-template-columns: 200px 1fr;
    width: 660px; padding: 0;
}
.nav-mega-nav {
    display: flex; flex-direction: column; gap: 2px;
    padding: 14px; border-right: 1px solid var(--border);
}
.nav-mega-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 9px 10px; border: none; border-radius: var(--radius-sm);
    background: none; font: inherit; font-weight: 600; font-size: 13.5px;
    color: var(--text-secondary); text-align: left; cursor: pointer;
}
.nav-mega-item .ndi-icon { width: 28px; height: 28px; }
.nav-mega-item .ndi-icon svg { width: 15px; height: 15px; }
.nav-mega-item:hover, .nav-mega-item.active { background: var(--primary-light); color: var(--primary); }
.nav-mega-content { padding: 18px 20px; min-width: 0; }
.nav-mega-pane { display: none; }
.nav-mega-pane.active { display: block; }
.nav-mega-pane .nav-dd-title { padding: 0 12px 8px; }
.nav-mega-viewall {
    display: block; margin-top: 6px; padding: 12px 12px 0;
    border-top: 1px solid var(--border);
    font-size: 13px; font-weight: 700; color: var(--primary) !important;
}
.ndi-icon {
    width: 34px; height: 34px; border-radius: 9px; background: var(--primary-light);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ndi-icon svg { width: 18px; height: 18px; color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; padding: 0; margin: 0; flex-shrink: 0;
    border: none; background: transparent; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 0 auto; background: var(--text-primary); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero-bg-brand {
    position: absolute; inset: 0; z-index: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(180deg, #EEF3FA, #F7F9FC);
}
.hero .hero-bg-brand {
    background:
        radial-gradient(circle at 0% 100%, rgba(23,83,161,.85) 0%, rgba(23,83,161,.4) 34%, rgba(23,83,161,0) 65%),
        linear-gradient(180deg, #EEF3FA, #F7F9FC);
}
.hero-bg-glow {
    position: absolute; top: -12%; left: 50%; transform: translateX(-50%);
    width: 640px; height: 640px; max-width: 90vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(23,83,161,.20), rgba(23,83,161,0) 68%);
    animation: heroGlowPulse 6s ease-in-out infinite;
}
@keyframes heroGlowPulse {
    0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.hero-bg-logo {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
    animation: heroLogoFade 6s ease-in-out infinite;
}
.hero-bg-logo-mark { width: 110px; height: 110px; border-radius: 26px; overflow: hidden; display: block; box-shadow: var(--shadow-md); }
.hero-bg-logo-mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.22); }
.hero-bg-logo span { font-size: 34px; font-weight: 800; color: var(--text-primary); }
@keyframes heroLogoFade {
    0%, 100% { opacity: 0; }
    50% { opacity: .85; }
}

.hero {
    padding: 88px 0 80px;
    min-height: calc(100vh - 73px);
    min-height: calc(100dvh - 73px);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; justify-items: center; }
.hero-copy { text-align: center; }
.hero h1 { font-size: 52px; margin: 0 auto 20px; overflow-wrap: break-word; max-width: 780px; }
.hero h1 span {
    position: relative;
    display: inline-block;
    color: var(--primary);
    background: linear-gradient(90deg, var(--primary) 0%, #4F8FE0 25%, var(--accent) 50%, #4F8FE0 75%, var(--primary) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
    .hero h1 span {
        animation: heroGradientMove 6s ease-in-out infinite, heroGlow 3s ease-in-out infinite;
    }
}
@keyframes heroGradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@keyframes heroGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(23,83,161,0)); }
    50% { filter: drop-shadow(0 2px 18px rgba(23,83,161,.35)); }
}
.hero p.lead { font-size: 19px; color: var(--text-secondary); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; margin-bottom: 20px; justify-content: center; }
.hero-note { font-size: 13.5px; color: var(--text-muted); }
.hero-cta-mobile { display: none; }

.hero-visual-counter { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.hero-visual-counter strong { color: var(--primary); font-size: 15px; }
.hero-visual-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 640 / 460;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
}
.hero-visual-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .5s ease, transform .5s ease;
}
.hero-visual-img.active { opacity: 1; transform: translateY(0) scale(1); }
.hero-visual-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.hero-dot.active { background: var(--primary); transform: scale(1.3); }

.hero-shot {
    margin-top: 64px; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}

.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.eyebrow { color: var(--primary); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: 36px; }
.section-head p { color: var(--text-secondary); font-size: 16.5px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 30px; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.steps-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 16.666%; right: 16.666%;
    height: 2px;
    background: repeating-linear-gradient(to right, var(--border) 0 8px, transparent 8px 16px);
    z-index: 0;
}
.step-item { position: relative; z-index: 1; text-align: center; }
.step-marker { position: relative; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.step-num-badge {
    position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
    font-size: 54px; font-weight: 800; line-height: 1;
    color: var(--primary-light);
    z-index: 0;
    user-select: none;
}
.step-icon {
    position: relative; z-index: 1;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--bg-card); border: 2px solid var(--primary); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 6px var(--bg-card);
}
.step-icon svg { width: 26px; height: 26px; }
.step-item h3 { font-size: 17px; margin-bottom: 8px; }
.step-item p { color: var(--text-secondary); font-size: 14.5px; margin: 0 auto; max-width: 260px; }

/* ---------- Showcase (sección fija del alto de la imagen; el texto se desplaza por dentro) ---------- */
.showcase-scroll-space { position: relative; }

.showcase-pin {
    position: sticky;
    top: 88px;
    height: 520px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    /* sin align-items: los hijos deben estirarse (stretch, el valor por defecto) para heredar
       los 520px de alto; si no, .showcase-steps-viewport no tiene una altura real que recortar. */
}

.showcase-steps-viewport { position: relative; height: 100%; overflow: hidden; }
.showcase-steps-track { position: absolute; top: 0; left: 0; width: 100%; will-change: transform; }

.showcase-step {
    min-height: 520px;
    padding: 28px 0 28px 28px;
    border-left: 3px solid var(--border);
    opacity: .35;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: opacity .3s ease, border-color .3s ease;
    box-sizing: border-box;
}
.showcase-step.active { opacity: 1; border-left-color: var(--primary); }
.showcase-num { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; transition: color .3s ease; }
.showcase-step.active .showcase-num { color: var(--primary); }
.showcase-step h3 { font-size: 22px; margin-bottom: 10px; }
.showcase-step p { color: var(--text-secondary); font-size: 15px; max-width: 440px; margin: 0; }
.showcase-step ul { list-style: none; padding: 0; margin: 14px 0 0; max-width: 440px; }
.showcase-step ul li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
.showcase-step ul li::before { content: '✓'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.showcase-step-mobile-img { display: none; }

.showcase-visual { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.showcase-counter { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.showcase-counter strong { color: var(--primary); font-size: 15px; }
.showcase-image-wrap {
    position: relative;
    width: 100%;
    max-height: 100%;
    aspect-ratio: 640 / 460;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: #fff;
}
.showcase-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateY(18px) scale(.98);
    transition: opacity .5s ease, transform .5s ease;
}
.showcase-img.active { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 960px) {
    .showcase-scroll-space { height: auto !important; }
    .showcase-pin { position: static; height: auto; display: block; }
    .showcase-steps-viewport { height: auto; overflow: visible; }
    .showcase-steps-track { position: static; transform: none !important; width: auto; }
    .showcase-step { opacity: 1; border-left-color: var(--border); padding: 0 0 40px; }
    .showcase-visual { display: none; }
    .showcase-step-mobile-img { display: flex; align-items: center; justify-content: center; width: 100%; padding: 24px; border-radius: var(--radius-md); box-shadow: var(--shadow-md); border: 1px solid var(--border); margin-bottom: 18px; background: linear-gradient(160deg, var(--bg), #fff); }
}

.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 48px; }
.switch { position: relative; width: 52px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
    position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background .2s;
}
.switch-track::before {
    content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: var(--shadow-sm);
}
.switch input:checked + .switch-track { background: var(--primary); }
.switch input:checked + .switch-track::before { transform: translateX(24px); }
.save-badge { background: var(--success-bg); color: #047857; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 26px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured::before {
    content: 'Más popular'; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px;
}
.price-name { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.price-desc { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 20px; }
.price-amount { font-size: 34px; font-weight: 800; margin-bottom: 4px; }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--text-muted); }
.price-period { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 14px; color: var(--text-secondary); }
.price-features li::before { content: '✓'; color: var(--accent); font-weight: 700; }

.role-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.role-card { padding: 26px; }
.role-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.role-head-icon {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
}
.role-head-icon svg { width: 19px; height: 19px; }
.role-head h3 { font-size: 18px; margin: 0 0 2px; }
.role-head p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.role-list { list-style: none; padding: 0; margin: 0; }
.role-list li {
    display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; row-gap: 2px;
    padding: 11px 0; border-top: 1px solid var(--border);
}
.role-list li:first-child { border-top: none; padding-top: 0; }
.role-check {
    grid-column: 1; grid-row: 1 / span 2; margin-top: 1px;
    width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.role-list li strong { grid-column: 2; grid-row: 1; font-size: 13.5px; color: var(--text-primary); line-height: 1.4; }
.role-list li .role-desc { grid-column: 2; grid-row: 2; font-size: 12.5px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- Slider interno de "todas las funciones" (mismo mecanismo que #producto) ---------- */
.role-scroll-space { position: relative; }
.role-pin { position: sticky; top: 88px; }
.role-list-viewport { position: relative; overflow: hidden; height: 360px; }
.role-list.role-track { position: absolute; top: 0; left: 0; width: 100%; margin: 0; will-change: transform; }

@media (max-width: 900px) {
    .role-columns { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
    .role-scroll-space { height: auto !important; }
    .role-pin { position: static; }
    .role-list-viewport { height: auto; overflow: visible; }
    .role-list.role-track { position: static; transform: none !important; width: auto; }
}

.cta-band {
    background: linear-gradient(135deg, var(--primary), #5D87BD);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}
.cta-band h2 { color: #fff; font-size: 32px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 30px; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-band .btn-primary:hover { background: #f2f2ff; }
.cta-band-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-band-actions .btn-outline { border-color: rgba(255,255,255,.6); color: #fff; }
.cta-band-actions .btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Popup "Llamadme" */
.callme-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(10,14,22,.55); backdrop-filter: blur(2px);
    display: none; align-items: center; justify-content: center; padding: 20px;
}
.callme-overlay.open { display: flex; }
body.callme-lock { overflow: hidden; }
.callme-modal {
    position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
    background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 34px 32px;
}
.callme-close {
    position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--bg); color: var(--text-secondary); font-size: 18px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.callme-close:hover { background: var(--primary-light); color: var(--primary); }
.callme-head { margin-bottom: 22px; padding-right: 30px; }
.callme-head h3 { margin: 6px 0 8px; font-size: 22px; }
.callme-head p { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.callme-times { display: flex; flex-wrap: wrap; gap: 8px; }
.callme-times span {
    padding: 9px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    font-size: 13px; font-weight: 700; color: var(--text-primary); cursor: pointer; transition: all .15s ease;
}
.callme-times span:hover { border-color: var(--primary); }
.callme-times span.active { background: var(--primary); border-color: var(--primary); color: #fff; }
@media (max-width: 480px) { .callme-modal { padding: 28px 22px; } }

footer.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); font-size: 14px; }
.footer-bottom { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 32px; }

/* ---------- Auth (login/registro) ---------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.auth-box { width: 100%; max-width: 440px; }
.auth-box .brand { justify-content: center; margin-bottom: 24px; }
.auth-box .brand-mark { width: 44px; height: 44px; }
.auth-box .brand { font-size: 22px; }
.auth-box h1 { font-size: 24px; text-align: center; margin-bottom: 6px; }
.auth-box p.sub { text-align: center; color: var(--text-secondary); margin-bottom: 28px; font-size: 14.5px; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-secondary); }

@media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-landing .container { height: 84px; }
    .brand { font-size: 21px; gap: 12px; }
    .brand-mark { width: 42px; height: 42px; border-radius: 12px; }
    .nav-toggle { display: flex; width: 46px; height: 46px; gap: 6px; }
    .nav-toggle span { width: 26px; height: 2.5px; }
    .nav-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
    .nav-links {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md); padding: 12px 0;
        max-height: calc(100vh - 84px); overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links > a:not(.btn) {
        display: flex; justify-content: center; align-items: center; text-align: center;
        margin: 4px 16px; padding: 17px 20px;
        background: var(--bg); border-radius: var(--radius-sm);
        font-size: 17px; font-weight: 600;
    }
    .nav-links > a:not(.btn):active { background: var(--primary-light); }
    .nav-cta-call { display: none; }
    .nav-links-call {
        display: inline-flex;
        width: calc(100% - 32px);
        margin: 4px 16px 14px;
    }
    .nav-links a.nav-link-login {
        display: block; margin: 10px 24px 4px; padding: 10px 16px;
        border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
        color: var(--primary); font-weight: 700;
    }
    .nav-links a.nav-link-login:hover { background: var(--primary-light); }
    .nav-cta-login { display: none; }
    .nav-links > .nav-dropdown > .nav-dropdown-toggle {
        width: calc(100% - 32px); justify-content: center; text-align: center;
        margin: 4px 16px; padding: 17px 20px;
        background: var(--bg); border-radius: var(--radius-sm);
        font-size: 17px; font-weight: 600;
    }
    .nav-caret { width: 17px; height: 17px; }
    .nav-dropdown-panel {
        position: static; transform: none; width: auto; max-width: none;
        grid-template-columns: 1fr; gap: 0;
        box-shadow: none; border: none; background: transparent;
        margin: 4px 16px 12px; padding: 0;
    }
    .nav-dd-col {
        padding: 14px 10px; margin-bottom: 8px;
        background: var(--bg); border-radius: var(--radius-sm);
    }
    .nav-dd-col + .nav-dd-col { border-left: none; margin-top: 0; }
    .nav-dd-title {
        text-align: center; padding: 2px 12px 10px; margin: 0 4px 8px;
        font-size: 12px; font-weight: 800; letter-spacing: .06em;
        color: var(--primary); border-bottom: 1.5px solid var(--border);
    }
    .nav-dropdown-item {
        flex-direction: column; align-items: center; text-align: center;
        gap: 8px; padding: 14px; margin-bottom: 8px;
        background: var(--bg-card); border: 1px solid var(--border);
        border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    }
    .nav-dropdown-item:last-child { margin-bottom: 0; }
    .ndi-text { align-items: center; }
    .ndi-icon { width: 40px; height: 40px; }
    .ndi-icon svg { width: 21px; height: 21px; }
    .ndi-title { font-size: 16px; }
    .ndi-sub { font-size: 13px; }
    .nav-dropdown-panel.nav-mega-panel { grid-template-columns: 1fr; width: auto; }
    .nav-mega-nav {
        flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 10px;
        border-right: none; border-bottom: none;
        padding: 10px 8px 18px;
    }
    .nav-mega-item {
        width: auto; padding: 10px 16px;
        background: var(--bg); border-radius: 22px;
    }
    .nav-mega-item .ndi-icon { width: 32px; height: 32px; }
    .nav-mega-item .ndi-icon svg { width: 17px; height: 17px; }
    .nav-mega-item span:not(.ndi-icon) { font-size: 14px; }
    .nav-mega-content { padding: 0 16px 4px; }
    .nav-mega-pane .nav-dd-title { text-align: center; }
    .nav-mega-viewall { text-align: center; }
    .hero { min-height: 52vh; padding: 56px 0 28px; }
    .hero h1 { font-size: 36px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-copy { text-align: center; }
    .hero p.lead { max-width: none; margin-left: auto; margin-right: auto; margin-bottom: 12px; }
    .hero-cta { justify-content: center; }
    .features-grid, .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero { min-height: 50vh; padding: 44px 0 20px; }
    .hero h1 { font-size: 28px; }
    .hero p.lead { font-size: 16px; }
    .hero-cta { flex-direction: column; }
    .nav-landing .container { padding: 0 16px; }
    .nav-cta { gap: 8px; }
    .nav-cta .btn { padding: 12px 16px; }
}
