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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #121212 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 0, 255, 0.1);
    border-bottom: 2px solid #ff00ff;
}

header h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.2rem;
    color: #00ffff;
    font-weight: 400;
    text-shadow: 0 0 10px #00ffff;
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Controls */
.controls {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    margin-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.controls label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #f0ff00;
    font-weight: 600;
}

.controls input {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    color: #ffffff;
    width: 100px;
    margin-right: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.controls input:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

/* Botones */
.btn-primary {
    background: linear-gradient(45deg, #ff00ff, #f0ff00);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.3rem;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 255, 0.5);
    background: linear-gradient(45deg, #f0ff00, #ff00ff);
}

.btn-secondary {
    background: rgba(0, 255, 255, 0.2);
    border: 2px solid #00ffff;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Results */
.results {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-header h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: #f0ff00;
    text-shadow: 0 0 10px #f0ff00;
}

.text-output {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    font-size: 1rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.text-output p {
    margin-bottom: 1.5rem;
}

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

/* Feedback message */
.feedback-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: #000000;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feedback-message.show {
    opacity: 1;
    visibility: visible;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    color: #888888;
    font-size: 0.9rem;
}

/* Media Queries - Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .controls {
        padding: 1.5rem 1rem;
    }
    
    .controls input {
        width: 80px;
        margin-right: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .text-output {
        font-size: 0.9rem;
        padding: 1rem;
    }
    
    .feedback-message {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .controls, .results {
        padding: 1rem;
    }
    
    .btn-primary {
        width: 100%;
        margin-top: 1rem;
    }
}