/* ESTILOS PARA LA FASE 2: MINIJUEGO "ATAQUE TLS" Y FASE 3: CUESTIONARIO STEPPER */

/* ---------------------------------
   MINIJUEGO (EL REGALO)
   --------------------------------- */

/* Comportamiento unificado (Mobile y Desktop) - Imagen anclada al borde derecho */
#gift-container {
    display: none; /* Se activa tras el preloader por JS */
    cursor: pointer;
    z-index: 9999; /* Z-index extremadamente alto para asegurar que sobresalga por encima de cualquier otro elemento no-modal */
    position: fixed;
    bottom: 20px;
    right: 0; /* Totalmente pegado a la derecha */
    width: 60px; /* Ajusta el tamaño de la imagen según necesites */
    height: 60px;
    /* JS sets to flex to show */
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    transition: transform 0.3s ease;
}

#gift-container:hover {
    transform: translateX(-5px); /* Pequeño desplazamiento hacia la izquierda al pasar el mouse */
}

#gift-container .gift-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Modales nuevos del Regalo */
#prize-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(5,5,5,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

.prize-box {
    background-color: #fbf9ee;
    color: #050505;
    padding: 40px;
    border: 4px solid #d2584a;
    max-width: 500px;
    position: relative;
    box-shadow: 0 0 30px rgba(210, 88, 74, 0.5);
}

.prize-box h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 20px;
    color: #d2584a;
    letter-spacing: -0.05em;
}

.prize-box p {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 30px;
}

.prize-box .disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0;
}

.close-prize-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: #d2584a;
    background: none;
    border: none;
}

@keyframes floatPulse {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.05); box-shadow: 0 0 25px rgba(210, 88, 74, 0.9); }
}

/* Interfaz de Terminal Glitch / Hacker */
#hack-terminal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #050505;
    z-index: 10000;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.glitch-anim {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(-10deg); }
    40% { transform: skew(10deg); }
    60% { transform: skew(-5deg); }
    80% { transform: skew(5deg); }
    100% { transform: skew(0deg); }
}

.terminal-box {
    width: 100%;
    max-width: 600px;
    border: 1px solid var(--bg-red);
    padding: 20px;
    font-family: var(--font-mono);
    color: var(--text-white);
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 0 20px rgba(210, 88, 74, 0.3);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--bg-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.terminal-logo {
    height: 30px;
}

.terminal-title {
    color: var(--bg-red);
    font-weight: bold;
}

.terminal-text {
    margin-bottom: 15px;
    line-height: 1.5;
}

.terminal-input-group {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.terminal-input-group span {
    margin-right: 10px;
    color: var(--bg-red);
}

.terminal-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--text-white);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 1rem;
    outline: none;
    width: 60px;
    text-align: center;
}

.terminal-success {
    color: #4ade80 !important;
}

.success-flash {
    animation: flash-green 0.5s ease-out;
}

@keyframes flash-green {
    0% { background-color: #4ade80; }
    100% { background-color: #050505; }
}

.btn-terminal {
    background: transparent;
    border: 1px solid var(--text-white);
    color: var(--text-white);
    padding: 10px 20px;
    font-family: var(--font-mono);
    cursor: pointer;
    margin-top: 20px;
    text-transform: uppercase;
    transition: all 0.3s;
    display: none;
}

.btn-terminal:hover {
    background: var(--text-white);
    color: #050505;
}

/* ---------------------------------
   CUESTIONARIO STEPPER
   --------------------------------- */
#stepper-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: var(--font-mono);
    color: var(--text-white);
}

.stepper-container {
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--text-white);
    padding: 30px;
    background: #050505;
}

.stepper-progress {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    border-bottom: 1px dashed #333;
    padding-bottom: 10px;
}

.question-block {
    margin-bottom: 25px;
}

.question-block label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-white);
}

.question-block input[type="text"],
.question-block input[type="email"],
.question-block textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #444;
    color: var(--text-white);
    padding: 10px;
    font-family: var(--font-mono);
    box-sizing: border-box;
}

.question-block input:focus,
.question-block textarea:focus {
    border-color: var(--bg-red);
    outline: none;
}

.stepper-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px dashed #333;
    padding-top: 20px;
}

.file-upload-wrapper {
    position: relative;
    border: 1px dashed var(--bg-red);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-top: 10px;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.system-msg {
    margin-top: 20px;
    color: #4ade80;
    font-size: 0.9rem;
    display: none;
}
