/* ========================================
   DISTRITO-R — LANDING PAGE STYLES
   DNA: blanco + teal + fotografía + storytelling
   ======================================== */

:root {
    --white: #ffffff;
    --bg-light: #F8FAFC;
    --bg-alt: #F1F5F9;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --text-dark: #0F172A;
    --text: #334155;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --accent: #14B8A6;
    --accent-hover: #0D9488;
    --accent-light: rgba(20, 184, 166, 0.10);
    --green: #22C55E;
    --green-light: rgba(34, 197, 94, 0.12);
    --amber: #F59E0B;
    --red: #EF4444;
    --red-light: rgba(239, 68, 68, 0.10);
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 4px 16px rgba(15, 23, 42, 0.08), 0 12px 40px rgba(15, 23, 42, 0.06);
    --font-mono: 'JetBrains Mono', monospace;
    --font-radical: 'Splash', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

section[id] { scroll-margin-top: 80px; }

.accent { color: var(--accent); }

/* ============ NAV ============ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #1F2937;
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 32px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
    color: #F8FAFC;
    text-decoration: none;
}

.nav__pin {
    flex-shrink: 0;
}

.logo-r {
    font-family: var(--font-radical);
    color: var(--green);
    font-size: 1.15em;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__links a:hover { color: #F8FAFC; }

.nav__cta {
    background: rgba(255, 255, 255, 0.15) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s !important;
}

.nav__cta:hover { background: rgba(255, 255, 255, 0.25) !important; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 32px 100px;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(20, 184, 166, 0.18), transparent),
        linear-gradient(165deg, #0B0F19 0%, #134E4A 45%, #1E293B 100%);
    overflow: hidden;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(20, 184, 166, 0.04) 0px, rgba(20, 184, 166, 0.04) 1px, transparent 1px, transparent 80px),
        repeating-linear-gradient(0deg, rgba(20, 184, 166, 0.04) 0px, rgba(20, 184, 166, 0.04) 1px, transparent 1px, transparent 80px);
    pointer-events: none;
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 680px;
}

.hero__badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.3);
    color: var(--green);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 12px rgba(20, 184, 166, 0.35);
}

.hero__title {
    font-size: 5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

.hero__subtitle {
    font-size: 1.12rem;
    color: rgba(148, 163, 184, 0.85);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero__ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.3);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

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

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--block { width: 100%; }

/* ============ SECTION BASE ============ */
.section__title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}

.section__subtitle {
    text-align: center;
    color: var(--accent);
    margin-bottom: 52px;
    font-size: 1.02rem;
    font-weight: 600;
    font-style: italic;
}

/* ============ PILLARS ============ */
.pillars {
    padding: 110px 32px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.97)),
        url('../img/geralt-network-7024980_1920.png') center/cover no-repeat;
}

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.pillar { text-align: center; }

.pillar__circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    margin-bottom: 22px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pillar__circle svg {
    width: 36px;
    height: 36px;
}

.pillar:hover .pillar__circle {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(20, 184, 166, 0.2);
}

.pillar__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.pillar__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* ============ DASHBOARD ============ */
.dashboard {
    padding: 100px 32px;
    background: linear-gradient(155deg, #134E4A 0%, #0F766E 50%, #14B8A6 100%);
}

.dashboard__inner {
    display: flex;
    align-items: center;
    gap: 64px;
    max-width: 1080px;
    margin: 0 auto;
}

.dashboard__text { flex: 1; }

.dashboard__text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.dashboard__text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.dashboard__visual {
    flex: 1.2;
    display: flex;
    justify-content: center;
}

.device {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.device__bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: #1E293B;
}

.device__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #334155;
}

.device__dot:first-child { background: #EF4444; }
.device__dot:nth-child(2) { background: #F59E0B; }
.device__dot:nth-child(3) { background: #22C55E; }

.device__screen {
    background: #0F172A;
    padding: 18px;
}

.device__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.device__chip {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 500;
    color: var(--accent);
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.25);
    padding: 3px 10px;
    border-radius: 6px;
}

.device__kw {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: #F8FAFC;
    font-weight: 500;
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.rank-table thead th {
    text-align: left;
    color: #64748B;
    font-weight: 500;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 8px;
    border-bottom: 1px solid #1E293B;
}

.rank-table thead th:nth-child(2),
.rank-table thead th:nth-child(3) { text-align: center; }
.rank-table thead th:last-child { text-align: right; }

.rank-table tbody td {
    padding: 8px;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    color: #CBD5E1;
}

.rank-table tbody tr:last-child td { border-bottom: none; }
.rank-table tbody td:nth-child(2),
.rank-table tbody td:nth-child(3) { text-align: center; }
.rank-table tbody td:last-child { text-align: right; font-size: 0.7rem; }

.rank--top1 { color: #22C55E !important; font-weight: 700; }
.rank--good { color: #14B8A6 !important; font-weight: 600; }
.rank--mid { color: #94A3B8 !important; }
.rank--low { color: #F59E0B !important; }
.rank-up { color: #22C55E; }
.rank-down { color: #EF4444; }
.rank-flat { color: #475569; }

.device__note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #1E293B;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    color: #475569;
}

/* ============ PROBLEMA — 2 tarjetas ============ */
.problem {
    padding: 110px 32px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.90)),
        url('../img/prague_monochrome_map.png') center/cover no-repeat;
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}

.problem__card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem__card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.problem__card--accent {
    border-color: rgba(20, 184, 166, 0.4);
    background: #F0FDFA;
    box-shadow: 0 4px 20px rgba(20, 184, 166, 0.08);
}

.problem__heading {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.problem__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.mini-table {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 4px;
}

.mini-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    font-size: 0.88rem;
}

.mini-table__row + .mini-table__row {
    border-top: 1px solid var(--border);
}

.mini-table__row span:first-child { color: var(--text); }

.mini-big {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--amber);
}

.mini-big--green { color: var(--green); }

.mini-mono {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent);
    background: var(--accent-light);
    padding: 2px 10px;
    border-radius: 6px;
}

/* ============ HOW — con imágenes ============ */
.how {
    padding: 110px 32px;
    background: var(--bg-light);
}

.how__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 900px;
    margin: 0 auto;
}

.how__step {
    text-align: center;
    padding: 0 24px 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.how__step:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.how__img {
    position: relative;
    width: calc(100% + 48px);
    height: 180px;
    margin-left: -24px;
    margin-right: -24px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.how__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.how__number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-light);
    padding: 5px 12px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.how__step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.how__step p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 260px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============ DONTS — checklist + imagen ============ */
.donts {
    padding: 0;
    background: linear-gradient(155deg, #134E4A 0%, #0F766E 50%, #14B8A6 100%);
    overflow: hidden;
}

.donts__split {
    display: flex;
    align-items: flex-start;
    min-height: 480px;
}

.donts__left {
    flex: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 40px;
    background: transparent;
}

.donts__left .section__title {
    text-align: center;
    margin-bottom: 8px;
    color: var(--white);
}

.donts__left .section__subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: rgba(148, 163, 184, 0.85);
}

.donts__checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.donts__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.donts__checklist li strong {
    color: var(--white);
    font-size: 1rem;
}

.donts__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #99F6E4;
    margin-top: 2px;
}

.donts__right {
    flex: 7;
    position: relative;
    aspect-ratio: 2112 / 1168;
}

.donts__right img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============ PRICING ============ */
.pricing {
    padding: 110px 32px;
    background: var(--bg-light);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

.price__card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.price__card--highlight {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(20, 184, 166, 0.15);
}

.price__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

.price__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.price__amount {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.price__cur {
    font-size: 1.3rem;
    vertical-align: super;
    color: var(--accent);
}

.price__per {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price__list {
    list-style: none;
    margin-bottom: 28px;
    flex: 1;
}

.price__list li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 0.88rem;
    color: var(--text);
}

.price__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ============ WAITLIST — teal gradient ============ */
.waitlist {
    padding: 100px 32px;
    background: linear-gradient(155deg, #134E4A 0%, #0F766E 50%, #14B8A6 100%);
    text-align: center;
}

.waitlist h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

.waitlist > p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist__form {
    max-width: 600px;
    margin: 0 auto;
}

.waitlist__form iframe {
    width: 100%;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.4);
}

.waitlist__note {
    margin-top: 16px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ FAQ ============ */
.faq {
    padding: 100px 32px;
    background: var(--white);
}

.faq__list {
    max-width: 680px;
    margin: 0 auto;
}

.faq__item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
}

.faq__question:hover { color: var(--accent); }

.faq__question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-light);
    transition: transform 0.25s, color 0.25s;
}

.faq__item.open .faq__question::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq__answer p {
    padding: 0 22px 18px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============ FOOTER ============ */
.footer {
    padding: 48px 32px 28px;
    background: rgba(11, 15, 25, 0.88);
    border-top: 1px solid #1F2937;
}

.footer__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #F8FAFC;
}

.footer__slogan {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    font-style: italic;
}

.footer__links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer__links a:hover { color: #F8FAFC; }

.footer__bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 28px;
    border-top: 1px solid #1F2937;
    font-size: 0.78rem;
    color: #64748B;
}

/* ============ ANIMATIONS ============ */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .pillars__grid,
    .how__grid,
    .pricing__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .problem__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .dashboard__inner {
        flex-direction: column;
        text-align: center;
    }

    .donts__split {
        flex-direction: column;
    }

    .donts__left {
        padding: 60px 32px;
    }

    .donts__left .section__title,
    .donts__left .section__subtitle {
        text-align: center;
    }

    .donts__right {
        min-height: 300px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav__links a:not(.nav__cta) { display: none; }
    .nav__inner { padding: 12px 20px; }
    .hero { padding: 120px 20px 80px; }
    .hero__title { font-size: 2.2rem; }
    section { padding-left: 20px; padding-right: 20px; }
    .section__title { font-size: 1.7rem; }
    .donts__right { min-height: 250px; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
    .waitlist__form iframe { height: 420px; }
}