/* ============================================================
   BI Solutions — Portal de acceso (acceso.html)
   Requiere base.css (reset, tokens, nav).
   ============================================================ */

body {
    min-height: 100vh;
}

/* PANTALLA 1 — HERO + TARJETAS */
.acceso-hero {
    position: relative;
    z-index: 1;
    padding: 130px 5% 30px;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-lt);
    border: 1px solid rgba(56, 180, 100, 0.3);
    border-radius: 50px;
    padding: 6px 16px 6px 10px;
    font-size: 0.78rem;
    color: var(--green-dk);
    font-weight: 600;
    margin-bottom: 22px;
}

.hero-pill-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
}

.acceso-hero h1 {
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 14px;
}

.acceso-hero h1 em {
    font-style: italic;
    color: var(--green);
}

.acceso-hero p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
}

.sistemas-section {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 30px 5% 90px;
}

.sistemas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.sistema-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    text-decoration: none;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    position: relative;
    overflow: hidden;
}

.sistema-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.sistema-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.09);
    border-color: rgba(56, 180, 100, 0.35);
}

.sistema-card:hover::before {
    transform: scaleX(1);
}

.sistema-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--green-lt);
    border: 1.5px solid rgba(56, 180, 100, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.sistema-card h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1.12rem;
}

.sistema-card p {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.55;
    flex: 1;
}

.sistema-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dk);
}

.sistema-card:hover .sistema-cta {
    gap: 10px;
}

.sistema-cta-arrow {
    transition: transform 0.22s;
}

.sistema-card:hover .sistema-cta-arrow {
    transform: translateX(3px);
}

.ayuda-box {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 5% 70px;
}

.ayuda-inner {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.ayuda-inner p {
    color: var(--muted);
    font-size: 0.88rem;
}

.btn-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.btn-wa:hover {
    background: #20ba58;
    transform: translateY(-2px);
}

/* PANTALLA 2 — LOGIN DEL SISTEMA ELEGIDO */
.login-screen {
    display: none;
}

.login-screen.active {
    display: block;
}

.login-wrap {
    min-height: calc(100vh - 66px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 40px;
}

.login-box {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 34px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-back:hover {
    color: var(--green-dk);
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--green-lt);
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 18px;
}

.login-badge-icon {
    font-size: 1.3rem;
}

.login-badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green-dk);
}

.login-box h1 {
    font-family: 'Lora', serif;
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.login-box p.sub {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--green);
}

.clave-wrap {
    position: relative;
}

.clave-wrap input {
    padding-right: 44px;
}

.clave-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--muted);
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.clave-toggle:hover {
    color: var(--green-dk);
    background: var(--green-lt);
}

.clave-toggle:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.icon-eye {
    display: block;
}

.btn-entrar {
    width: 100%;
    padding: 13px;
    margin-top: 6px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-entrar:hover:not(:disabled) {
    background: var(--green-dk);
    transform: translateY(-1px);
}

.btn-entrar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.msg {
    margin-top: 14px;
    font-size: 0.83rem;
    padding: 10px 12px;
    border-radius: 8px;
    display: none;
}

.msg.error {
    display: block;
    background: #fdecea;
    color: #c0392b;
}

.msg.ok {
    display: block;
    background: var(--green-lt);
    color: var(--green-dk);
}

.ayuda-login {
    margin-top: 22px;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
}

.ayuda-login a {
    color: var(--green-dk);
    text-decoration: none;
    font-weight: 600;
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 0.78rem;
}

@media (max-width: 640px) {
    .ayuda-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
