
:root {
    --azul-950: #071b2e;
    --azul-900: #0b2a47;
    --azul-700: #123c64;
    --cian: #1fa6c9;
    --cian-claro: #6fd6ee;
}
* { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; height: 100vh; font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif; }
body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: 100vh; /* sin esto, la fila no se estira y queda un vacío abajo */
    background: #f4f6f9;
}
.panel-marca, .panel-form { min-height: 0; overflow-y: auto; }
@media (max-width: 880px) {
    body { grid-template-columns: 1fr; height: auto; min-height: 100vh; grid-template-rows: none; }
    .panel-marca { min-height: 260px; }
}

/* ---------------- Panel de marca (izquierda) ---------------- */
.panel-marca {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 140% at 15% 10%, var(--azul-700) 0%, var(--azul-900) 55%, var(--azul-950) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px 56px;
}
.panel-marca__orbe {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
}
.panel-marca__orbe--1 { width: 420px; height: 420px; background: var(--cian); top: -140px; right: -120px; animation: flotar 14s ease-in-out infinite; }
.panel-marca__orbe--2 { width: 300px; height: 300px; background: #7c5cbf; bottom: -100px; left: -80px; opacity: 0.35; animation: flotar 18s ease-in-out infinite reverse; }
@keyframes flotar {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
}
.panel-marca__malla {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(160deg, rgba(0,0,0,0.9), transparent 70%);
    pointer-events: none;
}

.panel-marca__top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; animation: entrar 0.7s ease both; }
.panel-marca__logo { width: 46px; height: 46px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.panel-marca__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.panel-marca__logo svg { width: 26px; height: 26px; color: var(--azul-900); }
.panel-marca__nombre { font-weight: 700; font-size: 1.02rem; line-height: 1.25; max-width: 320px; }

.panel-marca__medio { position: relative; z-index: 1; max-width: 420px; animation: entrar 0.8s 0.1s ease both; }
.panel-marca__medio h1 { font-size: 2.1rem; font-weight: 700; line-height: 1.22; margin: 0 0 16px; letter-spacing: 0; }
.panel-marca__medio h1 span { color: var(--cian-claro); }
.panel-marca__medio p { color: rgba(255,255,255,0.72); font-size: 0.98rem; line-height: 1.6; margin: 0 0 26px; }

.panel-marca__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
}
.pill svg { width: 15px; height: 15px; color: var(--cian-claro); flex-shrink: 0; }

.panel-marca__foot { position: relative; z-index: 1; font-size: 0.78rem; color: rgba(255,255,255,0.45); animation: entrar 0.9s 0.2s ease both; }

@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- Panel del formulario (derecha) ---------------- */
.panel-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.tarjeta {
    width: 100%;
    max-width: 380px;
    animation: entrar 0.6s 0.05s ease both;
}
.tarjeta__icono {
    width: 52px; height: 52px; border-radius: 14px;
    background: linear-gradient(135deg, var(--cian), var(--azul-700));
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(31,166,201,0.28);
}
.tarjeta__icono svg { width: 26px; height: 26px; color: #fff; }
.tarjeta h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; color: var(--azul-950); }
.tarjeta > p { color: #6b7785; margin: 0 0 26px; font-size: 0.92rem; }

.alerta {
    display: flex; align-items: flex-start; gap: 10px;
    background: #fdecea; color: #9a2f28;
    border: 1px solid #f6c9c4;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.86rem;
    margin-bottom: 20px;
    animation: entrar 0.35s ease both;
}
.alerta svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.campo { position: relative; margin-bottom: 18px; }
.campo svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; color: #97a3ae; pointer-events: none; transition: color 0.15s;
}
.campo input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: 1.5px solid #e1e6ec;
    border-radius: 11px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--azul-950);
    background: #fbfcfd;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.campo input::placeholder { color: #a6b0ba; }
.campo input:focus {
    outline: none;
    border-color: var(--cian);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(31,166,201,0.12);
}
.campo--pass input { padding-right: 42px; }
.campo__toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: none; background: none; cursor: pointer;
    color: #97a3ae; display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.campo__toggle:hover { color: var(--azul-700); background: #eef1f4; }
.campo__toggle svg { width: 18px; height: 18px; }

.btn-ingresar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--cian), var(--azul-700));
    color: #fff;
    font-size: 0.96rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 10px 22px -6px rgba(18,60,100,0.45);
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-ingresar:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -6px rgba(18,60,100,0.5); }
.btn-ingresar:active { transform: translateY(0); }
.btn-ingresar svg { width: 17px; height: 17px; }

.aviso-ok {
    background: #e8f6ee; color: #1d6b3f; border: 1px solid #bfe3cd;
    border-radius: 10px; padding: 12px 14px; font-size: 0.86rem; margin-bottom: 20px;
}
.olvido { text-align: center; margin: 18px 0 0; font-size: 0.88rem; }
.olvido a { color: var(--azul-700); font-weight: 600; text-decoration: none; }
.olvido a:hover { color: var(--cian); text-decoration: underline; }
.tarjeta__pie { text-align: center; font-size: 0.78rem; color: #9aa5b1; margin-top: 26px; }

/* Admisión en línea */
.postula-link { display: block; text-align: center; margin-top: 14px; padding: 11px; border-radius: 11px; background: #eef7fb; color: var(--azul-700); font-size: .88rem; text-decoration: none; }
.postula-link:hover { background: #dff0f8; }

/* Instalar la app (PWA) */
.instalar-app { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 11px; border: 1.5px dashed #c9d6e2; border-radius: 11px; color: var(--azul-700); font-size: .88rem; font-weight: 700; text-decoration: none; }
.instalar-app[hidden] { display: none; }
.instalar-app:hover { background: #eef5fa; border-color: var(--cian); }
.instalar-app svg { width: 18px; height: 18px; }
