/* ============================
   ESTILOS PRINCIPALES
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

.info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.info h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.info ul {
    list-style: none;
    padding: 0;
}

.info ul li {
    padding: 8px 0;
    color: #555;
    border-bottom: 1px solid #eee;
}

.info ul li:last-child {
    border-bottom: none;
}

.demo {
    background: #f0f4ff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.demo h2 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.demo p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#demoText {
    color: #667eea;
    font-weight: bold;
    transition: color 0.3s ease;
}

#demoText:hover {
    color: #764ba2;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 10px 0;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 10px 0;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.button:active {
    transform: translateY(0);
}



#clickCount {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

#status {
    margin-top: 5px;
    font-weight: bold;
}

/* ============================
   ESTILOS PARA CUANDO CAMBIA EL CSS
   (Estos estilos se recargan sin recargar la página)
   ============================ */

/* Prueba - Cambia el color de fondo del botón en CSS */
button.alt-style {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Estilo para cuando se recarga el CSS */
.container.css-reloaded {
    border: 3px solid #667eea;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
}