/**
 * Landing Page Styles — paddify.mx
 * SPEC: SPEC-FRONT-USER v1.1.0 §5.1, §9
 * @version 1.0.0
 */

:root {
    --color-primary: #1B5E20; --color-primary-light: #4CAF50; --color-primary-dark: #0D3B13;
    --color-secondary: #E8F5E9; --color-text: #212121; --color-text-muted: #757575;
    --color-bg: #FAFAFA; --color-card: #FFFFFF; --color-border: #E0E0E0;
    --color-success: #2E7D32; --color-warning: #F57F17; --color-danger: #C62828;
    --radius: 8px; --shadow: 0 2px 8px rgba(0,0,0,0.08); --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--color-text); line-height: 1.6; background: #fff; }
a { color: var(--color-primary); text-decoration: none; }
img { max-width: 100%; }

/* ─── Header ──────────────────────────────────────────────── */
.land-header { position: fixed; top: 0; width: 100%; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); z-index: 100; }
.land-header__inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; justify-content: space-between; }
.land-header__logo img { height: 32px; }
.land-nav { display: none; gap: 24px; align-items: center; }
.land-nav--open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: #fff; padding: 16px 20px; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); }
.land-nav__link { font-size: 14px; font-weight: 500; color: var(--color-text); padding: 8px 0; }
.land-nav__link--active { color: var(--color-primary); }
.land-nav__cta { background: var(--color-primary); color: #fff; padding: 8px 20px; border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.land-header__toggle { display: block; background: none; border: none; font-size: 24px; cursor: pointer; }
@media (min-width: 768px) {
    .land-nav { display: flex; }
    .land-header__toggle { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────── */
.hero { padding: 120px 20px 80px; text-align: center; background: linear-gradient(160deg, var(--color-secondary) 0%, #fff 60%); }
.hero__title { font-size: 36px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero__subtitle { font-size: 18px; color: var(--color-text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (min-width: 768px) { .hero__title { font-size: 48px; } }

/* ─── Sections ────────────────────────────────────────────── */
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--color-text-muted); margin-bottom: 32px; }

/* ─── Features ────────────────────────────────────────────── */
.features { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature-card { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.feature-card__icon { font-size: 36px; display: block; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--color-text-muted); }

/* ─── How it Works ────────────────────────────────────────── */
.how-it-works { padding: 80px 20px; background: var(--color-bg); }
.steps { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.step { flex: 1; min-width: 200px; text-align: center; }
.step__number { width: 48px; height: 48px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--color-text-muted); }

/* ─── CTA Section ─────────────────────────────────────────── */
.cta-section { padding: 80px 20px; text-align: center; background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; }
.cta-section h2 { font-size: 28px; margin-bottom: 8px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; }

/* ─── Footer ──────────────────────────────────────────────── */
.land-footer { background: #1a1a1a; color: #ccc; padding: 40px 20px; }
.land-footer__inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.land-footer__brand img { filter: brightness(10); height: 24px; margin-bottom: 4px; }
.land-footer__brand p { font-size: 13px; }
.land-footer__links { display: flex; gap: 16px; }
.land-footer__links a { color: #ccc; font-size: 13px; }
.land-footer__legal { font-size: 12px; opacity: 0.7; }

/* ─── Plans ───────────────────────────────────────────────── */
.pricing-page { padding: 100px 20px 60px; max-width: 1100px; margin: 0 auto; }
.billing-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.billing-toggle__label { font-size: 14px; font-weight: 500; color: var(--color-text-muted); }
.billing-toggle__label--active { color: var(--color-text); font-weight: 700; }
.billing-toggle__switch { width: 48px; height: 26px; border-radius: 13px; background: var(--color-primary); border: none; cursor: pointer; position: relative; }
.billing-toggle__switch::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: left var(--transition); }
.billing-toggle__switch[data-state="yearly"]::after { left: 25px; }
.billing-toggle__discount { color: var(--color-success); font-weight: 600; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan-card { background: var(--color-card); border: 2px solid var(--color-border); border-radius: var(--radius); padding: 28px 24px; text-align: center; position: relative; }
.plan-card--featured { border-color: var(--color-primary); box-shadow: var(--shadow); }
.plan-card__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff; padding: 2px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.plan-card__name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-card__price { margin-bottom: 4px; }
.plan-card__amount { font-size: 32px; font-weight: 800; }
.plan-card__period { font-size: 14px; color: var(--color-text-muted); }
.plan-card__courts { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.plan-card__features { list-style: none; text-align: left; margin-bottom: 20px; font-size: 14px; }
.plan-card__features li { padding: 4px 0; }

/* ─── Register ────────────────────────────────────────────── */
.register-page { padding: 100px 20px 60px; max-width: 600px; margin: 0 auto; }
.register-form { padding: 28px 24px; }
.form-step legend { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__input-group { display: flex; align-items: stretch; }
.form__input-group .form__input { border-radius: var(--radius) 0 0 var(--radius); }
.form__input-suffix { display: flex; align-items: center; padding: 0 12px; background: var(--color-bg); border: 1.5px solid var(--color-border); border-left: none; border-radius: 0 var(--radius) var(--radius) 0; font-size: 13px; color: var(--color-text-muted); white-space: nowrap; }
.form__actions { display: flex; gap: 12px; }
.form__actions .btn { flex: 1; }
.form__input--otp { letter-spacing: 0.35em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.link-btn {
    background: none; border: none; padding: 0; margin: 0;
    color: var(--color-primary); font: inherit; font-weight: 600;
    text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: var(--color-primary-dark); }
.form__checkbox--terms {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35em;
}
.form__checkbox--terms .form__checkbox-label {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.hp-field {
    position: absolute; left: -10000px; top: auto; width: 1px; height: 1px;
    overflow: hidden; opacity: 0; pointer-events: none;
}
.recaptcha-widget { margin: 8px 0; min-height: 65px; }

/* Términos modal */
.terms-dialog {
    border: none; border-radius: var(--radius); padding: 0;
    max-width: min(640px, 94vw); width: 100%;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.terms-dialog::backdrop { background: rgba(0,0,0,0.45); }
.terms-dialog__inner { display: flex; flex-direction: column; max-height: min(80vh, 720px); }
.terms-dialog__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--color-border);
}
.terms-dialog__header h2 { font-size: 18px; margin: 0; }
.terms-dialog__close {
    background: none; border: none; font-size: 28px; line-height: 1;
    cursor: pointer; color: var(--color-text-muted); padding: 0 4px;
}
.terms-dialog__body {
    padding: 16px 20px; overflow-y: auto; font-size: 14px; line-height: 1.55;
    color: var(--color-text);
}
.terms-dialog__body h3 { font-size: 15px; margin: 16px 0 6px; }
.terms-dialog__body p { margin: 0 0 8px; color: var(--color-text-muted); }
.terms-dialog__meta { font-size: 12px; color: var(--color-text-muted); margin-bottom: 12px !important; }
.terms-dialog__footer {
    padding: 12px 20px 16px; border-top: 1px solid var(--color-border);
    display: flex; justify-content: flex-end;
}

/* ─── Onboarding ──────────────────────────────────────────── */
.onboarding-page { padding: 100px 20px 60px; max-width: 520px; margin: 0 auto; }
.onboarding-card { background: var(--color-card); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow); }
.onboarding-steps { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.onboarding-step { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--color-border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--color-text-muted); }
.onboarding-step--active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.form__input--color { height: 44px; padding: 4px; }

/* ─── FAQ ─────────────────────────────────────────────────── */
.faq-page { padding: 100px 20px 60px; max-width: 700px; margin: 0 auto; }
.faq-section { margin-bottom: 32px; }
.faq-section h2 { font-size: 18px; margin-bottom: 12px; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item__question { padding: 14px 0; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item__question::marker { content: ''; }
.faq-item__question::before { content: '▸'; margin-right: 8px; transition: transform var(--transition); display: inline-block; }
.faq-item[open] .faq-item__question::before { transform: rotate(90deg); }
.faq-item__answer { padding: 0 0 14px 20px; font-size: 14px; color: var(--color-text-muted); }

/* ─── Success / Cancel pages ──────────────────────────────── */
.success-page, .cancel-page { padding: 100px 20px 60px; max-width: 520px; margin: 0 auto; text-align: center; }
