/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #fffaf0 0%, #fff5e6 100%);
    color: #333;
    min-height: 100vh;
}

.card {
    max-width: 800px;
    margin: 0 auto;
    background: #fffef7;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 152, 0, 0.15);
    border: 1px solid #ffebcc;
}

h1 {
    margin: 0 0 15px 0;
    font-size: 28px;
    color: #e65100;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px dashed #ffcc80;
}

p {
    color: #5d4037;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.controls {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

input[type="date"] {
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ffb74d;
    border-radius: 10px;
    background: #fff;
    color: #5d4037;
    min-width: 200px;
    transition: all 0.3s ease;
}

input[type="date"]:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.2);
}

button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    min-width: 140px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}

#btnAbrir {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
    color: white;
}

#btnAbrir:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e64a19 100%);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.3);
}

#btnDescargar {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    color: white;
}

#btnDescargar:hover {
    background: linear-gradient(135deg, #ffa000 0%, #f57c00 100%);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.3);
}

#mensaje {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
}

#visor {
    margin-top: 25px;
    width: 100%;
    height: 500px;
    border: 2px solid #ffcc80;
    border-radius: 10px;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #faf3e0;
}

.actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Estilos para mensajes de éxito y error */
#mensaje[style*="#066"], 
#mensaje[style*="#066"] {
    background-color: #f1f8e9;
    border-left: 4px solid #8bc34a;
    color: #33691e;
}

#mensaje[style*="#b00"],
#mensaje[style*="#b00"] {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 20px;
        margin: 10px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    input[type="date"] {
        width: 100%;
        min-width: auto;
    }
    
    .actions {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    #visor {
        height: 400px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    #visor {
        height: 300px;
    }
}