/* ==========================================================================
   PUMA ENERGY — Registro de participantes
   Prefijo: .jp-puma-
   ========================================================================== */

/* ---------- Tipografía Aeternus (igual que Diana) ---------- */
@font-face {
    font-family: 'Aeternus Nano';
    src: url('https://promodiana.com/wp-content/uploads/2026/02/01-aeternus_nano_variable-weightitalic-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: 'Aeternus Tall';
    src: url('https://promodiana.com/wp-content/uploads/2026/02/02-aeternus_tall_variable-weightitalic-VF.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* ---------- Wrapper ---------- */
.jp-puma-wrapper {
    width: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 15px;
    box-sizing: border-box;
    font-family: 'Aeternus Nano', 'Arial', sans-serif;
}

.jp-puma-wrapper *,
.jp-puma-wrapper *::before,
.jp-puma-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Paso contenedor (Paso 1 sin fondo oscuro, igual que Diana) ---------- */
.jp-puma-paso-inner {
    text-align: center;
    width: 100%;
    max-width: 420px;
}

/* ---------- Título Paso 1 — Código de la Tira ---------- */
.jp-puma-titulo-tira {
    display: inline-block;
    background: linear-gradient(180deg, #ffd700, #e6a800);
    color: #333;
    font-family: 'Aeternus Tall', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 14px 30px;
    border-radius: 30px;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin: 0 auto 20px auto;
}

/* ---------- Imagen titular "INGRESA TU CÓDIGO" ---------- */
.jp-puma-titulo-img {
    display: block;
    max-width: 85%;
    height: auto;
    margin: 0 auto 16px auto;
}

/* ---------- Imagen éxito "¡CÓDIGO VÁLIDO!" — más pequeña ---------- */
.jp-puma-exito-img {
    max-width: 45% !important;
    margin-bottom: 10px !important;
}

/* ---------- Campo código (pill azul, igual que Diana) ---------- */
.jp-puma-campo-codigo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 20px;
}

.jp-puma-campo-codigo .jp-puma-input {
    flex: 1;
    text-align: center;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: #144797;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    line-height: 1.1;
    outline: none;
    width: 100%;
}

.jp-puma-campo-codigo .jp-puma-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Botón Enviar paso 1 (amarillo, igual que Diana) ---------- */
.jp-puma-btn-enviar {
    display: inline-block;
    background: linear-gradient(180deg, #ffd700, #e6a800);
    color: #333;
    font-family: 'Aeternus Tall', sans-serif;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    margin-top: 4px;
}

.jp-puma-btn-enviar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.jp-puma-btn-enviar:active {
    transform: scale(0.97);
}

.jp-puma-btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Badge "¡CÓDIGO VÁLIDO!" ---------- */
.jp-puma-codigo-valido {
    background: linear-gradient(135deg, #F0C91A, #d4b000);
    color: #fff;
    font-family: 'Aeternus Tall', sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-align: center;
    padding: 10px 20px;
    border-radius: 50px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    box-shadow: 0 3px 12px rgba(240, 201, 26, 0.4);
}

/* ---------- Inputs paso 3 (datos personales) — border-radius reducido ---------- */
#jp-puma-paso-datos .jp-puma-input {
    border-radius: 20px !important;
}

/* ---------- Subtítulo paso 2 ---------- */
.jp-puma-subtitulo {
    color: #13172c;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 30px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 14px;
    letter-spacing: 0.5px;
}

/* ---------- Grid paso 2: una columna, igual que Diana ---------- */
.jp-puma-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

/* ---------- Cada campo: label izquierda + input derecha ---------- */
.jp-puma-campo {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Labels paso 2 */
.jp-puma-label {
    color: #13172c;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    min-width: 80px;
    text-align: right;
    padding-right: 8px;
    line-height: 1.2;
}

/* Inputs paso 2 */
.jp-puma-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background-color: #144797;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 34px;
    font-weight: 600;
    line-height: 0.5;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: box-shadow 0.2s;
}

.jp-puma-input:focus {
    box-shadow: 0 0 0 3px rgba(20, 71, 151, 0.3);
}

.jp-puma-input::placeholder {
    color: transparent;
}

/* Select */
.jp-puma-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    padding-right: 36px !important;
    cursor: pointer;
}

.jp-puma-select option {
    background: #144797;
    color: #fff;
}

/* ---------- Botón registrar paso 2 (borde azul, igual que Diana) ---------- */
.jp-puma-btn-registrar {
    background: transparent !important;
    color: #144797 !important;
    border: 2px solid #144797 !important;
    border-radius: 50px !important;
    padding: 15px 40px !important;
    font-family: 'Aeternus Tall', sans-serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    margin-top: 15px;
    letter-spacing: 1px;
}

.jp-puma-btn-registrar:hover:not(:disabled) {
    background: #144797 !important;
    color: #ffffff !important;
}

/* ---------- Mensaje de error ---------- */
.jp-puma-error {
    display: none;
    color: #fff;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    text-align: center;
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.9);
    border-radius: 8px;
}

/* ==========================================================================
   PANTALLA FINAL — Ganador o Gracias
   El fondo lo maneja el wrapper (.jp-puma-wrapper) vía JS (data-fondo-final).
   ========================================================================== */

/* Contenedor centrado en el wrapper para ambas pantallas finales */
.jp-puma-final-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    text-align: center;
    padding: 10px 0;
}

/* ── GANADOR: imagen instrucciones + cápsula código ── */

.jp-puma-instrucciones-img {
    display: block;
    max-width: 92%;
    width: 380px;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.jp-puma-premio-capsula {
    background: #ffffff;
    border-radius: 50px;
    padding: 14px 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 340px;
    width: 100%;
}

.jp-puma-premio-label {
    display: block;
    color: #FF6900;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.jp-puma-premio-valor {
    display: block;
    color: #111111;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    word-break: break-all;
}

/* ── SIN PREMIO: caja de gracias centrada ── */

.jp-puma-gracias-box {
    background: rgba(0, 0, 0, 0.68);
    border-radius: 20px;
    padding: 30px 36px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.jp-puma-gracias-titulo {
    color: #FF6900;
    font-family: 'Aeternus Tall', sans-serif;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 12px;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.jp-puma-gracias-texto {
    color: #ffffff;
    font-family: 'Aeternus Nano', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 480px) {
    .jp-puma-wrapper {
        padding: 20px 10px;
    }

    .jp-puma-titulo-img {
        max-width: 55% !important;
    }

    .jp-puma-label {
        font-size: 23px;
        min-width: 65px;
        padding-right: 6px;
    }

    .jp-puma-btn-enviar,
    .jp-puma-btn-registrar {
        padding: 10px 30px;
        font-size: 14px;
    }

    .jp-puma-subtitulo {
        font-size: 23px;
    }

    .jp-puma-instrucciones-img {
        width: 95%;
        max-width: 310px;
    }

    .jp-puma-premio-valor {
        font-size: 18px;
    }

    .jp-puma-gracias-titulo {
        font-size: 18px;
    }
}


/* ---------- Botón imagen (BOTON-DE-ENVIAR.png) ---------- */
.jp-puma-btn-img {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-top: 4px;
}

.jp-puma-btn-img .jp-puma-btn-imagen {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.jp-puma-btn-img:hover .jp-puma-btn-imagen {
    transform: scale(1.05);
}

.jp-puma-btn-img:active .jp-puma-btn-imagen {
    transform: scale(0.97);
}

/* Sobrescribir el estilo de btn-registrar cuando lleva imagen */
.jp-puma-btn-registrar.jp-puma-btn-img {
    background: none !important;
    border: none !important;
    color: inherit !important;
}

/* ---------- Botón T&C ---------- */
/* Sobrescribir estilos específicos de #jp-btn-registrar cuando lleva imagen */
#jp-btn-registrar.jp-btn-img,
#jp-btn-validar-codigo.jp-btn-img {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* ---------- Botón T&C ---------- */
.jp-tc-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0,0,0,0.85) !important;
    z-index: 999999 !important;
    align-items: center;
    justify-content: center;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.jp-tc-modal {
    background: #13172C;
    border: 2px solid #11C3FF;
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 75vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    padding: 45px 20px 20px 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 1000000;
    -webkit-overflow-scrolling: touch;
}

/* Scrollbar estilo */
.jp-tc-modal::-webkit-scrollbar {
    width: 5px;
}
.jp-tc-modal::-webkit-scrollbar-track {
    background: #0a0d1a;
    border-radius: 10px;
}
.jp-tc-modal::-webkit-scrollbar-thumb {
    background: #11C3FF;
    border-radius: 10px;
}

.jp-tc-close {
    position: sticky;
    top: -45px;
    left: 100%;
    float: right;
    background: #ffffff;
    color: #144797;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    z-index: 10;
    line-height: 34px;
    text-align: center;
    padding: 0;
    margin-bottom: 10px;
}

.jp-tc-close:hover {
    background: #11C3FF;
    color: #fff;
}

.jp-tc-texto {
    color: #ffffff;
    font-family: Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.jp-tc-texto p { margin-bottom: 12px; }
.jp-tc-texto ul { padding-left: 20px; margin-bottom: 12px; }
.jp-tc-texto li { margin-bottom: 8px; }
.jp-tc-texto b { font-weight: 700; }
.jp-tc-texto table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.jp-tc-texto table td { border: 1px solid #11C3FF; padding: 6px 8px; font-size: 13px; }

@media (max-width: 480px) {
    .jp-tc-modal {
        max-height: 80vh;
        padding: 45px 14px 14px 14px;
    }
    .jp-tc-texto {
        font-size: 13px;
    }
}

#jp-btn-tc,
.jp-registro-btn-tc,
.jp-puma-btn-tc {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin-top: 10px;
    cursor: pointer;
    display: block;
}

#jp-btn-tc:hover,
#jp-btn-tc:focus,
#jp-btn-tc:active,
#jp-btn-tc:focus-visible,
.jp-registro-btn-tc:hover,
.jp-registro-btn-tc:focus,
.jp-registro-btn-tc:active,
.jp-registro-btn-tc:focus-visible {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Forzar fondo modal T&C en Puma */
#jp-tc-overlay .jp-tc-modal {
    background: #13172C !important;
    border: 2px solid #11C3FF !important;
}

#jp-tc-overlay .jp-tc-texto {
    color: #ffffff !important;
}

#jp-tc-overlay .jp-tc-texto p,
#jp-tc-overlay .jp-tc-texto li,
#jp-tc-overlay .jp-tc-texto span {
    color: #ffffff !important;
}