/* ============================================
   GEIPER - Popup de registro (temporal)
   ============================================ */

#registroOverlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 12, 30, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#registroOverlay.rp-visible {
    opacity: 1;
    pointer-events: auto;
}

#registroModal {
    width: 620px;
    max-width: 100%;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#registroOverlay.rp-visible #registroModal {
    transform: translateY(0) scale(1);
}

.rp-card {
    display: flex;
    background: var(--blanco);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 62px rgba(0,0,0,0.45);
    position: relative;
}

.rp-side {
    width: 210px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--azul-oscuro), var(--azul-medio));
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rp-logo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 0;
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
    overflow: hidden;
}

.rp-logo-circle img {
    width: 128px;
    height: 128px;
    object-fit: contain;
    object-position: center;
}

.rp-side-eyebrow {
    font-size: 10.5px;
    color: #C9A961;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.rp-side-title {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--blanco);
    margin: 0;
}

.rp-main {
    flex: 1;
    min-width: 0;
    padding: 26px 30px 28px;
    position: relative;
}

.rp-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--fondo-alt);
    background: var(--blanco);
    color: var(--gris);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.rp-close:hover { border-color: var(--gris); color: var(--azul-oscuro); }

.rp-eyebrow {
    font-size: 11px;
    color: #B8925A;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 8px;
}

.rp-title {
    font-family: 'Noto Serif', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--azul-oscuro);
    line-height: 1.25;
    margin: 0 0 18px;
    max-width: 90%;
}

.rp-highlight {
    background: #F7EFDD;
    border-left: 3px solid #C9A961;
    border-radius: 0 6px 6px 0;
    padding: 10px 14px;
    margin: 0 0 18px;
}

.rp-highlight-date {
    font-size: 14px;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin: 0 0 2px;
}

.rp-highlight-sub {
    font-size: 12.5px;
    color: var(--gris);
    margin: 0;
}

.rp-desc {
    font-size: 13.5px;
    color: var(--gris);
    line-height: 1.6;
    margin: 0 0 22px;
}

.rp-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.rp-cta {
    background: var(--azul-oscuro);
    color: var(--blanco);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    padding: 12px 22px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.rp-cta:hover {
    background: var(--azul-medio);
    transform: translateY(-1px);
}

.rp-dismiss {
    background: none;
    border: none;
    color: var(--gris);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 4px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rp-dismiss:hover { color: var(--azul-oscuro); }

/* Botón flotante en la esquina: aparece cuando el popup se cierra */
#registroPill {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(180deg, #D8BE84, #B8945A);
    color: #2E2308;
    border: none;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 18px rgba(11,46,107,0.3);
    cursor: pointer;
    z-index: 1500;
    display: none;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease;
}

#registroPill:hover { transform: translateY(-2px); }

#registroPill.rp-pill-visible { display: inline-flex; }

@media (max-width: 600px) {
    .rp-card { flex-direction: column; }
    .rp-side { width: auto; flex-direction: row; align-items: center; gap: 16px; padding: 18px 20px; }
    .rp-logo-circle { width: 64px; height: 64px; margin: 0; flex-shrink: 0; }
    .rp-logo-circle img { width: 54px; height: 54px; }
    .rp-side-title { font-size: 18px; }
    .rp-main { padding: 22px 20px 24px; }
    .rp-title { max-width: 100%; font-size: 20px; }
    #registroPill { right: 16px; bottom: 16px; }
}
