/* ============================================================
   LANDING + LOGIN — página de bienvenida (antes de entrar al sistema)
   Fondo degradado abstracto con líneas fluidas; login en tarjeta glass.
   Paleta del proyecto (azul Fluent #0078d4). Translúcidos según el patrón.
   ============================================================ */

/* Guinda institucional ISSEMYM (aplicado translúcido en botones/acentos) */
.lp {
    --g-dark: #2C0B14;
    --g-mid: #5C1726;
    --g: #7A1F33;
    --g-acc: #C8505A;
    --g-lt: #F8EEF0;

    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f6eef0 0%, #f1eef6 40%, #f8f9fd 100%);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Manchas/halo de color suaves */
.lp::before,
.lp::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.lp::before {
    width: 520px;
    height: 520px;
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(122, 31, 51, 0.16), transparent 70%);
}

.lp::after {
    width: 620px;
    height: 620px;
    bottom: -220px;
    right: -160px;
    background: radial-gradient(circle, rgba(200, 80, 90, 0.16), transparent 70%);
}

/* Líneas fluidas (SVG de fondo) */
.lp-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Líneas curvas animadas: luz que fluye a lo largo de cada trazo + leve vaivén del grupo. */
.lp-bg path {
    stroke-dasharray: 240 560;
    animation: lpFlow 10s linear infinite;
    will-change: stroke-dashoffset;
}
.lp-bg path:nth-child(1) { animation-duration: 9s;   animation-delay: -1s; }
.lp-bg path:nth-child(2) { animation-duration: 11s;  animation-delay: -3s; }
.lp-bg path:nth-child(3) { animation-duration: 8s;   animation-delay: -2s; }
.lp-bg path:nth-child(4) { animation-duration: 12.5s; animation-delay: -5s; }
.lp-bg path:nth-child(5) { animation-duration: 10s;  animation-delay: -4s; }
.lp-bg path:nth-child(6) { animation-duration: 13s;  animation-delay: -6s; }
.lp-bg path:nth-child(7) { animation-duration: 9.5s; animation-delay: -2.5s; }

.lp-bg g {
    transform-origin: 82% 82%;
    animation: lpSway 14s ease-in-out infinite alternate;
}

@keyframes lpFlow {
    to { stroke-dashoffset: -800; }
}
@keyframes lpSway {
    from { transform: translate(0, 0); }
    to   { transform: translate(-12px, -7px); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-bg path, .lp-bg g { animation: none; }
}

/* ===== Barra superior ===== */
.lp-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 38px;
}

.lp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-edomex { height: 42px; width: auto; }

.lp-issemym {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--g);
    padding-left: 12px;
    border-left: 1px solid rgba(122, 31, 51, 0.25);
}

.lp-nav-links {
    margin-left: auto;
    display: flex;
    gap: 24px;
}

.lp-nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #5a4750;
    text-decoration: none;
    transition: color 0.12s;
}

.lp-nav-links a:hover { color: var(--g); }

/* ===== Héroe ===== */
.lp-hero {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    padding: 10px 38px 60px 48px;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--g);
    background: rgba(122, 31, 51, 0.08);
    border: 1px solid rgba(122, 31, 51, 0.22);
    border-radius: 20px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.lp-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 14px 0;
    background: linear-gradient(100deg, var(--g-mid) 0%, var(--g) 55%, var(--g-acc) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lp-sub {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2b3a4f;
    margin: 0 0 14px 0;
}

.lp-text {
    font-size: 0.98rem;
    line-height: 1.6;
    color: #5b6878;
    max-width: 560px;
    margin: 0 0 30px 0;
}

.lp-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    align-self: flex-start;
    padding: 13px 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(122, 31, 51, 0.9), rgba(92, 23, 38, 0.94));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(122, 31, 51, 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.lp-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(122, 31, 51, 0.42); }
.lp-cta i { font-size: 1.05rem; }

.lp-foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 38px 18px;
    font-size: 0.78rem;
    color: #8a7780;
}

.lp-foot-by {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9a8a90;
}

.lp-foot-by img { height: 15px; width: auto; opacity: 0.75; }

/* Versión de build (esquina inferior derecha) */
.lp-version {
    position: absolute;
    right: 16px;
    bottom: 50px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #7a1f33;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(122, 31, 51, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(122, 31, 51, 0.08);
    user-select: none;
}
.lp-version i { font-size: 0.74rem; opacity: 0.8; }

@media (max-width: 600px) {
    .lp-version { bottom: 64px; right: 12px; font-size: 0.64rem; }
}

/* ============================================================
   LOGIN (tarjeta glass sobre overlay) — reutiliza .canvas-overlay
   ============================================================ */
.login-card {
    position: relative;
    width: 92%;
    max-width: 440px;
    padding: 34px 34px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 24px 60px rgba(10, 26, 43, 0.28);
    animation: canvasSlideUp 0.25s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #e1e6ed;
    background: #fff;
    color: #5b6472;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.12s;
}

.login-close:hover { color: #d13438; border-color: #f1bcbe; background: #fde7e9; }

.login-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #14233a;
    margin: 4px 0 24px 0;
}

.login-field {
    position: relative;
    margin-bottom: 16px;
}

.login-field .login-ico {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a93a0;
    font-size: 1rem;
    pointer-events: none;
}

.login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px 14px 44px;
    border: 1px solid #d7dde5;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1f2a37;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.12s, box-shadow 0.12s;
}

.login-field input::placeholder { color: #98a2b0; }

.login-field input:focus {
    outline: none;
    border-color: var(--g);
    box-shadow: 0 0 0 3px rgba(122, 31, 51, 0.15);
}

.login-submit {
    width: 100%;
    margin-top: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(122, 31, 51, 0.92), rgba(92, 23, 38, 0.96));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(122, 31, 51, 0.3);
    transition: transform 0.12s, box-shadow 0.12s;
}

.login-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(122, 31, 51, 0.42); }

.login-forgot {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--g);
    text-decoration: none;
    cursor: pointer;
}

.login-forgot:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 640px) {
    .lp-nav { padding: 16px 20px; }
    .lp-nav-links { display: none; }
    .lp-hero { padding: 10px 24px 50px; }
}
