/* ==========================================================
   Mi Liga Social - CSS comercial moderno
   Sustituir completo: /var/www/html/miligasocial/assets/css/style.css
   ========================================================== */

:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-soft: #f2f6fd;
    --text: #101828;
    --muted: #5d6b82;
    --primary: #155eef;
    --primary-dark: #0f3fb5;
    --primary-soft: #eef4ff;
    --navy: #102033;
    --border: #d8dee8;
    --border-soft: #e7ecf3;
    --success: #12b76a;
    --shadow-sm: 0 6px 18px rgba(16, 24, 40, .06);
    --shadow-md: 0 16px 38px rgba(16, 24, 40, .09);
    --shadow-lg: 0 24px 70px rgba(16, 24, 40, .13);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 16px; color: var(--muted); }
strong { color: var(--text); }

.container {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
}

.narrow { max-width: 820px; }
.center-block { text-align: center; }

/* ==========================================================
   Header
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(12px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 225px;
}

.brand-mark {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    font-size: .82rem;
    letter-spacing: -.04em;
    box-shadow: var(--shadow-sm);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    white-space: nowrap;
}

.brand-text strong {
    font-size: 1.03rem;
    font-weight: 900;
    letter-spacing: -.035em;
}

.brand-text small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.nav-toggle,
.nav-toggle-label { display: none; }

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: #344054;
    font-weight: 800;
    font-size: .93rem;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.main-nav .nav-cta {
    margin-left: 8px;
    padding-inline: 18px;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta.is-active {
    background: var(--primary-dark);
    color: #fff;
}

/* ==========================================================
   Tipografía y botones
   ========================================================== */

h1, h2, h3 {
    margin: 0 0 16px;
    color: var(--text);
    line-height: 1.08;
    letter-spacing: -.045em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.75rem); }
h2 { font-size: clamp(1.85rem, 3.3vw, 3rem); }
h3 { font-size: 1.22rem; }

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 14px;
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    text-transform: none;
    letter-spacing: 0;
    font-size: .82rem;
}

.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    line-height: 1.2;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.btn:hover,
button:hover,
input[type="submit"]:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(21, 94, 239, .20);
}

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

.btn-secondary {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover { color: var(--primary); border-color: var(--primary); }

.btn-light {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

/* ==========================================================
   Hero principal
   ========================================================== */

.hero {
    padding: 86px 0 74px;
    background:
        radial-gradient(circle at 12% 10%, rgba(21, 94, 239, .10), transparent 30%),
        linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
    border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .78fr);
    gap: 54px;
    align-items: center;
}

.hero-content { min-width: 0; }

.hero-lead {
    max-width: 720px;
    font-size: clamp(1.06rem, 2vw, 1.25rem);
    color: #334155;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 26px;
}

.hero-note {
    margin: 0;
    color: #43566e;
    font-weight: 650;
}

.hero-card {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.phone-mockup {
    width: min(100%, 360px);
    padding: 18px 14px 14px;
    border-radius: 32px;
    background: var(--navy);
    box-shadow: var(--shadow-lg);
}

.mockup-top {
    width: 82px;
    height: 5px;
    margin: 0 auto 16px;
    border-radius: 99px;
    background: rgba(255,255,255,.28);
}

.mockup-screen {
    min-height: 454px;
    padding: 20px 16px;
    border-radius: 24px;
    background: #f8fbff;
}

.pill {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 9px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 900;
}

.mockup-screen h3 {
    margin-bottom: 16px;
    font-size: 1.22rem;
}

.ranking-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 52px;
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid #d6e0ee;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text);
}

.ranking-row strong {
    color: var(--primary);
    font-weight: 900;
}

.ranking-row span { font-weight: 700; }

.ranking-row em {
    color: #475467;
    font-style: normal;
    font-weight: 900;
}

.mini-card {
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--navy);
    color: #fff;
    font-weight: 850;
}

/* ==========================================================
   Secciones y bloques
   ========================================================== */

.section { padding: 76px 0; background: #fff; }
.section.soft { background: var(--surface-soft); }

.section-heading {
    max-width: 850px;
    margin-bottom: 30px;
}

.section-heading.center,
.section-heading.center-block,
.center-block.section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.cards-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.card,
.feature-card,
.demo-card,
.price-card,
.contact-form,
.contact-aside,
.legal-content,
.faq-list details {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.card:hover,
.feature-card:hover,
.demo-card:hover,
.price-card:hover {
    box-shadow: var(--shadow-md);
}

.card-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 16px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
    font-size: 1.22rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 34px;
    align-items: center;
}

.check-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.check-list p {
    position: relative;
    margin: 0;
    padding-left: 30px;
    color: var(--text);
    font-weight: 800;
}

.check-list p::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 4px;
    background: var(--success);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

.check-list p { color: transparent; }
.check-list p::after {
    content: attr(data-text);
}

/* Compatibilidad: oculta el emoji ✅ visual y deja el texto legible */
.check-list p {
    color: var(--text);
}
.check-list p:first-letter {
    color: transparent;
}

.cta-band {
    background: var(--navy);
    color: #fff;
}

.cta-band h2,
.cta-band p { color: #fff; }

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* ==========================================================
   Páginas interiores
   ========================================================== */

.page-hero {
    padding: 72px 0 46px;
    background: linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
    border-bottom: 1px solid var(--border-soft);
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.page-hero p {
    max-width: 780px;
    font-size: 1.1rem;
}

.feature-card h2 { font-size: 1.32rem; }

.demo-card,
.price-card { display: flex; flex-direction: column; }

.demo-card ul,
.price-card ul {
    margin: 8px 0 22px;
    padding-left: 20px;
    color: var(--muted);
}

.demo-card li,
.price-card li { margin: 8px 0; }

.price-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 50px rgba(21, 94, 239, .13);
}

.price {
    margin-bottom: 12px;
    color: var(--primary-dark);
    font-size: 1.55rem;
    font-weight: 900;
}

/* ==========================================================
   Contacto / formularios
   ========================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 24px;
    align-items: start;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field.full,
.contact-form .btn,
.alert { grid-column: 1 / -1; }

.field label {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 850;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, .12);
}

.field small {
    display: block;
    margin-top: 6px;
    color: #b42318;
}

.hidden-field { display: none; }

.checkbox-field label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 650;
}

.checkbox-field input {
    width: auto;
    min-height: auto;
    margin-top: 5px;
}

.alert-error {
    padding: 14px 16px;
    border: 1px solid #fecdca;
    border-radius: var(--radius-sm);
    background: #fef3f2;
    color: #b42318;
    font-weight: 750;
}

.contact-aside .aside-box {
    margin-top: 14px;
    padding: 18px;
    border-radius: var(--radius-md);
    background: var(--primary-soft);
}

.contact-aside strong {
    display: block;
    margin-bottom: 6px;
}

/* ==========================================================
   FAQ y legales
   ========================================================== */

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

.faq-list details { padding: 22px 24px; }

.faq-list summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
    font-size: 1.04rem;
}

.faq-list p { margin-top: 12px; }

.legal-content h2 {
    margin-top: 24px;
    font-size: 1.42rem;
}

.legal-content a {
    color: var(--primary);
    font-weight: 800;
}

/* ==========================================================
   Footer
   ========================================================== */

.site-footer {
    background: #0b1220;
    color: #fff;
}

.site-footer p,
.site-footer a { color: #cbd5e1; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1fr;
    gap: 24px;
    padding: 42px 0;
}

.footer-grid strong { color: #fff; }

.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #94a3b8;
    font-size: .92rem;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 980px) {
    .brand { min-width: auto; }
    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-card { justify-content: flex-start; }
    .cards-3,
    .cards-2,
    .feature-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .header-inner { min-height: 68px; }

    .nav-toggle-label {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        background: #fff;
    }

    .nav-toggle-label span {
        width: 20px;
        height: 2px;
        border-radius: 99px;
        background: var(--text);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        padding: 12px;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        flex-direction: column;
        align-items: stretch;
        z-index: 60;
    }

    .main-nav a {
        justify-content: flex-start;
        padding: 12px 14px;
    }

    .main-nav .nav-cta { margin-left: 0; }
    .nav-toggle:checked ~ .main-nav { display: flex; }

    .hero { padding: 54px 0 46px; }
    .section { padding: 56px 0; }

    .cards-3,
    .cards-2,
    .feature-grid,
    .pricing-grid,
    .contact-form {
        grid-template-columns: 1fr;
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .phone-mockup { width: min(360px, 100%); }
}

@media (max-width: 520px) {
    .container { width: min(100% - 24px, var(--container)); }
    .brand-text small { display: none; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .btn,
    button,
    input[type="submit"] { width: 100%; }
    .phone-mockup { border-radius: 24px; padding: 14px 10px 10px; }
    .mockup-screen { min-height: auto; border-radius: 18px; }
}

/* ==========================================================
   Ajustes portada Mi Liga Social
   ========================================================== */
.hero-content h1 {
    max-width: 900px;
}

.cta-band .eyebrow {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.check-list p:first-letter {
    color: inherit;
}

.feature-card .card-icon + h2 {
    margin-top: 2px;
}

@media (max-width: 980px) {
    .hero-card {
        justify-content: flex-start;
    }
}
