/* =============================================
   trainGo — Landing (glassmorphism deportivo)
   Derivado de landing-stockgo.css (misma estructura)
   ============================================= */

:root {
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #22d3ee 100%);
    --accent-color:     #22d3ee;
    --energy:           #f97316;
    --text-light:       #ffffff;
    --glass-bg:         rgba(255,255,255,0.08);
    --glass-border:     rgba(255,255,255,0.15);
}

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

body {
    font-family:'Inter',sans-serif;
    background:
      linear-gradient(160deg, rgba(11,31,51,.80) 0%, rgba(14,58,82,.74) 55%, rgba(11,31,51,.84) 100%),
      url('../images/fondo.jpg') center center / cover no-repeat fixed #0b1f33;
    color:var(--text-light);
    overflow-x:hidden;
    min-height:100vh;
}

.landing-wrap { position:relative; z-index:10; min-height:100vh; display:flex; flex-direction:column; padding-bottom:4rem; }

/* Header */
.landing-header { padding:1.5rem 0 1rem; }
.brand-logo     { display:flex; align-items:flex-start; gap:14px; text-decoration:none; }

.logo-mark {
    width:72px; height:72px; border-radius:20px;
    overflow:hidden; background:#16324f;
    box-shadow:0 8px 30px rgba(249,115,22,.35), 0 4px 16px rgba(34,211,238,.3);
}
.logo-mark img { width:100%; height:100%; object-fit:cover; display:block; }
.brand-text1    { font-size:3rem; font-weight:800; line-height:1.1; }
.brand-a        { color:var(--energy); }
.brand-b        { color:#94A3B8; }
.brand-sub      { font-size:.95rem; color:rgba(255,255,255,.85); margin-top:.1rem; }

/* Hero */
.hero { padding:1.5rem 0 2rem; }
.hero-grid { display:grid; grid-template-columns:1fr auto; gap:2rem; align-items:center; }
.hero-visual { display:flex; align-items:center; justify-content:center; flex-shrink:0; }

.sport-orbit {
    width:250px; height:250px; border-radius:50%;
    border:1px dashed rgba(255,255,255,.25);
    display:flex; align-items:center; justify-content:center; gap:1.2rem;
    animation:orbitFloat 4s ease-in-out infinite;
    background:radial-gradient(circle, rgba(34,211,238,.12), transparent 70%);
}
.sport-orbit i { font-size:3rem; color:rgba(255,255,255,.9);
    filter:drop-shadow(0 2px 8px rgba(34,211,238,.4)); }
.sport-orbit i:nth-child(1) { color:#f97316; }
.sport-orbit i:nth-child(2) { color:#22d3ee; }
.sport-orbit i:nth-child(3) { color:#a3e635; }

@keyframes orbitFloat {
    0%,100% { transform:translateY(0); }
    50%     { transform:translateY(-10px); }
}

.hero-sub  { font-size:1.15rem; color:#ffffff; margin-bottom:.5rem; max-width:640px; text-shadow:0 1px 6px rgba(0,0,0,.55); }

/* Secciones */
.section-title {
    font-size:.85rem; font-weight:700; text-transform:uppercase;
    letter-spacing:.08em; color:#ffffff;
    background:rgba(255,255,255,.12);
    border-left:3px solid var(--accent-color);
    padding:.35rem .85rem; border-radius:0 8px 8px 0;
    display:inline-block; margin-bottom:1rem;
    text-shadow:0 1px 4px rgba(0,0,0,.5);
}

.features-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:.75rem; margin-bottom:2.5rem; }

.feat-card {
    background:var(--glass-bg); border:1px solid var(--glass-border);
    border-radius:14px; padding:1rem 1.2rem;
    display:flex; align-items:flex-start; gap:.8rem;
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
    transition:border-color .2s ease, transform .2s ease;
}

.feat-card:hover { border-color:rgba(34,211,238,.5); transform:translateY(-2px); }
.feat-card i    { color:var(--accent-color); font-size:1.2rem; margin-top:.15rem; flex-shrink:0; filter:drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.feat-card span { font-size:.92rem; color:#ffffff; line-height:1.4; text-shadow:0 1px 4px rgba(0,0,0,.45); }

/* Modal */
.modal-overlay {
    position:fixed; top:0; left:0; width:100%; height:100%;
    background:rgba(0,0,0,.7); z-index:9998;
    display:none; align-items:center; justify-content:center;
    backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
}
.modal-overlay.active { display:flex; }

.modal-content {
    background:rgba(14,58,82,.85); border:1px solid rgba(34,211,238,.4);
    border-radius:16px; padding:2rem;
    backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    max-width:450px; width:90%;
    position:relative; z-index:9999;
    animation:modalSlideIn .3s ease-out;
}

@keyframes modalSlideIn {
    from { transform:translateY(-20px); opacity:0; }
    to { transform:translateY(0); opacity:1; }
}

.modal-close {
    position:absolute; top:1rem; right:1rem;
    background:none; border:none; color:rgba(255,255,255,.7);
    font-size:1.5rem; cursor:pointer; transition:color .2s;
}
.modal-close:hover { color:#fff; }

.login-title { font-size:1.3rem; font-weight:700; color:#fff; text-align:center; margin-bottom:1.5rem; }

.form-group { margin-bottom:1rem; }
.form-label { display:block; font-size:.78rem; font-weight:600; color:rgba(255,255,255,.85); margin-bottom:.35rem; }

.form-input {
    width:100%; padding:.75rem .85rem;
    border:1px solid rgba(255,255,255,.2);
    border-radius:8px; font-size:.95rem;
    color:#fff; background:rgba(255,255,255,.1);
    transition:border-color .2s, background .2s;
}
.form-input:focus { border-color:var(--accent-color); background:rgba(255,255,255,.15); outline:none; }
.form-input::placeholder { color:rgba(255,255,255,.5); }
.form-hint { font-size:.72rem; color:rgba(255,255,255,.6); margin-top:.3rem; }

.btn-login {
    width:100%; padding:.85rem;
    background:var(--primary-gradient); color:#fff;
    border:none; border-radius:8px;
    font-size:1rem; font-weight:700; cursor:pointer;
    transition:opacity .2s, transform .1s;
}
.btn-login:hover:not(:disabled) { opacity:.92; }
.btn-login:active:not(:disabled) { transform:scale(.98); }
.btn-login:disabled { opacity:.6; cursor:not-allowed; }

.alert { padding:.75rem 1rem; border-radius:8px; font-size:.85rem; margin-bottom:1rem; display:none; align-items:center; gap:.5rem; }
.alert.error   { background:rgba(239,68,68,.2); border:1px solid rgba(239,68,68,.4); color:#fca5a5; }
.alert.success { background:rgba(16,185,129,.2); border:1px solid rgba(16,185,129,.4); color:#6ee7b7; }
.alert.show    { display:flex; }

/* CTA */
.cta-row { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; margin-bottom:2rem; justify-content:center; }

.btn-cta-primary {
    display:inline-flex; align-items:center; gap:.6rem;
    background:var(--primary-gradient); color:#fff;
    font-weight:700; font-size:1rem; padding:.85rem 2rem;
    border-radius:50px; text-decoration:none; border:none; cursor:pointer;
    transition:opacity .2s ease, transform .2s ease;
}
.btn-cta-primary:hover { opacity:.9; transform:translateY(-2px); color:#fff; }

.btn-cta-secondary {
    display:inline-flex; align-items:center; gap:.6rem;
    background:rgba(255,255,255,.1); color:rgba(255,255,255,.9);
    font-weight:600; font-size:.95rem; padding:.85rem 1.8rem;
    border-radius:50px; text-decoration:none;
    border:1px solid rgba(255,255,255,.25);
    backdrop-filter:blur(8px);
    transition:background .2s ease, color .2s ease;
}
.btn-cta-secondary:hover { background:rgba(255,255,255,.18); color:#fff; }

/* Idioma */
.lang-switcher {
    display:flex; align-items:center; gap:.3rem;
    background:rgba(255,255,255,.06);
    padding:.25rem .5rem; border-radius:8px;
    border:1px solid rgba(255,255,255,.1);
    position:fixed; top:1rem; right:1rem; z-index:9999;
}
.lang-btn { text-decoration:none; font-size:1.3rem; padding:.2rem .3rem; border-radius:4px;
    display:inline-flex; align-items:center; justify-content:center;
    transition:all .2s ease; line-height:1; background:none; border:none; cursor:pointer; }
.lang-btn.active  { filter:grayscale(0%); opacity:1; background:rgba(255,255,255,.18); box-shadow:0 0 0 1px rgba(255,255,255,.18); }
.lang-btn.inactive{ filter:grayscale(80%); opacity:.55; }
.lang-btn:hover   { filter:grayscale(0%); opacity:1; background:rgba(255,255,255,.1); }
.lang-divider { color:rgba(255,255,255,.2); font-size:.8rem; user-select:none; }

/* Footer */
footer {
    position:fixed; bottom:0; left:0; width:100%; z-index:100;
    background:rgba(255,255,255,.07);
    backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
    border-top:1px solid rgba(255,255,255,.12);
    padding:.75rem 2rem;
    display:flex; align-items:center; justify-content:space-between;
    box-sizing:border-box;
}
footer .f-left { font-size:.78rem; color:rgba(255,255,255,.65); letter-spacing:.3px; }
footer .f-mid  { font-size:.78rem; color:rgba(255,255,255,.5); }
footer a { color:rgba(255,255,255,.65); text-decoration:none; }
footer a:hover { color:#fff; }

@media(max-width:768px) {
    .brand-text1 { font-size:2rem; }
    .hero-grid   { grid-template-columns:1fr; }
    .hero-visual { display:none; }
    .logo-mark   { width:56px; height:56px; font-size:1.5rem; }
    .cta-row     { flex-direction:column; align-items:center; }
    footer       { flex-direction:column; align-items:flex-start; padding:.75rem 1rem; gap:.3rem; }
    .modal-content { width:95%; padding:1.5rem; }
}

/* ── Secciones colapsables (compacto táctil ≤1366px) ── */
.feat-group { margin:0; }
.feat-group > summary { list-style:none; }
.feat-group > summary::-webkit-details-marker { display:none; }
.feat-chevron { display:none; }

.compact-feat .feat-group { margin-bottom:.25rem; }
.compact-feat .feat-group > summary.section-title {
    display:flex; align-items:center; justify-content:space-between;
    gap:.75rem; width:100%; cursor:pointer; margin-bottom:.75rem;
    user-select:none; -webkit-user-select:none;
}
.compact-feat .feat-chevron { display:inline-block; font-size:.75rem; flex-shrink:0; color:var(--accent-color); transition:transform .2s ease; }
.compact-feat .feat-group.fg-open .feat-chevron { transform:rotate(180deg); }
.compact-feat .feat-group:not(.fg-open) > :not(summary) { display:none; }
.compact-feat .features-grid {
    display:flex; flex-direction:column; gap:0; margin-bottom:1.25rem;
    background:var(--glass-bg); border:1px solid var(--glass-border);
    border-radius:14px; overflow:hidden;
    backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.compact-feat .feat-card { background:transparent; border:none; border-radius:0; border-bottom:1px solid var(--glass-border); padding:.65rem 1rem; }
.compact-feat .feat-card:last-child { border-bottom:none; }
.compact-feat .feat-card:hover { transform:none; }

.f-label-sm { display:none; }
.compact-feat footer { flex-direction:row; align-items:center; justify-content:space-between; padding:.45rem .9rem; gap:.6rem; }
.compact-feat footer .f-left { font-size:.68rem; white-space:nowrap; }
.compact-feat footer .f-mid, .compact-feat footer .f-right { display:flex; align-items:center; gap:.9rem; }
.compact-feat footer .f-label    { display:none; }
.compact-feat footer .f-label-sm { display:inline; font-size:.72rem; }
.compact-feat footer a i { font-size:1rem; }
