/* ============================================
   Aliados — Landing pública
   Tokens extraídos de css/tracker-habitos.css
   (paleta cálida: #f9f5f4 · #ffffff · #0d0200 · #fe3100 · #b21900)
   No se carga tracker-habitos.css completo — esta hoja es autónoma.
   ============================================ */

:root {
    --al-cream: #f9f5f4;
    --al-white: #ffffff;
    --al-ink: #0d0200;
    --al-ink-soft: #0d0200b8;
    --al-ink-faint: #0d020088;
    --al-accent: #fe3100;
    --al-accent-dark: #b21900;
    --al-border: #0d020014;
    --al-radius-lg: 24px;
    --al-radius-md: 16px;
    --al-radius-pill: 100px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.al-page {
    background-color: var(--al-cream);
    color: var(--al-ink);
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.al-page img { max-width: 100%; height: auto; display: block; }
.al-page a { text-decoration: none; color: inherit; }

.al-page :focus-visible {
    outline: 2px solid var(--al-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.al-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Back link ── */
.al-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--al-ink-faint);
    transition: color 0.2s ease;
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    padding: 8px 16px;
    border-radius: var(--al-radius-pill);
}

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

/* ── Buttons ── */
.al-btn {
    display: inline-block;
    background-color: var(--al-accent);
    color: var(--al-white);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 40px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 20px rgba(254, 49, 0, 0.22);
}

.al-btn:hover {
    background-color: var(--al-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(178, 25, 0, 0.28);
}

.al-btn--ghost {
    background-color: transparent;
    color: var(--al-ink);
    border: 2px solid #0d020033;
    box-shadow: none;
}

.al-btn--ghost:hover {
    background-color: #0d020008;
    border-color: var(--al-ink);
    color: var(--al-ink);
    box-shadow: 0 4px 16px rgba(13, 2, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .al-btn, .al-btn--ghost { transition: none; }
    .al-btn:hover, .al-btn--ghost:hover { transform: none; }
}

/* ── Eyebrow / tag ── */
.al-tag {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--al-accent);
    border: 1px solid var(--al-accent);
    border-radius: var(--al-radius-pill);
    padding: 6px 18px;
    margin-bottom: 20px;
}

/* ══════════════════════════════════════════════
   1. HERO
   ══════════════════════════════════════════════ */
.al-hero {
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.al-hero::after {
    content: '◆';
    position: absolute;
    bottom: 32px;
    left: 48px;
    font-size: 14px;
    color: rgba(254, 49, 0, 0.18);
    pointer-events: none;
}

.al-hero .al-container {
    position: relative;
    z-index: 1;
}

.al-hero__layout {
    display: flex;
    align-items: center;
    gap: 64px;
}

.al-hero__content {
    flex: 1 1 54%;
    min-width: 0;
}

.al-hero__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 58px;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
    text-wrap: balance;
}

.al-hero__subtitle {
    font-size: 18px;
    font-weight: 400;
    color: var(--al-ink-soft);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Decorative connection graphic — pure CSS, no images/JS */
.al-hero__visual {
    flex: 1 1 46%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 380px;
}

.al-blob {
    position: absolute;
    border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
}

.al-blob--a {
    width: 260px;
    height: 260px;
    left: 14%;
    top: 10%;
    background: linear-gradient(135deg, #fe3100 0%, #ff8a5c 100%);
    opacity: 0.14;
}

.al-blob--b {
    width: 220px;
    height: 220px;
    right: 8%;
    bottom: 6%;
    background: linear-gradient(135deg, #b21900 0%, #fe3100 100%);
    opacity: 0.12;
    border-radius: 58% 42% 39% 61% / 55% 48% 52% 45%;
}

.al-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.al-node {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--al-accent);
    box-shadow: 0 6px 18px rgba(254, 49, 0, 0.35);
}

.al-node--1 { top: 22%; left: 30%; }
.al-node--2 { top: 58%; left: 62%; width: 26px; height: 26px; background: var(--al-ink); box-shadow: 0 6px 18px rgba(13, 2, 0, 0.25); }
.al-node--3 { top: 74%; left: 24%; width: 14px; height: 14px; opacity: 0.7; }
.al-node--4 { top: 30%; left: 72%; width: 12px; height: 12px; background: var(--al-ink); opacity: 0.55; }

.al-nodes svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.al-nodes svg path {
    fill: none;
    stroke: var(--al-ink);
    stroke-width: 1.5;
    stroke-dasharray: 5 7;
    opacity: 0.25;
}

/* ══════════════════════════════════════════════
   2. BENEFICIOS Y MODALIDADES
   ══════════════════════════════════════════════ */
.al-benefits {
    padding: 90px 0 100px;
    position: relative;
}

.al-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--al-accent);
    border-radius: 2px;
}

.al-benefits__heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.al-benefits__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.15;
    text-wrap: balance;
}

.al-benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.al-benefit {
    background: var(--al-white);
    border: 1px solid var(--al-border);
    border-radius: var(--al-radius-md);
    padding: 28px 22px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.al-benefit:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(13, 2, 0, 0.08);
}

.al-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(254, 49, 0, 0.1);
    border-radius: 14px;
    font-size: 24px;
    margin-bottom: 16px;
}

.al-benefit__text {
    font-size: 14.5px;
    color: var(--al-ink-soft);
    line-height: 1.55;
}

.al-modalities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.al-modality {
    background: var(--al-white);
    border: 1px solid var(--al-border);
    border-top: 3px solid var(--al-accent);
    border-radius: var(--al-radius-lg);
    padding: 40px 36px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.al-modality:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(254, 49, 0, 0.14);
}

.al-modality__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(254, 49, 0, 0.1);
    border-radius: 16px;
    font-size: 26px;
    margin-bottom: 20px;
}

.al-modality__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 21px;
    margin-bottom: 12px;
}

.al-modality__text {
    font-size: 15px;
    color: var(--al-ink-soft);
    line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
    .al-benefit, .al-modality { transition: none; }
    .al-benefit:hover, .al-modality:hover { transform: none; }
}

/* ══════════════════════════════════════════════
   3. CIERRE Y CTA
   ══════════════════════════════════════════════ */
.al-closing {
    padding: 40px 0 120px;
    position: relative;
}

.al-closing__box {
    background: var(--al-white);
    border-radius: var(--al-radius-lg);
    border-top: 3px solid var(--al-accent);
    max-width: 720px;
    margin: 0 auto;
    padding: 64px 48px;
    text-align: center;
    box-shadow:
        0 20px 64px rgba(13, 2, 0, 0.08),
        0 4px 12px rgba(13, 2, 0, 0.03);
    position: relative;
}

.al-closing__box::after {
    content: '✦';
    position: absolute;
    top: 28px;
    right: 32px;
    font-size: 16px;
    color: rgba(254, 49, 0, 0.2);
    pointer-events: none;
}

.al-closing__title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 18px;
    text-wrap: balance;
}

.al-closing__text {
    font-size: 16px;
    color: var(--al-ink-soft);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.al-closing__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Footer ── */
.al-footer {
    text-align: center;
    padding: 32px 0;
    font-size: 13px;
    color: var(--al-ink-faint);
}

.al-footer a { text-decoration: underline; text-underline-offset: 2px; }
.al-footer a:hover { color: var(--al-accent); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .al-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .al-hero { min-height: auto; padding: 96px 0 48px; }

    .al-hero__layout {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .al-hero__content { max-width: 100%; }
    .al-hero__title { font-size: 38px; }
    .al-hero__subtitle { font-size: 16px; margin-left: auto; margin-right: auto; }
    /* Puramente decorativo (aria-hidden) -- se oculta en mobile para
       priorizar el titulo y el CTA en la primera pantalla. */
    .al-hero__visual { display: none; }

    .al-benefits { padding: 64px 0 72px; }
    .al-benefits__title { font-size: 28px; }
    .al-benefits__grid { grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 44px; }
    .al-benefit { padding: 20px 14px; }
    .al-benefit__text { font-size: 13.5px; }

    .al-modalities { grid-template-columns: 1fr; gap: 18px; }
    .al-modality { padding: 32px 26px; }

    .al-closing { padding: 24px 0 88px; }
    .al-closing__box { padding: 44px 24px; }
    .al-closing__title { font-size: 26px; }
    .al-closing__actions { flex-direction: column; align-items: stretch; }

    .al-back { top: 16px; left: 16px; padding: 7px 14px; font-size: 12px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .al-hero__title { font-size: 46px; }
    .al-benefits__grid { grid-template-columns: repeat(2, 1fr); }
}
