/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #00ff41;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Efecto de matriz de fondo estático */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, transparent 20%, rgba(0, 255, 65, 0.03) 21%, rgba(0, 255, 65, 0.03) 34%, transparent 35%, transparent),
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 65, 0.05) 25%, rgba(0, 255, 65, 0.05) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, 0.05) 75%, rgba(0, 255, 65, 0.05) 76%, transparent 77%, transparent),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(0, 255, 65, 0.02) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(0, 255, 65, 0.02) 100px
        );
    z-index: -1;
}

/* Container principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.spy-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.mission-title {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff41;
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ff41; }
    to { text-shadow: 0 0 20px #00ff41, 0 0 30px #00ff41; }
}

.classified-stamp {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff0000;
    color: white;
    padding: 8px 15px;
    font-size: 0.8em;
    font-weight: bold;
    transform: rotate(15deg);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.5);
}

.classified-stamp.error {
    background: #ff6b00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(15deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.1); }
}

/* Main content */
.mission-briefing {
    background: rgba(0, 20, 40, 0.9);
    border: 1px solid #00ff41;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
}

.briefing-content h2 {
    color: #00ff41;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.mission-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
    color: #cccccc;
}

.warning-message {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid #ffa500;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    color: #ffa500;
    font-weight: bold;
    text-align: center;
}

/* Sección de input de código */
.code-input-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #004d00;
    margin-top: 30px;
}

.input-label {
    display: block;
    color: #00ff41;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.code-input {
    width: 100%;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff41;
    border-radius: 5px;
    color: #00ff41;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.code-input:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    background: rgba(0, 20, 0, 0.8);
}

.code-input::placeholder {
    color: #006600;
}

.submit-button, .return-button {
    width: 100%;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(45deg, #00ff41, #00cc33);
    color: #000000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.submit-button:hover, .return-button:hover {
    background: linear-gradient(45deg, #00cc33, #009926);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

.submit-button:active, .return-button:active {
    transform: translateY(0);
}

/* Estilos para página de error */
.error-content {
    text-align: center;
}

.error-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-description {
    color: #ff6666;
    font-size: 1.2em;
    margin-bottom: 25px;
}

.error-details {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff3333;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    color: #ffcccc;
}

.error-details p {
    font-weight: bold;
    margin-bottom: 10px;
    color: #ff6666;
}

.error-details ul {
    list-style: none;
    padding-left: 0;
}

.error-details li {
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.error-details li::before {
    content: "•";
    color: #ff3333;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.return-section {
    margin-top: 30px;
}

/* Footer */
.spy-footer {
    text-align: center;
    padding: 20px;
    color: #666666;
    font-size: 0.9em;
    border-top: 1px solid #333333;
}

.agency-info {
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 5px;
}

/* Responsividad */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .mission-title {
        font-size: 1.8em;
    }
    
    .briefing-content h2 {
        font-size: 1.4em;
    }
    
    .mission-description {
        font-size: 1em;
    }
    
    .classified-stamp {
        font-size: 0.7em;
        padding: 5px 10px;
    }
    
    .mission-briefing {
        padding: 20px;
    }
    
    .code-input-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .mission-title {
        font-size: 1.5em;
    }
    
    .briefing-content h2 {
        font-size: 1.2em;
    }
    
    .code-input, .submit-button, .return-button {
        font-size: 1em;
    }
    
    .error-icon {
        font-size: 3em;
    }
}

/* ===== ESTILOS PARA PÁGINA DE ACERTIJO CÉSAR ===== */

/* Imagen de César */
.caesar-portrait {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(139, 69, 19, 0.1);
    border: 2px solid #8B4513;
    border-radius: 15px;
}

.caesar-image {
    max-width: 200px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #DAA520;
    box-shadow: 0 0 20px rgba(218, 165, 32, 0.5);
    margin-bottom: 10px;
}

.image-caption {
    color: #DAA520;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
}

/* Sección del acertijo */
.puzzle-section {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #8B4513;
    margin: 20px 0;
}

.puzzle-section h3 {
    color: #DAA520;
    margin-bottom: 15px;
    text-align: center;
}

.cipher-message {
    background: rgba(139, 69, 19, 0.3);
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #DAA520;
    letter-spacing: 3px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px #DAA520;
    word-break: break-all;
}

.hint-section {
    margin-top: 25px;
    background: rgba(218, 165, 32, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #DAA520;
}

.hint-section h4 {
    color: #DAA520;
    margin-bottom: 10px;
}

.hint-text {
    color: #E6E6E6;
    font-style: italic;
    line-height: 1.5;
}

/* Sección de input para la respuesta */
.answer-input-section {
    background: rgba(0, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #8B4513;
    margin-top: 30px;
}

/* Sección de resultados */
.result-section {
    margin-top: 30px;
    padding: 10px;
    border-radius: 10px;
    animation: slideIn 0.5s ease;
}

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

.success-result {
    background: rgba(0, 128, 0, 0.2);
    border: 2px solid #00ff41;
    border-radius: 8px;
    padding: 20px;
    color: #00ff41;
}

.success-result h3 {
    margin-bottom: 15px;
    text-align: center;
}

.success-message {
    margin-bottom: 20px;
    line-height: 1.6;
}

.next-code-reveal {
    background: rgba(0, 255, 65, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #00ff41;
    text-align: center;
    margin: 20px 0;
}

.next-code-reveal h4 {
    margin-bottom: 15px;
    color: #00ff41;
}

.next-code {
    font-size: 2em;
    font-weight: bold;
    color: #00ff41;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    letter-spacing: 4px;
    text-shadow: 0 0 15px #00ff41;
    animation: glow 2s ease-in-out infinite alternate;
}

.error-result {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff3333;
    border-radius: 8px;
    padding: 20px;
    color: #ff6666;
}

.error-result h3 {
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    margin-bottom: 20px;
    line-height: 1.6;
}

.try-again-button {
    width: 100%;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1.1em;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6600, #ff3300);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.try-again-button:hover {
    background: linear-gradient(45deg, #ff3300, #cc2200);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.4);
}

/* Responsividad para página César */
@media (max-width: 768px) {
    .caesar-image {
        max-width: 150px;
    }
    
    .cipher-message {
        font-size: 2em;
        letter-spacing: 2px;
        padding: 12px 15px;
    }
    
    .next-code {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .caesar-image {
        max-width: 120px;
    }
    
    .cipher-message {
        font-size: 1.5em;
        letter-spacing: 1px;
        padding: 8px 10px;
    }
    
    .puzzle-section {
        padding: 15px;
    }
    
    .answer-input-section {
        padding: 20px;
    }
}

/* ===== ESTILOS PARA PÁGINA DE ACERTIJO PACIENCIA ===== */

/* Sección de paciencia */
.patience-section {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #4169E1;
    margin: 20px 0;
    text-align: center;
}

.patience-icon {
    font-size: 3em;
    margin-bottom: 15px;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.patience-section h3 {
    color: #4169E1;
    margin-bottom: 15px;
}

.instructions {
    background: rgba(65, 105, 225, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #4169E1;
    text-align: left;
}

.instructions p {
    color: #E6E6E6;
    line-height: 1.6;
    margin-bottom: 15px;
}

.instructions p:last-child {
    margin-bottom: 0;
}

.instructions strong {
    color: #4169E1;
}

/* Sección del temporizador */
.timer-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #4169E1;
    margin: 30px 0;
    text-align: center;
}

.timer-section h3 {
    color: #4169E1;
    margin-bottom: 20px;
}

.timer-display {
    margin: 25px 0;
}

.timer {
    font-size: 4em;
    font-weight: bold;
    color: #4169E1;
    background: rgba(65, 105, 225, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #4169E1;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px #4169E1;
    letter-spacing: 3px;
    margin-bottom: 15px;
    animation: timerPulse 2s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(65, 105, 225, 0.3); }
    50% { box-shadow: 0 0 30px rgba(65, 105, 225, 0.6); }
}

.timer-status {
    font-size: 1.1em;
    font-weight: bold;
    min-height: 25px;
}

.timer-controls {
    margin-top: 25px;
}

.start-button {
    padding: 15px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(45deg, #4169E1, #1E90FF);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.start-button:hover:not(:disabled) {
    background: linear-gradient(45deg, #1E90FF, #0066CC);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4);
}

.start-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Sección de respuesta revelada */
.answer-section {
    margin-top: 30px;
}

.revealed-message {
    background: rgba(65, 105, 225, 0.2);
    border: 2px solid #4169E1;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-bottom: 25px;
}

.revealed-message h3 {
    color: #4169E1;
    margin-bottom: 15px;
}

.revealed-message p {
    color: #E6E6E6;
    margin-bottom: 20px;
}

.revealed-keyword {
    font-size: 2.5em;
    font-weight: bold;
    color: #4169E1;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #4169E1;
    letter-spacing: 4px;
    text-shadow: 0 0 15px #4169E1;
    animation: revealGlow 2s ease-in-out infinite alternate;
}

@keyframes revealGlow {
    from { box-shadow: 0 0 15px rgba(65, 105, 225, 0.3); }
    to { box-shadow: 0 0 25px rgba(65, 105, 225, 0.6); }
}

/* Responsividad para página de paciencia */
@media (max-width: 768px) {
    .timer {
        font-size: 3em;
        padding: 15px;
        letter-spacing: 2px;
    }
    
    .revealed-keyword {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .patience-icon {
        font-size: 2.5em;
    }
    
    .start-button {
        font-size: 1em;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    .timer {
        font-size: 2.5em;
        padding: 10px;
        letter-spacing: 1px;
    }
    
    .revealed-keyword {
        font-size: 1.8em;
        letter-spacing: 1px;
        padding: 10px;
    }
    
    .patience-icon {
        font-size: 2em;
    }
    
    .timer-section {
        padding: 20px;
    }
    
    .patience-section {
        padding: 20px;
    }
    
    .revealed-message {
        padding: 20px;
    }
}

/* ===== ESTILOS PARA PÁGINA DE ACERTIJO TOP ===== */

/* Sección principal del acertijo TOP */
.top-section {
    background: rgba(0, 0, 0, 0.6);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #FF6B35;
    margin: 20px 0;
}

.spy-looking-up {
    text-align: center;
    margin-bottom: 25px;
}

.spy-up-image {
    max-width: 120px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(346deg) brightness(100%) contrast(97%);
    animation: lookUp 3s ease-in-out infinite;
}

@keyframes lookUp {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-5deg); }
}

.clue-section h3 {
    color: #FF6B35;
    margin-bottom: 15px;
    text-align: center;
}

.instructions {
    background: rgba(255, 107, 53, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
}

.main-clue {
    color: #E6E6E6;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.main-clue strong {
    color: #FF6B35;
}

.hint-box {
    background: rgba(255, 107, 53, 0.2);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #FF6B35;
    margin-top: 15px;
}

.hint-box h4 {
    color: #FF6B35;
    margin-bottom: 10px;
}

.hint-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #FF6B35;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.sub-hint {
    color: #FFCCAA;
    font-style: italic;
    text-align: center;
    font-size: 0.9em;
}

/* Caja del misterio */
.mystery-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #FF6B35;
    margin: 25px 0;
    text-align: center;
}

.mystery-box h3 {
    color: #FF6B35;
    margin-bottom: 15px;
}

.mystery-box p {
    color: #E6E6E6;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

.detective-note {
    background: rgba(255, 107, 53, 0.1);
    padding: 15px;
    border-radius: 8px;
    border: 1px dashed #FF6B35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.note-icon {
    font-size: 1.2em;
}

.detective-note em {
    color: #FF9966;
    font-size: 1.05em;
}

/* Pista adicional en error */
.error-hint {
    background: rgba(255, 107, 53, 0.1);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #FF6B35;
    margin: 15px 0;
}

.error-hint p {
    color: #FFAA88;
    margin: 0;
    font-weight: bold;
}

/* Responsividad para página TOP */
@media (max-width: 768px) {
    .spy-up-image {
        max-width: 100px;
    }
    
    .hint-text {
        font-size: 1.1em;
    }
    
    .main-clue {
        font-size: 1em;
    }
    
    .mystery-box {
        padding: 20px;
    }
    
    .top-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .spy-up-image {
        max-width: 80px;
    }
    
    .hint-text {
        font-size: 1em;
    }
    
    .detective-note {
        flex-direction: column;
        text-align: center;
    }
    
    .mystery-box {
        padding: 15px;
    }
    
    .instructions {
        padding: 15px;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA ACERTIJO NUMÉRICO ===== */

/* Sección del patrón numérico */
.number-section {
    margin: 30px 0;
}

.pattern-display {
    background: rgba(0, 123, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #007BFF;
    margin-bottom: 30px;
}

.pattern-display h3 {
    color: #007BFF;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.number-pattern {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pattern-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #007BFF;
}

.pattern-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    background: rgba(0, 123, 255, 0.2);
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
}

.pattern-row:hover {
    background: rgba(0, 123, 255, 0.3);
    transform: scale(1.02);
}

.number-left, .number-right {
    color: #E6E6E6;
    font-size: 1.4em;
    min-width: 30px;
    text-align: center;
}

.equals {
    color: #007BFF;
    font-size: 1.2em;
    font-weight: bold;
}

/* Sección del desafío */
.challenge-section {
    background: rgba(255, 193, 7, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #FFC107;
    margin-top: 20px;
}

.challenge-section h3 {
    color: #FFC107;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.challenge-box {
    text-align: center;
}

.challenge-question {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #FFC107;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.question-number {
    color: #E6E6E6;
    font-size: 2em;
}

.equals-question {
    color: #FFC107;
    font-size: 1.8em;
}

.question-mark {
    color: #FFC107;
    font-size: 2.2em;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.challenge-text {
    color: #FFECAA;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Explicación del patrón en resultado exitoso */
.pattern-explanation {
    background: rgba(0, 123, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #007BFF;
    margin: 20px 0;
}

.pattern-explanation h4 {
    color: #007BFF;
    margin-bottom: 15px;
}

.pattern-explanation p {
    color: #E6E6E6;
    line-height: 1.6;
}

/* Responsive para el acertijo numérico */
@media (max-width: 768px) {
    .pattern-row {
        gap: 10px;
        padding: 6px 10px;
    }
    
    .number-left, .number-right {
        font-size: 1.2em;
        min-width: 25px;
    }
    
    .equals {
        font-size: 1em;
    }
    
    .challenge-question {
        gap: 15px;
        padding: 15px;
    }
    
    .question-number {
        font-size: 1.5em;
    }
    
    .equals-question {
        font-size: 1.3em;
    }
    
    .question-mark {
        font-size: 1.8em;
    }
    
    .pattern-display, .challenge-section {
        padding: 20px;
    }
    
    .pattern-explanation {
        padding: 15px;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA ACERTIJO BREAK ===== */

/* Sección del acertijo de ruptura */
.break-section {
    margin: 30px 0;
}

.riddle-display {
    background: rgba(220, 20, 60, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #DC143C;
    margin-bottom: 30px;
}

.riddle-display h3 {
    color: #DC143C;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.riddle-box {
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #DC143C;
    text-align: center;
}

.riddle-icon {
    font-size: 3em;
    margin-bottom: 20px;
    animation: think 3s infinite;
}

@keyframes think {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.main-question {
    color: #FFB6C1;
    font-size: 1.8em;
    font-weight: bold;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    margin: 0;
}

/* Sección filosófica */
.philosophical-section {
    background: rgba(138, 43, 226, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #8A2BE2;
    margin-top: 20px;
}

.philosophical-section h3 {
    color: #8A2BE2;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.philosophy-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #8A2BE2;
}

.philosophy-text {
    color: #E6E6E6;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.thinking-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.think-point {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.think-point:hover {
    background: rgba(138, 43, 226, 0.3);
    transform: translateX(5px);
}

.point-icon {
    font-size: 1.2em;
    color: #8A2BE2;
}

.point-text {
    color: #DDA0DD;
    font-style: italic;
    font-size: 1em;
}

/* Sección de sabiduría en resultado exitoso */
.wisdom-section {
    background: rgba(220, 20, 60, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
    margin: 20px 0;
}

.wisdom-section h4 {
    color: #DC143C;
    margin-bottom: 15px;
}

.wisdom-section p {
    color: #E6E6E6;
    line-height: 1.6;
    font-style: italic;
}

/* Ajustes específicos para detective-note del acertijo BREAK */
.break-section + .mystery-box .detective-note .note-icon {
    color: #FFD700;
    font-size: 1.5em;
}

/* Responsive para el acertijo BREAK */
@media (max-width: 768px) {
    .question-container {
        padding: 20px;
    }
    
    .main-question {
        font-size: 1.4em;
    }
    
    .riddle-icon {
        font-size: 2.5em;
        margin-bottom: 15px;
    }
    
    .thinking-points {
        gap: 10px;
    }
    
    .think-point {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .point-text {
        font-size: 0.9em;
    }
    
    .riddle-display, .philosophical-section {
        padding: 20px;
    }
    
    .philosophy-box, .wisdom-section {
        padding: 15px;
    }
    
    .philosophy-text {
        font-size: 1em;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA ACERTIJO PROMISE ===== */

/* Sección del desafío de velocidad */
.speed-section {
    margin: 30px 0;
}

.challenge-display {
    background: rgba(255, 215, 0, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    margin-bottom: 30px;
}

.challenge-display h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.instruction-box {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.speed-instruction {
    color: #E6E6E6;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.speed-instruction strong {
    color: #FFD700;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.challenge-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #FFEC8C;
    font-style: italic;
}

.note-icon {
    color: #FFD700;
    font-size: 1.2em;
}

/* Área del juego */
.game-area {
    background: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid #FFD700;
    text-align: center;
    min-height: 200px;
    position: relative;
}

.game-instructions p {
    color: #E6E6E6;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.countdown {
    font-size: 4em;
    color: #FFD700;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    animation: pulse 1s infinite;
}

.start-button {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.start-button:hover {
    background: linear-gradient(45deg, #FFA500, #FFD700);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Juego activo */
.active-game {
    position: relative;
}

.game-status {
    color: #FFD700;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 30px;
}

.target-area {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px dashed #FFD700;
}

.clickable-word {
    display: inline-block;
    background: linear-gradient(45deg, #32CD32, #228B22);
    color: #FFF;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.8em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 8px rgba(50, 205, 50, 0.3);
}

.clickable-word:hover {
    background: linear-gradient(45deg, #228B22, #32CD32);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(50, 205, 50, 0.5);
}

.clickable-word:active {
    transform: scale(0.95);
}

/* Timer del juego */
.game-timer {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 5px;
    border: 1px solid #FFD700;
}

.timer-bar {
    height: 20px;
    background: linear-gradient(90deg, #32CD32, #FFD700, #FF4500);
    border-radius: 8px;
    transition: width 1s linear;
    width: 100%;
}

/* Palabra "Promise" que se mueve */
.moving-word {
    position: fixed;
    font-size: 2em;
    font-weight: bold;
    color: #FF69B4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
    cursor: pointer;
    z-index: 999;
    transition: all 0.8s ease;
    animation: glow 2s infinite alternate;
    user-select: none;
    pointer-events: all;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255, 105, 180, 0.8); }
    to { text-shadow: 0 0 20px rgba(255, 105, 180, 1), 0 0 30px rgba(255, 105, 180, 0.8); }
}

/* Resultados del juego */
.success-game {
    color: #32CD32;
}

.success-game h3 {
    color: #32CD32;
    margin-bottom: 15px;
}

.revealed-code {
    background: rgba(50, 205, 50, 0.1);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 2px solid #32CD32;
}

.revealed-code h4 {
    color: #32CD32;
    margin-bottom: 10px;
}

.code-display {
    font-size: 2.5em;
    font-weight: bold;
    color: #32CD32;
    text-shadow: 0 0 15px rgba(50, 205, 50, 0.8);
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

.timeout-game {
    color: #FF4500;
}

.timeout-game h3 {
    color: #FF4500;
    margin-bottom: 15px;
}

.retry-button {
    background: linear-gradient(45deg, #FF4500, #FF6347);
    color: #FFF;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.retry-button:hover {
    background: linear-gradient(45deg, #FF6347, #FF4500);
    transform: scale(1.05);
}

/* Lista de habilidades */
.skill-section {
    background: rgba(255, 215, 0, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FFD700;
    margin: 20px 0;
}

.skill-section h4 {
    color: #FFD700;
    margin-bottom: 15px;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    color: #E6E6E6;
    padding: 5px 0;
    font-size: 1.1em;
}

.skills-list li:before {
    content: '';
    margin-right: 10px;
}

/* Responsive para el acertijo PROMISE */
@media (max-width: 768px) {
    .game-area {
        padding: 20px;
        min-height: 150px;
    }
    
    .clickable-word {
        font-size: 1.4em;
        padding: 12px 20px;
    }
    
    .countdown {
        font-size: 3em;
    }
    
    .moving-word {
        font-size: 1.5em;
    }
    
    .code-display {
        font-size: 2em;
        letter-spacing: 2px;
    }
    
    .speed-instruction {
        font-size: 1.1em;
    }
    
    .challenge-display {
        padding: 20px;
    }
    
    .revealed-code, .skill-section {
        padding: 15px;
    }
}

/* ================================
   ESTILOS PARA RESTRICCIÓN MÓVIL
   ================================ */

.mobile-restriction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.mobile-restriction-content {
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid #ff6b00;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
    animation: restrictionPulse 2s ease-in-out infinite alternate;
}

@keyframes restrictionPulse {
    from { 
        box-shadow: 0 0 30px rgba(255, 107, 0, 0.5);
        border-color: #ff6b00;
    }
    to { 
        box-shadow: 0 0 50px rgba(255, 107, 0, 0.8);
        border-color: #ff4500;
    }
}

.restriction-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.restriction-title {
    color: #ff6b00;
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 25px;
    text-shadow: 0 0 15px #ff6b00;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.restriction-message {
    color: #00ff41;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: 'Courier New', monospace;
}

.restriction-message p {
    margin-bottom: 15px;
}

.restriction-message strong {
    color: #ff6b00;
    text-shadow: 0 0 5px #ff6b00;
}

.restriction-footer {
    border-top: 2px solid #333;
    padding-top: 20px;
    color: #888;
    font-size: 0.9em;
    font-style: italic;
}

.restriction-footer p {
    margin-bottom: 8px;
}

.restriction-footer p:first-child {
    color: #ff6b00;
    font-weight: bold;
}

/* Animación adicional para el texto */
.restriction-message {
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px rgba(0, 255, 65, 0.5); }
    to { text-shadow: 0 0 15px rgba(0, 255, 65, 0.8); }
}

/* Responsive para la pantalla de restricción */
@media (max-width: 480px) {
    .mobile-restriction-content {
        padding: 30px 20px;
    }
    
    .restriction-title {
        font-size: 1.8em;
    }
    
    .restriction-message {
        font-size: 1em;
    }
    
    .restriction-icon {
        font-size: 3em;
    }
}