/*
 * rePOS - Landing comercial.
 * Paleta y tipografia "Estanteria", coherente con el panel admin y la PWA
 * mobile. El hero y el spotlight de cuenta corriente reusan el tratamiento
 * oscuro verde-bosque + degrade coral del login ya rediseniado, para que la
 * marca se sienta igual desde el primer click hasta adentro del sistema.
 */

:root {
    --font-display: "Century Gothic", "Trebuchet MS", system-ui, sans-serif;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --ink: #20302a;
    --muted: #5e6d66;
    --line: #dde6e0;
    --panel: #ffffff;
    --page: #f3f6f2;

    --accent: #146c5b;
    --accent-dark: #0e5145;
    --accent-soft: #e5f2ee;

    --accent2: #e2572b;
    --accent2-dark: #c2431c;
    --accent2-soft: #fdece4;

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(32, 48, 42, .07);
    --shadow-md: 0 14px 32px rgba(32, 48, 42, .12);
    --shadow-lg: 0 30px 64px rgba(10, 30, 24, .28);

    --dark-1: #0a2b35;
    --dark-2: #123f3d;
    --dark-3: #164a3f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol {
    margin: 0;
}

h1, h2, h3 {
    font-family: var(--font-display);
    text-wrap: balance;
    color: var(--ink);
}

a {
    color: inherit;
}

img, svg {
    max-width: 100%;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: #f2b562;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0 22px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease, transform .05s ease, color .15s ease;
}

.btn i {
    font-size: .95em;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent2);
    color: #fff;
    box-shadow: 0 10px 24px rgba(226, 87, 43, .28);
}

.btn-primary:hover {
    background: var(--accent2-dark);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .55);
}

.btn-lg {
    min-height: 52px;
    padding: 0 26px;
    font-size: 16px;
}

.full-action {
    width: 100%;
}

/* ---------- Nav ---------- */
.wordmark {
    display: inline-flex;
    align-items: baseline;
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -.5px;
    text-decoration: none;
}

.wordmark .wm-re {
    color: var(--muted);
    font-weight: 600;
}

.wordmark .wm-pos {
    color: var(--accent2);
    font-weight: 800;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: auto;
    margin-left: 12px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--accent-dark);
}

.nav-cta {
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 0;
    place-items: center;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--ink);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 14px 24px 20px;
}

.mobile-nav a {
    padding: 10px 4px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.mobile-nav .btn {
    margin-top: 10px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 24px;
    background: linear-gradient(145deg, var(--dark-1), var(--dark-2) 56%, var(--dark-3));
    color: #fff;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(340px, 460px);
    align-items: center;
    gap: 48px;
    max-width: 1180px;
    margin: 0 auto;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, .06), transparent 42%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 56px);
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.hero-copy {
    max-width: 640px;
}

.hero h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.08;
}

.hero-sub {
    max-width: 52ch;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.hero-note {
    color: rgba(255, 255, 255, .6);
    font-size: 13px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.mock-frame {
    width: min(400px, 100%);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(1.2deg);
}

.mock-topbar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: #eef2ee;
}

.mock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cddbd3;
}

.mock-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.mock-label {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.mock-value {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.mock-session {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.mock-pill {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
}

.mock-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.mock-thumb {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
}

.mock-line {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.mock-line strong {
    font-size: 13px;
    color: var(--ink);
}

.mock-line span {
    font-size: 11px;
    color: var(--muted);
}

.mock-amount {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.mock-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 4px;
}

.mock-total span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mock-total strong {
    color: var(--accent2);
    font-size: 26px;
    font-variant-numeric: tabular-nums;
}

.mock-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-radius: var(--radius-pill);
    background: var(--accent2);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Secciones genericas ---------- */
main > section {
    padding: clamp(56px, 8vw, 96px) 24px;
}

.section-head {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    margin-bottom: 12px;
}

.section-sub {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Pilares ---------- */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    max-width: 1180px;
    margin: -44px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.pillar {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-md);
    padding: 22px 20px;
}

.pillar-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
}

.pillar h3 {
    font-size: 17px;
}

.pillar p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

/* ---------- Features ---------- */
.features {
    max-width: 1180px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    display: grid;
    gap: 10px;
    align-content: start;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel);
    padding: 24px;
    transition: box-shadow .15s ease, transform .15s ease;
}

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

.feature-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--accent2-soft);
    color: var(--accent2);
    font-size: 18px;
}

.feature-card h3 {
    font-size: 18px;
}

.feature-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Spotlight cuenta corriente ---------- */
.spotlight {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 8vw, 96px) 24px;
    background: linear-gradient(150deg, var(--dark-2), var(--dark-1) 70%);
    color: #fff;
}

.spotlight-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(300px, 420px);
    gap: 48px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
}

.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 56px);
}

.spotlight-copy {
    max-width: 560px;
}

.spotlight-copy h2 {
    color: #fff;
    font-size: clamp(26px, 3.4vw, 38px);
    margin-bottom: 16px;
}

.spotlight-copy > p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 22px;
}

.spotlight-list {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.spotlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, .92);
    font-size: 14px;
    font-weight: 600;
}

.spotlight-list i {
    margin-top: 3px;
    color: var(--accent2);
}

.spotlight-visual {
    display: flex;
    justify-content: center;
}

.spotlight-card {
    width: min(360px, 100%);
    display: grid;
    gap: 10px;
    border-radius: var(--radius-xl);
    background: #fff;
    color: var(--ink);
    padding: 26px;
    box-shadow: var(--shadow-lg);
}

.spotlight-amount {
    font-size: 34px;
    color: var(--accent2);
    font-variant-numeric: tabular-nums;
}

.spotlight-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.spotlight-row strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ---------- Cómo empieza ---------- */
.steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    display: grid;
    gap: 10px;
    align-content: start;
}

.step-number {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
}

.steps-list h3 {
    font-size: 18px;
}

.steps-list p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.steps-list code {
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: .95em;
}

/* ---------- Precios ---------- */
.pricing {
    display: grid;
    place-items: center;
}

.pricing-card {
    max-width: 620px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow-md);
    padding: clamp(32px, 5vw, 48px);
}

.pricing-card p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    margin: 12px 0 24px;
}

/* ---------- FAQ ---------- */
.faq {
    max-width: 780px;
    margin: 0 auto;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--panel);
    padding: 6px 20px;
}

.faq-item summary {
    cursor: pointer;
    padding: 14px 0;
    font-weight: 700;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 16px;
    color: var(--muted);
    font-size: 13px;
    transition: transform .2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    padding-bottom: 16px;
}

/* ---------- CTA final ---------- */
.cta-final {
    text-align: center;
}

.cta-final h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    margin-bottom: 10px;
}

.cta-final p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 26px;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--panel);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 24px;
}

.footer-brand p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.footer-contact {
    display: flex;
    gap: 20px;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-dark);
}

.footer-copy {
    width: 100%;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .mobile-nav:not([hidden]) {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .mock-frame {
        transform: none;
    }

    .pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 24px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spotlight-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .spotlight-copy {
        margin: 0 auto;
    }

    .spotlight-list li {
        text-align: left;
    }

    .steps-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pillars,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

    .footer-contact {
        justify-content: center;
    }
}
