/* pin-gate.css - Modal de PIN para secciones privadas */

.pin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: pinFadeIn 0.2s ease-out;
}

@keyframes pinFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pin-modal-box {
    background: #fff;
    border-radius: 18px;
    padding: 36px 32px 28px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    text-align: center;
    animation: pinSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes pinSlideUp {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.pin-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
    filter: grayscale(0.2);
}

.pin-modal-box h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pin-subtitle {
    color: #666;
    font-size: 0.92rem;
    margin: 0 0 22px;
    line-height: 1.45;
}

.pin-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px;
    font-size: 1.6rem;
    text-align: center;
    letter-spacing: 0.6em;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
    color: #111;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 8px;
}

.pin-input:focus {
    border-color: #111;
    background: #fff;
}

.pin-input::placeholder {
    color: #ccc;
    letter-spacing: 0.6em;
}

.pin-input.shake {
    animation: pinShake 0.4s ease-in-out;
    border-color: #ef4444;
    background: #fef2f2;
}

@keyframes pinShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

.pin-error {
    color: #ef4444;
    font-size: 0.85rem;
    min-height: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

.pin-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.pin-btn {
    flex: 1;
    padding: 13px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.15s;
}

.pin-btn-cancelar {
    background: #fff;
    color: #666;
    border: 1px solid #e5e5e5;
}
.pin-btn-cancelar:hover {
    background: #f5f5f5;
    color: #111;
    border-color: #d4d4d4;
}

.pin-btn-aceptar {
    background: #111;
    color: #fff;
}
.pin-btn-aceptar:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.pin-btn-aceptar:active {
    transform: translateY(0);
}

/* Boton candado para re-bloquear (opcional, visible si se agrega al UI) */
.btn-lock-pin {
    background: transparent;
    border: 1px solid #e5e5e5;
    color: #666;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: all 0.15s;
}
.btn-lock-pin:hover {
    background: #f5f5f5;
    color: #111;
}

@media (max-width: 480px) {
    .pin-modal-box {
        padding: 28px 22px 22px;
    }
    .pin-input {
        font-size: 1.4rem;
        padding: 14px 16px;
    }
    .pin-icon {
        font-size: 2.2rem;
    }
}
