/* ============================================================
   GastaLOG · landing.css — coherente con la app conectada
   Fondo oscuro, azules eléctricos, sans-serif neutra.
   ============================================================ */

:root {
    --bg:           #1D1D1D;
    --bg-alt:       #242424;
    --bg-elev:      #2a2a2a;
    --border:       #3a3a3a;
    --border-soft:  #2e2e2e;
    --text:         #CCC;
    --text-bright:  #e8e8e8;
    --text-dim:     #888;
    --blue:         #3b6db5;
    --blue-bright:  #4b7dc5;
    --blue-deep:    #2a5490;
    --blue-accent:  #44F;
    --green:        #2d8a6e;
    --shadow:       rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.landing {
    font-family: 'Segoe UI', Tahoma, Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(at 15% 0%, rgba(59, 109, 181, 0.12) 0, transparent 50%),
        radial-gradient(at 85% 100%, rgba(45, 138, 110, 0.06) 0, transparent 60%);
    background-attachment: fixed;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue-accent); color: #fff; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--blue-accent); text-decoration: underline; }

/* ─── HEADER bar ─── */
.gl-bar {
    border-bottom: 1px solid var(--border);
    padding: 14px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(29, 29, 29, 0.8);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.gl-bar .gl-mark {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    color: var(--text-bright);
}
.gl-bar .gl-mark span {
    color: var(--blue-bright);
    margin: 0 2px;
}
.gl-bar .gl-meta {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

/* ─── HERO ─── */
.gl-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    padding: 60px 36px 70px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.gl-eyebrow {
    display: inline-block;
    font-size: 12px;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 20px;
    padding: 5px 12px;
    background: rgba(59, 109, 181, 0.12);
    border: 1px solid rgba(75, 125, 197, 0.3);
    border-radius: 4px;
}

h1.gl-headline {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-weight: 600;
    font-size: clamp(36px, 5.5vw, 60px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--text-bright);
    margin-bottom: 24px;
}
h1.gl-headline span {
    color: var(--blue-bright);
}

.gl-lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    max-width: 540px;
    margin-bottom: 36px;
}
.gl-lede strong { color: var(--text-bright); font-weight: 600; }

.gl-stats {
    display: flex;
    gap: 36px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    max-width: 540px;
}
.gl-stat dt {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.gl-stat dd {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-bright);
    line-height: 1;
}
.gl-stat dd.accent { color: var(--blue-bright); }

/* ─── LOGIN CARD ─── */
.gl-login {
    background: linear-gradient(180deg, var(--bg-alt) 0%, #1f1f1f 100%);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 30px 28px;
    box-shadow:
        0 12px 40px -12px var(--shadow),
        0 0 0 1px rgba(75, 125, 197, 0.06) inset;
    position: relative;
}
.gl-login::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(75, 125, 197, 0.4), transparent 60%);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.gl-login-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
    border-bottom: 2px solid var(--blue-bright);
    padding-bottom: 8px;
    display: inline-block;
}
.gl-login-sub {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 24px;
    margin-top: 6px;
}

.gl-field { margin-bottom: 16px; }
.gl-field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 5px;
}
.gl-field input[type="text"],
.gl-field input[type="email"],
.gl-field input[type="password"] {
    width: 100%;
    background: var(--bg-elev);
    color: var(--text-bright);
    border: 1px solid #555;
    border-radius: 4px;
    padding: 9px 10px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gl-field input:focus {
    border-color: var(--blue-bright);
    box-shadow: 0 0 0 2px rgba(75, 125, 197, 0.3);
}
.gl-field input::placeholder { color: #666; }

.gl-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text);
    margin: 18px 0 22px;
    cursor: pointer;
}
.gl-remember input { accent-color: var(--blue-bright); cursor: pointer; }

.gl-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    border: 1px solid var(--blue-bright);
    border-radius: 6px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    font-family: inherit;
}
.gl-submit:hover {
    background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.gl-login-foot {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}
.gl-login-foot em { color: var(--text); font-style: italic; }

/* ─── SECTIONS ─── */
.gl-section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 60px 36px;
    border-top: 1px solid var(--border);
}

.gl-section h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 12px;
    border-bottom: 2px solid var(--blue-bright);
    padding-bottom: 8px;
    display: inline-block;
}
.gl-section .gl-intro {
    font-size: 16px;
    color: var(--text);
    max-width: 720px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Pillars */
.gl-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gl-pillar {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 22px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.gl-pillar:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}
.gl-pillar .num {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--blue-bright);
    background: rgba(59, 109, 181, 0.12);
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 14px;
}
.gl-pillar h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}
.gl-pillar p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text);
}

/* "Cómo funciona" */
.gl-how {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 50px;
    align-items: start;
}
.gl-how-aside {
    background: var(--bg-alt);
    border-left: 3px solid var(--blue-bright);
    padding: 18px 22px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    border-radius: 0 6px 6px 0;
    position: sticky;
    top: 80px;
}
.gl-how-aside em { color: var(--blue-bright); font-style: normal; font-weight: 600; }
.gl-how ol {
    list-style: none;
    counter-reset: step;
    padding: 0;
}
.gl-how li {
    counter-increment: step;
    padding: 16px 0 16px 50px;
    position: relative;
    border-bottom: 1px solid var(--border-soft);
}
.gl-how li:first-child { padding-top: 0; }
.gl-how li:last-child  { border-bottom: 0; padding-bottom: 0; }
.gl-how li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 14px;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--blue-bright);
}
.gl-how li:first-child::before { top: 0; }
.gl-how li h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
}
.gl-how li p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.55;
}

/* ─── COLOFÓN ─── */
.gl-colofon {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 36px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
}
.gl-colofon h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 16px;
}
.gl-colofon p {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 12px;
    line-height: 1.6;
}
.gl-colofon a.mail {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(59, 109, 181, 0.12);
    border: 1px solid var(--blue);
    border-radius: 4px;
    color: var(--blue-bright);
    font-weight: 600;
    font-size: 14px;
}
.gl-colofon a.mail:hover {
    background: var(--blue);
    color: #fff;
    text-decoration: none;
}

footer.gl-foot {
    border-top: 1px solid var(--border);
    padding: 18px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ─── Animaciones de carga ─── */
@keyframes glRise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.gl-eyebrow      { animation: glRise 0.5s 0.05s ease-out both; }
h1.gl-headline   { animation: glRise 0.6s 0.1s ease-out both; }
.gl-lede         { animation: glRise 0.6s 0.25s ease-out both; }
.gl-stats        { animation: glRise 0.6s 0.4s ease-out both; }
.gl-login        { animation: glRise 0.7s 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }

/* ─── Responsive ─── */
@media (max-width: 880px) {
    .gl-hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px 50px; }
    h1.gl-headline { font-size: clamp(30px, 8vw, 42px); }
    .gl-section { padding: 40px 20px; }
    .gl-pillars { grid-template-columns: 1fr; }
    .gl-how { grid-template-columns: 1fr; gap: 30px; }
    .gl-how-aside { position: static; }
    .gl-bar { padding: 12px 20px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .gl-stats { gap: 24px; flex-wrap: wrap; }
    footer.gl-foot { padding: 16px 20px; flex-direction: column; gap: 6px; text-align: center; }
}
