/* ============================================
   INDIO - Landing de producto
   Se apoya en modern.css (header, nav, botones, footer, formulario)
   ============================================ */

.page-indio {
    --accent-primary: #3f73c0;
    --accent-secondary: #2fb59d;
    --accent-gradient: linear-gradient(135deg, #5b8fd6 0%, #4fc9b4 100%);
    --accent-glow: rgba(91, 143, 214, 0.35);
    --indio-blue: #76a0d8;
    --indio-teal: #6ee1cd;
    --indio-navy: #283a52;
    --indio-soft: rgba(91, 143, 214, 0.08);
}

[data-theme="dark"] .page-indio {
    --accent-primary: #8fb4e6;
    --accent-secondary: #6ee1cd;
    --accent-gradient: linear-gradient(135deg, #7ea8e0 0%, #6ee1cd 100%);
    --accent-glow: rgba(126, 168, 224, 0.28);
    --indio-soft: rgba(126, 168, 224, 0.08);
}

.page-indio .section-header { max-width: 760px; }
.page-indio .section-title { line-height: 1.15; }
.page-indio .section-alt { background: var(--bg-secondary); }

/* ---------- Logo de producto en header ---------- */
.indio-crumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 14px;
    margin-left: 4px;
    border-left: 1px solid var(--border-color);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.indio-crumb img { height: 26px; width: auto; }

/* ---------- Hero ---------- */
.indio-hero {
    position: relative;
    padding: 150px 0 80px;
    overflow: hidden;
    text-align: center;
}
.indio-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 400px at 15% 10%, rgba(118, 160, 216, 0.22), transparent 70%),
        radial-gradient(520px 380px at 85% 20%, rgba(110, 225, 205, 0.20), transparent 70%);
    pointer-events: none;
}
.indio-hero .container { position: relative; z-index: 1; }

.indio-hero-logo {
    display: block;
    height: 140px;
    width: auto;
    margin: 0 auto 28px;
    animation: fadeInUp 0.6s ease forwards;
}
.indio-hero .hero-badge { margin-bottom: 24px; }
.indio-hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 auto 22px;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}
.indio-hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.indio-hero-desc {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}
.indio-hero .hero-actions { justify-content: center; margin-bottom: 64px; }

.indio-hero-shot {
    max-width: 1080px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* ---------- Para quién (chips) ---------- */
.indio-for {
    padding: 40px 0 10px;
    text-align: center;
}
.indio-for p {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
}
.chip svg { width: 16px; height: 16px; color: var(--accent-primary); }

/* ---------- Antes / Después ---------- */
.compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.compare-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}
.compare-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.compare-card ul { list-style: none; display: grid; gap: 14px; }
.compare-card li {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.compare-card li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.compare-card.is-before li svg { color: #e46f6f; }
.compare-card.is-after {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
        var(--accent-gradient) border-box;
    border: 1.5px solid transparent;
    box-shadow: 0 20px 50px -20px var(--accent-glow);
}
.compare-card.is-after li svg { color: var(--accent-secondary); }
.compare-card.is-after li strong { color: var(--text-primary); }

/* ---------- Cómo funciona (pasos) ---------- */
.steps {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}
.steps::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 30px;
    bottom: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--indio-blue), var(--indio-teal));
    opacity: 0.45;
}
.step {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    align-items: start;
}
.step-num {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}
.step-num svg { width: 26px; height: 26px; }
.step-num span {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}
.step-body {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.step-body:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.step-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 8px;
}
.step-head h3 { font-size: 1.25rem; }
.who {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: var(--indio-soft);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 600;
}
.who svg { width: 14px; height: 14px; }
.step-body p { color: var(--text-secondary); }
.step-result {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-color);
    font-size: 0.92rem;
    color: var(--text-tertiary);
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.step-result svg { width: 18px; height: 18px; color: var(--accent-secondary); flex-shrink: 0; margin-top: 2px; }
.step-result strong { color: var(--text-primary); font-weight: 600; }

/* ---------- Línea de estados ---------- */
.tracker {
    max-width: 1080px;
    margin: 56px auto 0;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
}
.tracker h4 { font-size: 1.05rem; margin-bottom: 6px; }
.tracker > p { color: var(--text-tertiary); font-size: 0.92rem; margin-bottom: 22px; }
.tracker-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.tracker-state {
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--indio-soft);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.tracker-state.done { background: rgba(79, 201, 180, 0.14); color: #1f9f88; border-color: rgba(79, 201, 180, 0.35); }
.tracker-state.now { background: var(--accent-gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 18px -6px var(--accent-glow); }
[data-theme="dark"] .tracker-state.done { color: #6ee1cd; }
.tracker-arrow { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Capturas (tabs) ---------- */
.shots-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}
.shots-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.shots-tab svg { width: 16px; height: 16px; }
.shots-tab:hover { color: var(--text-primary); border-color: var(--border-hover); }
.shots-tab.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px -8px var(--accent-glow);
}
.shot-panel { display: none; }
.shot-panel.active { display: grid; animation: fadeInUp 0.45s ease; }
.shot-panel {
    grid-template-columns: 1.9fr 1fr;
    gap: 40px;
    align-items: center;
}
.shot-panel > *,
.step > * { min-width: 0; }
.shot-caption h3 { font-size: 1.6rem; line-height: 1.25; margin-bottom: 12px; letter-spacing: -0.01em; }
.shot-caption p { color: var(--text-secondary); margin-bottom: 18px; }
.shot-caption ul { list-style: none; display: grid; gap: 10px; }
.shot-caption li { display: flex; gap: 10px; color: var(--text-secondary); }
.shot-caption li svg { width: 18px; height: 18px; color: var(--accent-secondary); flex-shrink: 0; margin-top: 3px; }
.shot-note {
    text-align: center;
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Capturas reales (ventana de navegador y teléfono) ---------- */
.mock-window {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(15, 30, 60, 0.12);
    box-shadow: 0 40px 80px -30px rgba(20, 40, 80, 0.45), 0 10px 30px -10px rgba(20, 40, 80, 0.2);
    text-align: left;
}
.mock-bar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: #eef2f7;
    border-bottom: 1px solid #e3e9f2;
}
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1) { background: #ff5f56; }
.mock-bar i:nth-child(2) { background: #ffbd2e; }
.mock-bar i:nth-child(3) { background: #27ca40; }
.mock-url {
    margin-left: 14px;
    flex: 1;
    max-width: 360px;
    height: 24px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #e3e9f2;
    color: #6b7a90;
    font-size: 11.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}
.mock-url svg { width: 11px; height: 11px; }
.shot-window img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    background: #f4f7fb;
}
.shot-phones {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
}
.shot-phone {
    width: min(270px, 46%);
    padding: 9px;
    border-radius: 36px;
    background: #10151f;
    box-shadow: 0 40px 80px -30px rgba(20, 40, 80, 0.55);
}
.shot-phone:nth-child(2) { margin-top: 48px; }
.shot-phone img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 780 / 1688;
    border-radius: 28px;
    background: #f4f7fb;
}
/* ---------- Roles ---------- */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.role-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.role-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--indio-soft);
    color: var(--accent-primary);
    margin-bottom: 14px;
}
.role-icon svg { width: 22px; height: 22px; }
.role-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.role-card p { font-size: 0.92rem; color: var(--text-tertiary); line-height: 1.5; }

/* ---------- Funcionalidades ---------- */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feat {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.feat-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 8px 18px -8px var(--accent-glow);
}
.feat-icon svg { width: 22px; height: 22px; }
.feat h4 { font-size: 1.05rem; margin-bottom: 4px; }
.feat p { font-size: 0.92rem; color: var(--text-tertiary); line-height: 1.5; }

/* ---------- Implementación ---------- */
.onboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: ob;
}
.onboard-item {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    counter-increment: ob;
}
.onboard-item::before {
    content: counter(ob, decimal-leading-zero);
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 14px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.onboard-item h4 { font-size: 1.05rem; margin-bottom: 6px; }
.onboard-item p { font-size: 0.92rem; color: var(--text-tertiary); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0 22px;
    transition: border-color var(--transition-fast);
}
.faq details[open] { border-color: var(--border-hover); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1.02rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--text-tertiary); transition: transform var(--transition-fast); flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent-primary); }
.faq details p { padding: 0 0 20px; color: var(--text-secondary); }

/* ---------- CTA final ---------- */
.indio-cta {
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(500px 260px at 10% 0%, rgba(110, 225, 205, 0.35), transparent 70%),
        radial-gradient(500px 260px at 90% 100%, rgba(118, 160, 216, 0.45), transparent 70%),
        #22324a;
    margin-bottom: 0;
}
.indio-cta img { height: 64px; width: auto; margin: 0 auto 20px; }
.indio-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.indio-cta p { color: #c9d6e8; max-width: 560px; margin: 0 auto 28px; font-size: 1.08rem; }
.indio-cta .hero-actions { justify-content: center; animation: none; opacity: 1; }
.indio-cta .btn-secondary { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.indio-cta .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .shot-panel { grid-template-columns: 1fr; gap: 28px; }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .feat-grid { grid-template-columns: repeat(2, 1fr); }
    .onboard { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .indio-crumb { display: none; }
    .indio-hero { padding: 120px 0 60px; }
    .indio-hero-logo { height: 104px; }
    .indio-hero .hero-actions { margin-bottom: 44px; }
    .compare { grid-template-columns: 1fr; }
    .compare-card { padding: 26px; }
    .steps::before { left: 23px; }
    .step { grid-template-columns: 48px 1fr; gap: 14px; }
    .step-num { width: 48px; height: 48px; border-radius: 14px; }
    .step-num svg { width: 20px; height: 20px; }
    .step-body { padding: 20px; }
    .mock-bar { height: 28px; padding: 0 10px; gap: 5px; }
    .mock-bar i { width: 8px; height: 8px; }
    .mock-url { height: 18px; font-size: 10px; margin-left: 8px; }
    .mock-window { border-radius: 10px; }
    .shot-phones { gap: 14px; }
    .shot-phone { padding: 6px; border-radius: 26px; }
    .shot-phone img { border-radius: 20px; }
    .shot-phone:nth-child(2) { margin-top: 28px; }
    .roles-grid, .feat-grid, .onboard { grid-template-columns: 1fr; }
    .indio-cta { padding: 44px 22px; }
}
