* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5f3 0%, #d4e9e7 100%);
    padding: 10px;
    min-height: 100vh;
}

.container {
    max-width: 500px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    animation: fadeInDown 0.6s ease-out;
}

.logo {
    width: 100px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.form-container {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    animation: fadeInUp 0.6s ease-out;
}

.form-header {
    background: linear-gradient(135deg, #3ab09e 0%, #2d8b7d 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.form-header h1 {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.2px;
    position: relative;
    z-index: 1;
}

.consulta-form {
    padding: 35px 40px 35px;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-control:hover {
    border-color: #3ab09e;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #3ab09e;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(58, 176, 158, 0.1);
    transform: translateY(-2px);
}

.form-control:valid {
    border-color: #5fcea8;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ab09e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.serie-numero-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.serie-input {
    flex: 1;
    max-width: 120px;
}

.separator {
    font-weight: bold;
    color: #3ab09e;
    font-size: 20px;
    padding: 0 5px;
}

.numero-input {
    flex: 2;
}

input[type="date"].form-control {
    cursor: pointer;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(53%) sepia(24%) saturate(1066%) hue-rotate(127deg) brightness(91%) contrast(86%);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    padding: 13px 40px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-buscar {
    background: linear-gradient(135deg, #5fcea8 0%, #4db892 100%);
    color: white;
}

.btn-buscar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 206, 168, 0.4);
}

.btn-buscar:active {
    transform: translateY(0);
}

.btn-limpiar {
    background: linear-gradient(135deg, #3ab6d4 0%, #2a9fb8 100%);
    color: white;
}

.btn-limpiar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 182, 212, 0.4);
}

.btn-limpiar:active {
    transform: translateY(0);
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .consulta-form {
        padding: 25px 30px;
    }
    
    .button-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Placeholder styling */
.form-control::placeholder {
    color: #aaa;
    font-style: italic;
}

/* Botón Descargar XML - Simple y Sencillo */
.btn-descargar {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-descargar:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.btn-descargar:active {
    transform: translateY(0);
}
/* Botón PDF - Simple y Sencillo */
.btn-pdf {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    justify-content: center;
}

.btn-pdf:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.btn-pdf:active {
    transform: translateY(0);
}