/* ==========================================================================
   VENTANA EMERGENTE DE OFERTA DE EMPLEO (solo index.html)
   ========================================================================== */
.vp-overlay { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(12, 18, 26, 0.72); backdrop-filter: blur(3px); opacity: 0; transition: opacity 0.3s ease; }
.vp-overlay.vp-on { display: flex; }
.vp-overlay.vp-in { opacity: 1; }

.vp-caja { position: relative; width: min(420px, 100%); max-height: calc(100vh - 2rem); overflow: hidden auto; background: #fff; border-radius: 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); transform: translateY(24px) scale(0.92); opacity: 0; transition: transform 0.45s cubic-bezier(.2, 1.2, .3, 1), opacity 0.3s ease; }
.vp-in .vp-caja { transform: none; opacity: 1; }
.vp-caja:focus { outline: none; }

.vp-cerrar { position: absolute; top: 10px; right: 10px; z-index: 5; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; font-weight: 800; line-height: 1; color: #1A2530; background: #fff; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.vp-cerrar:hover { color: #fff; background: #E50914; transform: rotate(90deg); }
.vp-cerrar:focus-visible, .vp-btn:focus-visible, .vp-link:focus-visible { outline: 3px solid #1d5fd0; outline-offset: 2px; }

.vp-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #B3000B; }
.vp-img img { width: 100%; height: 100%; object-fit: cover; display: block; animation: vp-zoom 14s ease-in-out infinite alternate; }
.vp-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(120, 0, 8, 0.75), transparent 55%); pointer-events: none; }
.vp-chip { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 0.45rem 0.95rem; font-size: 0.8rem; font-weight: 800; color: #B3000B; background: #fff; border-radius: 999px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); animation: vp-flota 3.5s ease-in-out infinite; }
.vp-cruz { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 48px; height: 48px; display: grid; place-items: center; color: #E50914; font-size: 2rem; font-weight: 900; line-height: 1; background: #fff; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); animation: vp-late 1.8s ease-in-out infinite; }

.vp-cuerpo { padding: 1.9rem 1.6rem 1.6rem; text-align: center; }
.vp-etiqueta { display: inline-block; margin-bottom: 0.7rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #E50914; }
.vp-cuerpo h2 { margin: 0 0 0.6rem; font-family: 'Poppins', 'Inter', sans-serif; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: #1A2530; }
.vp-cuerpo h2 em { font-style: normal; color: #E50914; }
.vp-cuerpo p { margin: 0 0 1rem; font-size: 0.97rem; line-height: 1.55; color: #4A5568; }

.vp-req { margin: 0 0 1.3rem; padding: 0; list-style: none; text-align: left; }
.vp-req li { position: relative; margin-bottom: 0.5rem; padding-left: 1.4rem; font-size: 0.88rem; line-height: 1.4; color: #2D3748; }
.vp-req li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: #E50914; }
.vp-cuerpo .vp-req + .vp-btn { margin-top: 0; }
.vp-btn { position: relative; overflow: hidden; display: block; padding: 0.95rem 1.2rem; font-size: 1.05rem; font-weight: 800; color: #fff; text-decoration: none; background: #E50914; border-radius: 999px; animation: vp-pulso 2.2s infinite; transition: transform 0.2s ease, background 0.2s ease; }
.vp-btn::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); animation: vp-brillo 3.4s infinite; }
.vp-btn:hover { background: #F01A25; transform: translateY(-2px) scale(1.02); }
.vp-link { display: inline-block; margin-top: 0.9rem; font-size: 0.9rem; font-weight: 700; color: #1d5fd0; text-decoration: none; }
.vp-link:hover { text-decoration: underline; }

body.vp-bloqueado { overflow: hidden; }

@keyframes vp-zoom { from { transform: scale(1); } to { transform: scale(1.1); } }
@keyframes vp-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes vp-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
@keyframes vp-brillo { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes vp-pulso { 0% { box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4), 0 0 0 0 rgba(229, 9, 20, 0.5); } 70% { box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4), 0 0 0 14px rgba(229, 9, 20, 0); } 100% { box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4), 0 0 0 0 rgba(229, 9, 20, 0); } }

@media (max-width: 480px) {
    .vp-cuerpo { padding: 1.8rem 1.2rem 1.3rem; }
    .vp-cuerpo h2 { font-size: 1.32rem; }
}
@media (max-height: 560px) { .vp-img { aspect-ratio: 16 / 7; } }
@media (prefers-reduced-motion: reduce) {
    .vp-img img, .vp-chip, .vp-cruz, .vp-btn, .vp-btn::before { animation: none; }
    .vp-overlay, .vp-caja { transition: none; }
}
